/* ============================================================
   Finarios — site web. Design system + sections.
   Thème Ink × Or, sombre par défaut, toggle clair.
   ============================================================ */

:root {
  /* LIGHT chaud premium — défaut (ivoire + encre + or) */
  --bg:        #F2ECE0;
  --bg-1:      #FBF7EF;
  --bg-2:      #FFFFFF;
  --bg-3:      #F3ECDD;
  --fg:        #1C2A3A;
  --fg-mute:   rgba(28,42,58,0.70);
  --fg-dim:    rgba(28,42,58,0.48);
  --fg-faint:  rgba(28,42,58,0.16);
  --border:    rgba(28,42,58,0.14);
  --border-lo: rgba(28,42,58,0.08);
  --gold:      #1E6E59;
  --gold-soft: rgba(30,110,89,0.12);
  --gold-line: rgba(30,110,89,0.36);
  --bronze:    #2E5A4E;
  --success:   #3E7E5C;
  --danger:    #BC4439;
  --card:      #FBF7EF;
  --card-2:    #FFFFFF;
  --shadow:    0 30px 70px rgba(60,44,18,0.13);
  --shadow-sm: 0 14px 34px rgba(60,44,18,0.10);
  --net:       28,42,58;          /* réseau hero : encre */
  --net-glow:  0;                 /* pas de halo en clair */
  --hero-glow: radial-gradient(1000px 640px at 80% 18%, rgba(30,110,89,0.12), transparent 62%);

  --serif: "Source Serif 4", Georgia, serif;
  --sans:  "Inter Tight", system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1200px;
  --ease: cubic-bezier(.2,.7,.3,1);
}

html[data-theme="dark"] {
  /* DARK (Ink × Or) */
  --bg:        #0E1B2C;
  --bg-1:      #142539;
  --bg-2:      #1B2E45;
  --bg-3:      #243A56;
  --fg:        #F5F2EC;
  --fg-mute:   rgba(245,242,236,0.66);
  --fg-dim:    rgba(245,242,236,0.42);
  --fg-faint:  rgba(245,242,236,0.20);
  --border:    rgba(245,242,236,0.11);
  --border-lo: rgba(245,242,236,0.06);
  --gold:      #57C49E;
  --gold-soft: rgba(87,196,158,0.14);
  --gold-line: rgba(87,196,158,0.42);
  --bronze:    #6FB89C;
  --success:   #5BA17E;
  --danger:    #D9645B;
  --card:      #142539;
  --card-2:    #1B2E45;
  --shadow:    0 24px 60px rgba(0,0,0,0.5);
  --shadow-sm: 0 12px 32px rgba(0,0,0,0.4);
  --net:       87,196,158;        /* réseau hero : vert */
  --net-glow:  10;                /* halo doux en sombre */
  --hero-glow: radial-gradient(1000px 640px at 80% 18%, rgba(87,196,158,0.16), transparent 62%);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gold-soft); color: var(--fg); }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

img, svg { display: block; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--fg-faint); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-dim); }

/* ---------- shared atoms ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold);
  display: inline-flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--gold); opacity: 0.7; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.section { padding: 140px 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 72px; }
.section-head h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.04; margin-top: 20px; text-wrap: pretty; }
.section-head .lede { font-size: 19px; line-height: 1.6; color: var(--fg-mute); margin-top: 22px; text-wrap: pretty; }

.divider { height: 1px; background: var(--border-lo); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.005em;
  padding: 14px 26px; border-radius: 8px;
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
  border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--gold); color: #FFFFFF; box-shadow: 0 0 0 rgba(30,110,89,0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px var(--gold-soft); }
.btn-ghost { border-color: var(--gold-line); color: var(--fg); }
.btn-ghost:hover { background: var(--gold-soft); transform: translateY(-2px); }

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; border-radius: 50%; mix-blend-mode: difference; }
.cursor-dot { width: 7px; height: 7px; background: #fff; transform: translate(-50%, -50%); }
.cursor-ring { width: 34px; height: 34px; border: 1.5px solid #fff; transform: translate(-50%, -50%); transition: width 200ms var(--ease), height 200ms var(--ease), opacity 200ms var(--ease); opacity: 0.7; }
.cursor-ring.hot { width: 56px; height: 56px; opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- north mark ---------- */
.north { width: 1em; height: 1em; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px;
  transition: padding 300ms var(--ease), background 300ms var(--ease), border-color 300ms var(--ease), backdrop-filter 300ms var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 14px 40px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-lo);
}
.nav-brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.nav-brand .north { font-size: 26px; filter: drop-shadow(0 0 10px var(--gold-soft)); }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--fg-mute); transition: color 160ms var(--ease); position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px; background: var(--gold); transition: width 200ms var(--ease); }
.nav-links a:hover { color: var(--fg); }
.nav-links a:hover::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--fg-mute);
  transition: all 160ms var(--ease);
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold-line); }
.theme-toggle svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 160px 0 120px; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; width: 100%; margin: auto 0; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero::before { /* warm depth glow, theme-aware */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: var(--hero-glow);
}
.hero::after { /* gentle bottom fade only */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 15%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg));
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-eyebrow { margin-bottom: 30px; }
.hero h1 { font-size: clamp(44px, 7.4vw, 104px); line-height: 0.98; max-width: 16ch; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero-sub { font-size: clamp(17px, 2vw, 21px); line-height: 1.6; color: var(--fg); opacity: 0.9; max-width: 54ch; margin-top: 28px; text-wrap: pretty; }
.hero-cta { display: flex; gap: 16px; margin-top: 42px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 40px; margin-top: 64px; flex-wrap: wrap; }
.hero-meta .item .v { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.hero-meta .item .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); margin-top: 4px; }
.scroll-cue { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 3; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-dim); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.scroll-cue .line { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0%,100%{ transform: scaleY(0.3); opacity:.4 } 50%{ transform: scaleY(1); opacity:1 } }

/* ============================================================
   MOAT strip
   ============================================================ */
.moat { padding: 110px 0; border-top: 1px solid var(--border-lo); border-bottom: 1px solid var(--border-lo); background: var(--bg-1); }
.moat .row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 70px; align-items: center; }
.moat h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; text-wrap: pretty; }
.moat h2 .hl { color: var(--gold); font-style: italic; }
.moat .pillars { display: flex; flex-direction: column; gap: 22px; }
.moat .pillar { border-left: 2px solid var(--gold-line); padding-left: 18px; }
.moat .pillar .t { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.moat .pillar .d { font-size: 14px; color: var(--fg-mute); line-height: 1.5; margin-top: 4px; }
@media (max-width: 860px) { .moat .row { grid-template-columns: 1fr; gap: 40px; } }

/* ============================================================
   REVEAL animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 80ms; }
.reveal.d2 { transition-delay: 160ms; }
.reveal.d3 { transition-delay: 240ms; }
.reveal.d4 { transition-delay: 320ms; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   REALISATIONS
   ============================================================ */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.project {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 34px; display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform 300ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease);
}
.project:hover { transform: translateY(-5px); border-color: var(--gold-line); box-shadow: var(--shadow-sm); }
.project .glow { position: absolute; inset: 0; opacity: 0; background: radial-gradient(500px 240px at var(--mx,50%) var(--my,0%), var(--gold-soft), transparent 70%); transition: opacity 300ms var(--ease); pointer-events: none; }
.project:hover .glow { opacity: 1; }
.project .ptop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.project .pico { width: 46px; height: 46px; border-radius: 11px; background: var(--gold-soft); border: 1px solid var(--gold-line); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.project .pico svg { width: 22px; height: 22px; }
.project .ptag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); padding: 5px 9px; border: 1px solid var(--border); border-radius: 5px; }
.project h3 { font-size: 28px; }
.project .pcat { font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: 0.08em; margin-top: 6px; }
.project .pdesc { font-size: 14.5px; color: var(--fg-mute); line-height: 1.6; margin-top: 16px; }
.project .pstack { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.project .chip { font-family: var(--mono); font-size: 11px; color: var(--fg-mute); padding: 4px 10px; background: var(--bg-2); border: 1px solid var(--border-lo); border-radius: 99px; }
.project .pfoot { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; }
.project .pmetric { display: flex; align-items: baseline; gap: 8px; }
.project .pmetric .n { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--gold); }
.project .pmetric .x { font-size: 12px; color: var(--fg-dim); max-width: 14ch; line-height: 1.3; }
.project .plink { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--fg); }
.project .plink svg { width: 14px; height: 14px; transition: transform 200ms var(--ease); }
.project:hover .plink svg { transform: translateX(4px); }
@media (max-width: 860px) { .projects { grid-template-columns: 1fr; } }

/* ============================================================
   DEMOS
   ============================================================ */
.demos { background: var(--bg-1); border-top: 1px solid var(--border-lo); border-bottom: 1px solid var(--border-lo); }
.demo-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; }
.demo-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 30px; }
.demo-card .dhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.demo-card .dtitle { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 21px; font-weight: 600; }
.demo-card .dtitle .dico { color: var(--gold); display: flex; }
.demo-card .dtitle .dico svg, .dtitle .dico svg { width: 20px; height: 20px; }
.badge-live { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); padding: 4px 10px; background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 5px; display: inline-flex; align-items: center; gap: 6px; }
.badge-live .dot { width: 5px; height: 5px; border-radius: 99px; background: var(--gold); box-shadow: 0 0 6px var(--gold); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100%{ opacity: 1 } 50%{ opacity: .3 } }

/* SCPI simulator */
.scpi .ctrl { margin-bottom: 22px; }
.scpi .ctrl .clabel { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.scpi .ctrl .clabel .cl { font-size: 13px; color: var(--fg-mute); font-weight: 500; }
.scpi .ctrl .clabel .cv { font-family: var(--mono); font-size: 15px; color: var(--gold); font-weight: 500; }
.scpi input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 99px; background: var(--bg-3); outline: none; }
.scpi input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); cursor: pointer; box-shadow: 0 0 0 4px var(--gold-soft); transition: transform 120ms var(--ease); }
.scpi input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.scpi input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: none; border-radius: 50%; background: var(--gold); cursor: pointer; box-shadow: 0 0 0 4px var(--gold-soft); }
.scpi .out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--border-lo); }
.scpi .out .o .ov { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; }
.scpi .out .o .ov.accent { color: var(--gold); }
.scpi .out .o .ol { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); margin-top: 5px; line-height: 1.3; }
.scpi .disclaim { font-size: 11px; color: var(--fg-dim); margin-top: 20px; line-height: 1.5; }

/* Lead feed */
.leadfeed { position: relative; height: 360px; overflow: hidden; border-radius: 10px; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.leadfeed .track { display: flex; flex-direction: column; gap: 10px; animation: feed 22s linear infinite; }
.leadfeed:hover .track { animation-play-state: paused; }
@keyframes feed { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.lead { display: flex; align-items: center; gap: 14px; padding: 13px 15px; background: var(--bg-2); border: 1px solid var(--border-lo); border-radius: 10px; }
.lead .av { width: 36px; height: 36px; border-radius: 9px; background: var(--bg-3); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 12px; color: var(--fg-mute); flex: 0 0 auto; }
.lead .li { flex: 1; min-width: 0; }
.lead .ln { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lead .ls { font-family: var(--mono); font-size: 10.5px; color: var(--fg-dim); margin-top: 2px; }
.lead .score { font-family: var(--mono); font-size: 13px; font-weight: 500; padding: 5px 9px; border-radius: 6px; flex: 0 0 auto; }
.lead .score.hi { color: var(--success); background: rgba(91,161,126,0.14); }
.lead .score.mid { color: var(--gold); background: var(--gold-soft); }
.lead .score.lo { color: var(--fg-dim); background: var(--bg-3); }

/* Scoring explainer (under SCPI col, full width below) */
.scoring { margin-top: 26px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 30px; }
.scoring .srow { display: grid; grid-template-columns: 200px 1fr 60px; gap: 16px; align-items: center; padding: 11px 0; border-top: 1px solid var(--border-lo); }
.scoring .srow:first-of-type { border-top: none; }
.scoring .sf { font-size: 13.5px; color: var(--fg-mute); }
.scoring .sbar { height: 7px; border-radius: 99px; background: var(--bg-3); overflow: hidden; }
.scoring .sbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--bronze), var(--gold)); width: 0; transition: width 1100ms var(--ease); }
.scoring .sv { font-family: var(--mono); font-size: 13px; color: var(--gold); text-align: right; }
.scoring .stotal { display: flex; align-items: baseline; justify-content: space-between; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.scoring .stotal .stl { font-size: 14px; color: var(--fg-mute); }
.scoring .stotal .stv { font-family: var(--serif); font-size: 38px; font-weight: 600; color: var(--gold); }
@media (max-width: 980px) { .demo-grid { grid-template-columns: 1fr; } .scoring .srow { grid-template-columns: 140px 1fr 54px; } }

/* ============================================================
   EXPERTISE
   ============================================================ */
.exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.exp {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 30px;
  transition: transform 280ms var(--ease), border-color 280ms var(--ease);
}
.exp:hover { transform: translateY(-4px); border-color: var(--gold-line); }
.exp .ec { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--gold); }
.exp h3 { font-size: 23px; margin-top: 12px; }
.exp .ed { font-size: 14px; color: var(--fg-mute); line-height: 1.6; margin-top: 12px; }
.exp .eadv { font-size: 13px; color: var(--fg); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-lo); display: flex; gap: 10px; align-items: flex-start; }
.exp .eadv svg { width: 16px; height: 16px; color: var(--gold); flex: 0 0 auto; margin-top: 2px; }
@media (max-width: 980px) { .exp-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: var(--bg-1); border-top: 1px solid var(--border-lo); border-bottom: 1px solid var(--border-lo); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step .sline { position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--border); }
.step .sline i { display: block; height: 100%; width: 0; background: var(--gold); transition: width 900ms var(--ease); }
.step.in .sline i { width: 100%; }
.step .sn { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: 0.1em; }
.step h3 { font-size: 22px; margin-top: 16px; }
.step .sd { font-size: 14px; color: var(--fg-mute); line-height: 1.6; margin-top: 12px; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   VERTICALS
   ============================================================ */
.verticals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vert { display: flex; align-items: center; gap: 18px; padding: 26px 28px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; transition: border-color 240ms var(--ease), transform 240ms var(--ease); }
.vert:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.vert .vico { width: 48px; height: 48px; flex: 0 0 auto; border-radius: 12px; background: var(--gold-soft); border: 1px solid var(--gold-line); display: flex; align-items: center; justify-content: center; color: var(--gold); }
.vert .vico svg { width: 24px; height: 24px; }
.vert .vt { font-family: var(--serif); font-size: 20px; font-weight: 600; }
.vert .vd { font-size: 13px; color: var(--fg-mute); margin-top: 3px; }
@media (max-width: 860px) { .verticals { grid-template-columns: 1fr; } }

/* ============================================================
   COUNTERS
   ============================================================ */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.counter { text-align: center; }
.counter .cn { font-family: var(--serif); font-size: clamp(44px, 6vw, 76px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.counter .cn .suf { color: var(--gold); }
.counter .cl { font-size: 14px; color: var(--fg-mute); margin-top: 14px; }
@media (max-width: 860px) { .counters { grid-template-columns: 1fr 1fr; gap: 44px; } }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-1); border-top: 1px solid var(--border-lo); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact h2 { font-size: clamp(36px, 5vw, 60px); line-height: 1.02; text-wrap: pretty; }
.contact h2 em { font-style: italic; color: var(--gold); }
.contact .csub { font-size: 18px; color: var(--fg-mute); line-height: 1.6; margin-top: 22px; max-width: 44ch; }
.contact .cdirect { margin-top: 36px; display: flex; flex-direction: column; gap: 16px; }
.contact .cdirect a { display: inline-flex; align-items: center; gap: 12px; font-size: 16px; color: var(--fg); transition: color 160ms var(--ease); }
.contact .cdirect a:hover { color: var(--gold); }
.contact .cdirect a svg { width: 19px; height: 19px; color: var(--gold); }
.form { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-mute); display: block; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--sans); font-size: 15px; color: var(--fg);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px; padding: 13px 15px;
  outline: none; transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.form .btn-primary { width: 100%; justify-content: center; margin-top: 8px; }
.form .formnote { font-size: 12px; color: var(--fg-dim); margin-top: 14px; text-align: center; line-height: 1.5; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 44px; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 56px 0 40px; }
.footer .frow { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .fbrand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.footer .fbrand .north { font-size: 24px; }
.footer .fmeta { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.06em; }
.footer .fmono { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.08em; }
.footer .fline { margin: 32px 0; }

/* ============================================================
   AJOUTS DESIGN
   ============================================================ */

/* --- Ticker réglementaire défilant --- */
.ticker { position: relative; overflow: hidden; border-top: 1px solid var(--border-lo); border-bottom: 1px solid var(--border-lo); background: var(--bg); padding: 22px 0; }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.ticker-track { display: flex; align-items: center; gap: 0; width: max-content; animation: ticker 32s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { display: inline-flex; align-items: center; gap: 18px; padding: 0 30px; font-family: var(--serif); font-size: clamp(20px, 2.4vw, 30px); font-weight: 600; color: var(--fg); letter-spacing: -0.01em; white-space: nowrap; }
.ticker-item .star { color: var(--gold); font-size: 0.5em; line-height: 1; }
.ticker-item.mut { color: var(--fg-dim); font-style: italic; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* --- Texture grille de fond (sections) --- */
.grid-bg { position: relative; }
.grid-bg > .wrap { position: relative; z-index: 1; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(var(--border-lo) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-lo) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 30%, transparent 78%);
}

/* --- Numéro géant en filigrane sur les section-head --- */
.section-head { position: relative; }
.section-head .ghost-num {
  position: absolute; right: 0; top: -40px; font-family: var(--serif); font-weight: 600;
  font-size: 150px; line-height: 1; color: var(--fg); opacity: 0.05; pointer-events: none; user-select: none; letter-spacing: -0.04em;
}
@media (max-width: 760px) { .section-head .ghost-num { font-size: 96px; top: -10px; } }

/* --- Coins décoratifs (cartes démo + scoring) --- */
.demo-card, .scoring { position: relative; }
.demo-card::before, .demo-card::after,
.scoring::before, .scoring::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; opacity: 0.6;
  border-color: var(--gold-line); border-style: solid; border-width: 0;
}
.demo-card::before, .scoring::before { top: 12px; left: 12px; border-left-width: 1.5px; border-top-width: 1.5px; border-top-left-radius: 4px; }
.demo-card::after, .scoring::after { bottom: 12px; right: 12px; border-right-width: 1.5px; border-bottom-width: 1.5px; border-bottom-right-radius: 4px; }

/* --- Filet décoratif + puce sur les section kickers déjà géré ; ajout séparateur orné --- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px 0; }
.ornament .ln { height: 1px; width: 80px; background: linear-gradient(90deg, transparent, var(--gold-line)); }
.ornament .ln.r { background: linear-gradient(270deg, transparent, var(--gold-line)); }
.ornament .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); transform: rotate(45deg); }

/* --- Badge "disponible" header + petit liseré sur la nav-brand --- */
.nav-brand .north { transition: transform 400ms var(--ease); }
.nav-brand:hover .north { transform: rotate(45deg); }

/* --- Project: index + corner tick --- */
.project { counter-increment: projcount; }
.project .pidx { position: absolute; top: 18px; right: 20px; font-family: var(--mono); font-size: 11px; color: var(--fg-faint); letter-spacing: 0.1em; z-index: 2; }
.project .ptop { padding-right: 30px; }

/* --- Aurore animée derrière le globe --- */
.hero-aurora { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.8;
  background:
    radial-gradient(40% 50% at 78% 30%, var(--gold-soft), transparent 70%),
    radial-gradient(38% 46% at 60% 70%, var(--gold-soft), transparent 72%);
  filter: blur(10px);
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-3%,2%,0) scale(1.08); }
  100% { transform: translate3d(3%,-2%,0) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) { .hero-aurora { animation: none; } }

/* --- Cartes projets : relief 3D au survol --- */
.projects { perspective: 1300px; }
.project { transform-style: preserve-3d; will-change: transform; transition: transform 220ms var(--ease), border-color 300ms var(--ease), box-shadow 300ms var(--ease); }
.project.tilting { transition: border-color 300ms var(--ease), box-shadow 300ms var(--ease); }
.project .pico, .project h3, .project .pcat { transform: translateZ(28px); }
.project .pfoot { transform: translateZ(16px); }

/* --- Boutons magnétiques --- */
.btn[data-mag] { will-change: transform; }
.btn[data-mag] > * { display: inline-flex; align-items: center; gap: inherit; }

/* --- Parallaxe hero --- */
.hero-inner { will-change: transform, opacity; }

/* --- Liens de nav : petit point actif --- */
.nav-links a { display: inline-flex; align-items: center; }

/* --- Soulignement doré animé sous les H2 de section --- */
.section-head h2 { position: relative; }
.section-head h2::after {
  content: ""; position: absolute; left: 0; bottom: -18px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width 900ms var(--ease) 200ms;
}
.section-head.in h2::after { width: 120px; }

/* --- Barre de progression de scroll --- */
.scrollbar { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 300; background: linear-gradient(90deg, var(--bronze), var(--gold)); box-shadow: 0 0 10px var(--gold-soft); transition: width 80ms linear; }

/* --- Preloader / intro --- */
.preloader { position: fixed; inset: 0; z-index: 1000; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; transition: opacity 700ms var(--ease), visibility 700ms var(--ease); }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader .pl-mark { font-size: 84px; color: var(--fg); animation: plspin 2.2s var(--ease) infinite; }
.preloader .pl-mark .north { filter: drop-shadow(0 0 16px var(--gold-soft)); }
@keyframes plspin { 0% { transform: rotate(0deg); } 60% { transform: rotate(225deg); } 100% { transform: rotate(360deg); } }
.preloader .pl-bar { width: 180px; height: 2px; background: var(--border); border-radius: 99px; overflow: hidden; }
.preloader .pl-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--bronze), var(--gold)); animation: plload 1.4s var(--ease) forwards; }
@keyframes plload { to { width: 100%; } }
.preloader .pl-word { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--fg-dim); }
@media (prefers-reduced-motion: reduce) { .preloader .pl-mark { animation: none; } }

/* --- Reveal plus marqué (scale + blur léger) --- */
.reveal { filter: blur(0); }
.reveal:not(.in) { filter: blur(2px); }
