/* ==========================================================================
   Nexum Partners · 2026
   Charte : bleu marine #1B365D · or #B8860B · Nunito (texte) · Fraunces (titres)
   ========================================================================== */

:root {
  --navy: #1B365D;
  --navy-deep: #0E1F3A;
  --gold: #B8860B;
  --gold-bright: #D4A017;
  --gold-light: #F2C94C;

  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --surface-2: #F3F1EB;
  --ink: #0F2340;
  --ink-2: #4A5568;
  --accent-ink: #8B6914; /* or lisible sur fond clair (AA) */
  --line: rgba(27, 54, 93, .12);
  --shadow: 0 1px 2px rgba(15, 35, 64, .04), 0 12px 32px -12px rgba(15, 35, 64, .18);
  --header-bg: rgba(251, 250, 247, .78);

  --font-sans: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", ui-serif, Georgia, serif;

  --radius: 20px;
  --radius-sm: 12px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 10vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  text-wrap: balance;
}
p { text-wrap: pretty; }

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

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.ai { color: var(--gold-bright); }
.center { text-align: center; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus-visible { top: 1rem; }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -12px rgba(27, 54, 93, .7); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--gold-bright); color: var(--accent-ink); }

.btn-gold { background: var(--gold-bright); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-light); }

.btn-sm { padding: .6rem 1.15rem; font-size: .875rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}
.brand { display: inline-flex; border-radius: 10px; }
.brand img { width: auto; height: 30px; }
.nav { display: flex; align-items: center; gap: clamp(.75rem, 2.5vw, 2rem); }
.nav-link {
  position: relative;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  color: var(--ink);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }

@media (max-width: 640px) {
  .nav-link { display: none; }
  .brand img { height: 24px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(56px, 9vw, 120px) clamp(64px, 10vw, 140px);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -72px 0 0;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 20%, rgba(212, 160, 23, .16), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, rgba(27, 54, 93, .10), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero h1 {
  font-size: clamp(2.6rem, 1.4rem + 5vw, 5rem);
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  white-space: nowrap;
  background: linear-gradient(100deg, var(--gold) 10%, var(--gold-light) 50%, var(--gold) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem);
  color: var(--ink-2);
  max-width: 34ch;
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-visual { position: relative; aspect-ratio: 1 / .8; }
/* Symbole officiel : affiché tel quel, proportions d'origine */
.infinity {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 92%;
  height: auto;
  translate: -50% -50%;
  filter: drop-shadow(0 14px 26px rgba(184, 134, 11, .28));
}

.chip {
  position: absolute;
  padding: .7rem 1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: .85rem;
  color: var(--ink-2);
  white-space: nowrap;
}
.chip strong {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--ink);
  margin-right: .35rem;
}
.chip-1 { top: 2%; left: 4%; }
.chip-2 { bottom: 4%; left: 18%; }
.chip-3 { top: 40%; right: -2%; }

@media (prefers-reduced-motion: no-preference) {
  .infinity { animation: mark-in 1.4s var(--ease) .15s both; }
  .chip { animation: float-in .8s var(--ease) both, bob 6s ease-in-out infinite; }
  .chip-1 { animation-delay: .9s, 1.7s; }
  .chip-2 { animation-delay: 1.1s, 2.4s; }
  .chip-3 { animation-delay: 1.3s, 3.1s; }
  .hero-copy > * { animation: float-in .8s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
}
@keyframes mark-in { from { opacity: 0; scale: .94; } }
@keyframes float-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes bob { 50% { translate: 0 -6px; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; width: 100%; margin-inline: auto; }
}
@media (max-width: 480px) {
  .chip { font-size: .75rem; padding: .5rem .7rem; }
  .chip strong { font-size: 1.1rem; }
  .chip-3 { right: 0; }
}

/* ---------- Pourquoi Nexum ---------- */
.origin { padding-block: clamp(8px, 2vw, 24px) 0; }
.origin-card {
  margin: 0;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 6vw, 5rem);
  border-block: 1px solid var(--line);
  text-align: center;
}
.origin-mark { width: 88px; height: auto; margin: 0 auto 1.25rem; }
.origin-card .eyebrow { margin-bottom: 1.25rem; }
.origin-card blockquote { margin: 0 auto; max-width: 860px; }
.origin-card blockquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 1rem + 1.3vw, 2.05rem);
  line-height: 1.4;
  color: var(--ink);
  text-wrap: balance;
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
.section-lead { margin-top: 1.25rem; font-size: 1.1rem; color: var(--ink-2); max-width: 62ch; }

/* Scroll-driven reveal (progressive enhancement) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 22%;
    }
  }
}
@keyframes reveal { from { opacity: 0; transform: translateY(28px); } }

/* ---------- Offres (bento) ---------- */
.bento {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
}
.card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.card:hover { transform: translateY(-4px); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover img { transform: scale(1.04); }
.card h3 { font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); margin-bottom: .5rem; }
.card p { color: var(--ink-2); }
.card-body { padding: clamp(1.25rem, 2.5vw, 2rem); }

.card-feature { grid-row: span 2; display: grid; grid-template-rows: 1fr auto; }
.card-feature img { aspect-ratio: 16 / 10; }
.card-row { display: grid; grid-template-columns: 32% 1fr; align-items: stretch; }
.card-row .card-body { align-self: center; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; grid-template-rows: none; }
  .card-feature { grid-row: auto; }
}
@media (max-width: 560px) {
  .card-row { grid-template-columns: 1fr; }
  .card-row img { aspect-ratio: 16 / 9; }
}

.card-tag {
  display: inline-block;
  margin-bottom: .85rem;
  padding: .25rem .7rem;
  border-radius: 999px;
  background: rgba(212, 160, 23, .14);
  color: var(--accent-ink);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.card .card-tagline {
  margin-bottom: .75rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--ink);
}
.card-stack { display: grid; grid-template-rows: auto 1fr; }
.card-stack img { aspect-ratio: 16 / 8; }

.offer-group { margin: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(1.75rem, 4vw, 2.5rem); max-width: 760px; }
.offer-group h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }
.bento-duo { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
@media (max-width: 900px) { .bento-duo { grid-template-columns: 1fr; } }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.stat { display: flex; flex-direction: column-reverse; padding: 2rem 1rem 0; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat dd {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 1.8rem + 3vw, 4.25rem);
  font-weight: 600;
  line-height: 1;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.stat dt {
  margin-top: .6rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding-bottom: 1.5rem; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- Contact ---------- */
.section-contact { padding-top: 0; }
.contact-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(1.75rem, 5vw, 4rem);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(80% 120% at 100% 100%, rgba(212, 160, 23, .14), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--line);
}
.contact-card h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.9rem); }
.contact-lead { margin-top: 1rem; font-size: 1.15rem; color: var(--ink-2); }

.contact-list { display: grid; gap: .75rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 600;
  transition: border-color .25s, transform .25s var(--ease);
  overflow-wrap: anywhere;
}
.contact-item:hover { border-color: var(--gold-bright); transform: translateX(4px); }
.contact-item small {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.contact-item svg {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 10px;
  background: rgba(212, 160, 23, .14);
  color: var(--accent-ink);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-item svg.fill { fill: currentColor; stroke: none; }

@media (max-width: 900px) { .contact-card { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 3.5rem;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: .88rem;
  text-align: center;
}
.footer-inner { display: grid; justify-items: center; gap: .6rem; }
.logo-plate { display: inline-flex; border-radius: 12px; margin-bottom: .25rem; }
.footer-logo { width: 220px; height: auto; }
.footer-baseline { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; color: var(--accent-ink); }
.footer-links a { color: var(--ink); text-underline-offset: 3px; }
.footer-links a:hover { color: var(--accent-ink); }

/* ---------- Legal page ---------- */
.legal { padding-block: clamp(48px, 8vw, 96px); }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.25rem); margin-bottom: 2rem; }
.legal h2 { font-size: 1.4rem; margin: 2.5rem 0 .75rem; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal a { color: var(--accent-ink); }
