/* =========================================================
   SYNAPSE — synapse-advisory.ma
   Ivory · Ink · Gold. Serif display, hairline rules, restraint.
   ========================================================= */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-italic-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #0e0e10;
  --ink-2: #141417;
  --ink-3: #1c1c20;
  --text: #2a2a2e;
  --muted: #5e5b55;
  --ivory: #faf7f0;
  --paper: #ffffff;
  --line: #e7dfce;
  --gold: #b8975a;
  --gold-light: #dcc595;
  --gold-deep: #8a6a2f;
  --gold-grad: linear-gradient(180deg, #ead6a6 0%, #c3a265 48%, #9c7a3c 100%);
  --on-dark: rgba(250, 247, 240, 0.92);
  --on-dark-2: rgba(250, 247, 240, 0.7);
  --on-dark-3: rgba(250, 247, 240, 0.5);
  --gold-hair: rgba(184, 151, 90, 0.28);

  --teal: #00a1b3;
  --orange: #f77c12;
  --lime: #ced325;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(84px, 10vw, 148px);
  --header-h: 78px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 500; }
strong { font-weight: 650; }
::selection { background: var(--gold-light); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Type system ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before {
  content: "";
  width: 36px;
  height: 1px;
  background: currentColor;
  flex: none;
}
main { counter-reset: chapter; }
.section .eyebrow { counter-increment: chapter; }
.section .eyebrow::after {
  content: counter(chapter, decimal-leading-zero);
  order: -1;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: lining-nums;
  color: var(--gold);
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 22ch;
  text-wrap: balance;
}

h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 23px;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 12px;
}

.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.75;
  color: #3b3a37;
  max-width: 68ch;
  margin-top: 28px;
}
.lead strong { color: var(--ink); }

.subhead {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 30px);
  margin: 72px 0 28px;
}

.muted { color: var(--muted); margin-top: 24px; }

.serif-quote {
  position: relative;
  max-width: 30ch;
  margin: 88px auto 0;
  padding-top: 36px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(23px, 2.6vw, 32px);
  line-height: 1.4;
  text-align: center;
  color: var(--ink);
  text-wrap: balance;
}
.serif-quote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 56px;
  height: 1px;
  background: var(--gold);
  transform: translateX(-50%);
}
.serif-quote-left {
  margin: 40px 0 0;
  text-align: left;
  font-size: clamp(20px, 1.9vw, 24px);
  color: var(--muted);
}
.serif-quote-left::before { left: 0; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid transparent;
  border-radius: 1px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 12px; }

.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-light); }

.btn-ghost { border-color: var(--gold-hair); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }

.btn-outline { border-color: var(--gold); color: var(--gold-light); }
.btn-outline:hover { background: var(--gold); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(184, 151, 90, 0.18);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px -18px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
}
.brand { flex: none; display: block; }
.brand img { height: 42px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px); }
.main-nav a {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-dark-2);
  transition: color 0.3s var(--ease);
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.main-nav a:hover,
.main-nav a.is-active { color: var(--gold-light); }
.main-nav a:hover::after,
.main-nav a.is-active::after { transform: scaleX(1); }
.nav-contact-mobile { display: none; }

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, #9c7a3c, #ead6a6);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  background: none;
  border: 1px solid var(--gold-hair);
  border-radius: 1px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1px;
  background: var(--gold-light);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav-toggle span + span { margin-top: 7px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 11vw, 150px) 0 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 10%, rgba(184, 151, 90, 0.16), transparent 60%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(184, 151, 90, 0.07), transparent 60%),
    var(--ink);
  color: var(--on-dark);
}
/* ledger lines: a quiet architectural grid */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(220, 197, 149, 0.05) 0 1px, transparent 1px 160px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
}

.hero .eyebrow { color: var(--gold); }

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 6.6vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  color: #fbf8f1;
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.06em;
}

.hero-sub {
  margin: 30px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--gold-light);
}
.hero .lead { color: var(--on-dark-2); max-width: 52ch; margin-top: 18px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }

/* framed panel — double hairline, like an engraved certificate */
.hero-frame {
  position: relative;
  padding: clamp(36px, 4vw, 56px);
  border: 1px solid rgba(184, 151, 90, 0.55);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
}
.hero-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(184, 151, 90, 0.2);
  pointer-events: none;
}
.brand-mark { display: flex; align-items: flex-end; gap: 6px; margin-bottom: 30px; }
.brand-mark i { display: block; border-radius: 50%; }
.brand-mark i:nth-child(1) { width: 9px; height: 9px; background: var(--teal); }
.brand-mark i:nth-child(2) { width: 13px; height: 13px; background: var(--orange); }
.brand-mark i:nth-child(3) { width: 18px; height: 18px; background: var(--lime); }

.frame-kicker {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.frame-title {
  font-family: var(--serif);
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.22;
  color: #fbf8f1;
}
.frame-rule { display: block; width: 56px; height: 1px; margin: 30px 0; background: var(--gold); }
.frame-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--on-dark-2);
}
.frame-sign {
  margin-top: 28px;
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}

.sectors-strip {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 32px;
  margin-top: clamp(72px, 9vw, 120px);
  padding: 34px 0;
  border-top: 1px solid rgba(184, 151, 90, 0.2);
}
.sectors-label {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Chips (sector lists) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: var(--text);
}
.hero .chip {
  background: transparent;
  border-color: rgba(184, 151, 90, 0.3);
  color: var(--on-dark-2);
}

/* ---------- Key figures ---------- */
.stats {
  background: var(--ink-2);
  color: var(--on-dark);
  padding: clamp(64px, 8vw, 104px) 0;
  border-top: 1px solid rgba(184, 151, 90, 0.16);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
}
.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 14px;
  padding: 8px clamp(18px, 3vw, 40px);
  border-left: 1px solid var(--gold-hair);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat dt {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--on-dark-3);
  max-width: 22ch;
}
.stat-num {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(46px, 5.6vw, 76px);
  line-height: 1;
  letter-spacing: -0.01em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: lining-nums;
}
.stats-foot {
  margin: clamp(44px, 5vw, 64px) 0 0;
  padding-top: 28px;
  border-top: 1px solid rgba(184, 151, 90, 0.14);
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  text-align: center;
  color: var(--on-dark-2);
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-warm { background: var(--ivory); }
.section-head { margin-bottom: clamp(48px, 6vw, 72px); }

/* ---------- CEO ---------- */
.ceo-grid {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: start;
}
.ceo-portrait { position: relative; margin: 0; padding: 0 18px 0 0; }
.ceo-portrait picture { position: relative; display: block; }
.ceo-portrait picture::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  transform: translate(18px, 18px);
  z-index: -1;
}
.ceo-portrait img { width: 100%; filter: grayscale(1) contrast(1.06) brightness(1.02); }
.ceo-portrait figcaption { margin-top: 44px; }
.ceo-portrait figcaption strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  color: var(--ink);
}
.ceo-portrait figcaption span {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.ceo-text h2 { margin-bottom: 36px; }
.prose p { margin-bottom: 1.1em; }
.salutation {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
}
.pull-quote {
  margin: 48px 0 0;
  padding: 8px 0 8px 32px;
  border-left: 1px solid var(--gold);
}
.pull-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.3vw, 29px);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 16px;
}
.pull-quote footer {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.conviction {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
}
.conviction span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ---------- Grids & cards ---------- */
.grid-2,
.grid-3 { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  position: relative;
  padding: clamp(30px, 3vw, 42px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1px;
  transition: border-color 0.45s var(--ease), transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card::after {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.card:hover { border-color: #d9c9a6; box-shadow: 0 24px 48px -36px rgba(14, 14, 16, 0.35); }
.card:hover::after { transform: scaleX(1); }
.card p { color: var(--muted); }

.section:where(:not(.section-warm):not(.section-dark)) .card { background: var(--ivory); }

.dot { display: block; width: 40px; height: 1px; margin-bottom: 28px; background: var(--gold); }

.num,
.step-num { font-variant-numeric: lining-nums; }
.num {
  display: block;
  margin-bottom: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  line-height: 1;
  color: var(--gold);
}

.card-kicker {
  margin-bottom: 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.card-accent { border-top: 2px solid var(--gold); }
.card-accent::after { display: none; }

.card-wide { grid-column: 1 / -1; }

/* Financing is the signature: rendered on ink */
.card.card-featured {
  background: var(--ink);
  border-color: var(--ink);
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  column-gap: 24px;
  padding: clamp(36px, 4vw, 56px);
}
.card-featured .num { grid-row: span 2; font-size: 52px; color: transparent; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; }
.card-featured h3 { color: #fbf8f1; font-size: clamp(24px, 2.4vw, 30px); }
.card-featured p { color: var(--on-dark-2); max-width: 75ch; }

/* ---------- Values ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
}
.values li { padding-top: 22px; border-top: 1px solid var(--gold); }
.values strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
}
.values span { display: block; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Callouts ---------- */
.callout {
  position: relative;
  margin-top: 64px;
  padding: clamp(30px, 3.5vw, 44px) clamp(28px, 4vw, 56px);
  border: 1px solid rgba(184, 151, 90, 0.55);
  background: rgba(184, 151, 90, 0.05);
}
.callout::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(184, 151, 90, 0.18);
  pointer-events: none;
}
.callout strong { font-family: var(--serif); font-weight: 600; font-size: 1.12em; color: var(--ink); }
.callout-center { text-align: center; }
.callout-center p { max-width: 64ch; margin-inline: auto; }
.callout-sub {
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ---------- Timeline (accompagnement) ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  counter-reset: step;
}
.timeline li { position: relative; padding-top: 36px; border-top: 1px solid var(--line); }
.timeline li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--gold);
}
.timeline li:hover::before { background: var(--gold); }
.step-num {
  display: block;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 40px;
  line-height: 1;
  color: var(--gold);
}
.timeline h3 { font-size: 22px; }
.timeline p { font-size: 15.5px; line-height: 1.65; color: var(--muted); }

/* ---------- Feature (études faisabilité) ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px clamp(40px, 6vw, 88px);
  margin-bottom: 24px;
  padding: clamp(36px, 5vw, 72px);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(184, 151, 90, 0.14), transparent 60%),
    var(--ink);
  color: var(--on-dark-2);
}
.feature-kicker {
  margin-bottom: 14px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.feature h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; color: #fbf8f1; margin-bottom: 20px; }
.feature .check-list li { color: var(--on-dark); border-color: rgba(184, 151, 90, 0.2); }
.feature-result {
  grid-column: 1 / -1;
  padding-top: 32px;
  border-top: 1px solid rgba(184, 151, 90, 0.25);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.6;
}
.feature-result strong { font-style: normal; color: var(--gold-light); font-weight: 600; }

.check-list li {
  position: relative;
  padding: 14px 0 14px 34px;
  border-bottom: 1px solid var(--line);
  line-height: 1.55;
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 21px;
  width: 12px;
  height: 6px;
  border-left: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------- Sectors ---------- */
.sectors-block .subhead { margin-top: 88px; }

/* ---------- Method ---------- */
.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}
.method-head { position: sticky; top: calc(var(--header-h) + 48px); margin-bottom: 0; }
.method-list li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.method-list li:first-child { border-top: 1px solid var(--line); }
.method-list .step-num { font-size: 44px; margin: 0; }
.method-list h3 { margin-bottom: 6px; }
.method-list p { color: var(--muted); }

.gains {
  margin-top: 48px;
  padding: clamp(30px, 3.5vw, 44px);
  background: var(--paper);
  border: 1px solid var(--line);
}
.gains h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 20px;
}
.gains ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; }
.gains li {
  position: relative;
  padding-left: 20px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
}
.gains li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- Dark section (financement) ---------- */
.section-dark {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, rgba(184, 151, 90, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(184, 151, 90, 0.08), transparent 60%),
    var(--ink);
  color: var(--on-dark-2);
}
.section-dark h2,
.section-dark h3 { color: #fbf8f1; }
.section-dark .eyebrow { color: var(--gold); }
.section-dark .lead { color: var(--on-dark-2); }
.section-dark .card {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(184, 151, 90, 0.22);
}
.section-dark .card:hover { border-color: rgba(184, 151, 90, 0.5); box-shadow: none; }
.section-dark .card p { color: var(--on-dark-2); }
.section-dark .serif-quote { color: #fbf8f1; }

.finance-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
  margin-bottom: 64px;
}
.finance-years-num {
  display: block;
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(96px, 13vw, 176px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.finance-years p { font-size: 17px; }
.finance-years strong { color: #fbf8f1; }
.finance-banks {
  position: relative;
  padding: clamp(32px, 4vw, 52px);
  border: 1px solid rgba(184, 151, 90, 0.5);
}
.finance-banks::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(184, 151, 90, 0.16);
  pointer-events: none;
}
.finance-banks h3 { font-size: clamp(24px, 2.4vw, 30px); margin-bottom: 18px; }
.finance-banks-em {
  margin-top: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.55;
  color: var(--gold-light);
}

.atout {
  display: grid;
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 64px;
  padding-top: 44px;
  border-top: 1px solid rgba(184, 151, 90, 0.3);
}
.atout h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold) !important;
  padding-top: 10px;
}
.atout p {
  font-family: var(--serif);
  font-size: clamp(21px, 2.1vw, 27px);
  line-height: 1.5;
  color: #fbf8f1;
}

/* ---------- Grands projets ---------- */
.lead-strong {
  margin-top: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 28px);
  color: var(--ink);
}
.kicker-line {
  margin-top: 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--gold-deep);
  max-width: 60ch;
}

.trust {
  margin-top: 64px;
  padding: clamp(36px, 4.5vw, 60px);
  background: var(--ivory);
  border: 1px solid var(--line);
  text-align: center;
}
.trust h3 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 32px;
}
.trust-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-list li {
  padding: 4px 20px;
  border-left: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.35;
  color: var(--ink);
}
.trust-list li:first-child { border-left: 0; }
.trust-em {
  margin-top: 36px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--muted);
}

.guarantee {
  margin-top: 72px;
  text-align: center;
}
.guarantee-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 18px;
}
.guarantee ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; }
.guarantee li {
  display: flex;
  align-items: center;
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  color: var(--ink);
}
.guarantee li + li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin: 0 clamp(16px, 2.4vw, 32px);
  background: var(--gold);
  transform: rotate(45deg);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(48px, 7vw, 100px);
  align-items: start;
}
.contact-grid .callout { margin-top: 40px; }
.contact-grid .subhead { margin-top: 56px; }
.check-list-single li { padding-top: 12px; padding-bottom: 12px; }
.check-list-single li::before { top: 19px; }

.contact-card {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  padding: clamp(36px, 4vw, 56px);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(184, 151, 90, 0.16), transparent 60%),
    var(--ink);
  color: var(--on-dark-2);
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(184, 151, 90, 0.3);
  pointer-events: none;
}
.contact-kicker {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.contact-name {
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.1;
  color: #fbf8f1;
  margin-bottom: 8px;
}
.contact-role { color: var(--on-dark); margin-bottom: 4px; }
.contact-dept {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-3);
}
.contact-actions { margin-top: 32px; }
.contact-line {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 20px 0;
  border-top: 1px solid rgba(184, 151, 90, 0.2);
  text-decoration: none;
  color: #fbf8f1;
  font-size: 18px;
  line-height: 1.5;
  transition: color 0.3s var(--ease);
}
.contact-line:last-child { border-bottom: 1px solid rgba(184, 151, 90, 0.2); }
.contact-line svg { color: var(--gold); margin-top: 22px; }
.contact-line small {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-line:hover { color: var(--gold-light); }
.contact-save { margin-top: 28px; }
.contact-zone {
  margin-top: 28px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--on-dark-2);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #08080a;
  color: var(--on-dark-3);
  border-top: 1px solid rgba(184, 151, 90, 0.25);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 48px;
  padding-top: clamp(64px, 7vw, 96px);
  padding-bottom: 56px;
}
.footer-brand img { width: 150px; height: auto; margin-bottom: 28px; }
.footer-tagline { font-family: var(--serif); font-size: 22px; color: #fbf8f1; margin-bottom: 6px; }
.footer-sub { font-family: var(--serif); font-style: italic; color: var(--gold-light); }
.footer-title {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-nav li + li { margin-top: 8px; }
.site-footer a { color: var(--on-dark-2); text-decoration: none; transition: color 0.3s var(--ease); }
.site-footer a:hover { color: var(--gold-light); }
.site-footer address { font-style: normal; line-height: 1.9; }
.site-footer address strong { color: var(--on-dark); font-weight: 600; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(184, 151, 90, 0.14);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.footer-bottom p { margin: 0; }

/* ---------- Hero entrance ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 1.2s var(--ease) both; }
  .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > :nth-child(2) { animation-delay: 0.15s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.35s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.45s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.55s; }
  .hero .eyebrow::before { transform-origin: left; animation: draw 1.4s 0.2s var(--ease) both; }
  .hero-frame { animation: rise 1.4s 0.5s var(--ease) both; }
  .frame-rule { transform-origin: left; animation: draw 1.2s 1.1s var(--ease) both; }
  .sectors-strip { animation: fade 1.6s 0.8s var(--ease) both; }
}

/* ---------- Reveal on scroll (enabled by JS only) ---------- */
.reveal { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-hidden { opacity: 0; transform: translateY(18px); }

/* ---------- 404 ---------- */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px var(--gutter);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(184, 151, 90, 0.16), transparent 60%),
    var(--ink);
  color: var(--on-dark-2);
}
.error-page img { width: 170px; margin: 0 auto 48px; }
.error-page .error-code {
  font-family: var(--serif);
  font-size: clamp(96px, 16vw, 160px);
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.error-page h1 { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); color: #fbf8f1; margin-bottom: 16px; }
.error-page p { margin-bottom: 36px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1120px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 48px; }
  .values { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    margin: 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(184, 151, 90, 0.2);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px var(--gutter) 28px;
  }
  .main-nav li { border-bottom: 1px solid rgba(184, 151, 90, 0.12); }
  .main-nav a { padding: 16px 0; font-size: 13px; }
  .main-nav a::after { display: none; }
  .nav-contact-mobile { display: block; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 960px) {
  .hero-grid,
  .ceo-grid,
  .method-grid,
  .contact-grid,
  .finance-intro,
  .feature { grid-template-columns: minmax(0, 1fr); }
  .hero-frame { max-width: 560px; }
  .ceo-portrait { max-width: 380px; }
  .method-head,
  .contact-card { position: static; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .trust-list li:nth-child(3) { border-left: 0; }
  .atout { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .timeline { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .timeline li { padding: 0 0 36px 32px; border-top: 0; border-left: 1px solid var(--line); }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { top: 4px; left: -5px; }
  .values { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .gains ul { grid-template-columns: minmax(0, 1fr); }
  .card.card-featured { grid-template-columns: minmax(0, 1fr); }
  .card-featured .num { grid-row: auto; font-size: 44px; }
  .method-list li { grid-template-columns: 56px minmax(0, 1fr); }
  .method-list .step-num { font-size: 36px; }
  .hero-actions .btn { width: 100%; }
  .header-cta { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .guarantee ul { flex-direction: column; gap: 14px; }
  .guarantee li + li::before { display: none; }
}

@media (max-width: 680px) {
  .stat { padding-right: 0; }
  .stat-num { font-size: 44px; }
  .stat dt { font-size: 11px; letter-spacing: 0.12em; }
}

@media (max-width: 420px) {
  .trust-list { grid-template-columns: minmax(0, 1fr); }
  .trust-list li { border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .reveal.is-hidden { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .hero-actions, .to-top { display: none !important; }
  .hero, .stats, .section-dark, .feature, .contact-card, .site-footer, .card.card-featured { background: #fff !important; color: #000 !important; }
  .hero h1 em, .stat-num, .finance-years-num, .card-featured .num { color: #8a6a2f !important; background: none !important; }
}
