/* ============================================================
   Satyam Advisory · typography.css
   Polices self-hosted woff2 + scales fluides
   Sources : Google Fonts (gratuit) — Fraunces + Inter + JetBrains Mono
   ============================================================ */

/* ---------- @font-face (woff2 self-hosted, à placer dans /assets/fonts/) ---------- */

@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/Fraunces-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/Fraunces-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/Fraunces-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('../assets/fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- BODY ---------- */

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-relaxed);
  color: var(--color-anthracite);
  background: var(--color-ivoire);
}

/* ---------- HEADINGS (Fraunces SemiBold) ---------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--color-navy);
  text-wrap: auto; /* wrap naturel du navigateur, pas de cassure forcée */
}

h1 {
  font-size: var(--fs-h1);
  margin-bottom: var(--space-5);
}

h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-5);
}

h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-snug);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

h4 {
  font-size: var(--fs-h4);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

/* ---------- PARAGRAPHE + TEXTE COURANT ---------- */

p {
  margin-bottom: var(--space-4);
  text-wrap: pretty;
  max-width: 85ch; /* largeur élargie, reste sous le seuil fatigue NN/g */
}

p:last-child {
  margin-bottom: 0;
}

/* Prose dense (ex : récit fondateur) */
.prose p {
  margin-bottom: var(--space-5);
  font-size: var(--fs-body);
  line-height: var(--lh-loose);
}

/* ---------- ITALIQUE éditorial (sous-titres Fraunces) ---------- */

.italic-display,
.sous-titre {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  line-height: var(--lh-snug);
  color: var(--color-anthracite);
  margin-bottom: var(--space-5);
  max-width: 95ch;
  text-wrap: pretty;
}

/* ---------- MONO (data, chiffres, code) ---------- */

code, kbd, samp, pre,
.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  font-weight: 400;
}

/* ---------- LIENS ---------- */

a {
  color: var(--color-cuivre);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color var(--duration-base) var(--easing),
              border-color var(--duration-base) var(--easing);
}

a:hover {
  color: var(--color-cuivre-hover);
}

/* Liens sans soulignement (nav, CTA, etc.) — utiliser .link-bare */
.link-bare,
.link-bare:hover {
  border-bottom: none;
}

/* ---------- LISTES (rare, éditorial) ---------- */

.list-editorial {
  list-style: none;
  margin-bottom: var(--space-5);
  padding-left: 0;
}

.list-editorial li {
  padding-left: var(--space-5);
  position: relative;
  margin-bottom: var(--space-3);
  line-height: var(--lh-relaxed);
}

.list-editorial li::before {
  content: '·';
  position: absolute;
  left: var(--space-2);
  color: var(--color-cuivre);
  font-weight: 700;
  font-size: 1.25em;
  line-height: 1;
  top: 0.1em;
}

ol.list-numbered {
  counter-reset: editorial-counter;
  list-style: none;
  margin-bottom: var(--space-5);
  padding-left: 0;
}

ol.list-numbered li {
  counter-increment: editorial-counter;
  padding-left: var(--space-7);
  position: relative;
  margin-bottom: var(--space-4);
  line-height: var(--lh-relaxed);
}

ol.list-numbered li::before {
  content: counter(editorial-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--color-cuivre);
  font-weight: 500;
  letter-spacing: var(--ls-wider);
}

/* ---------- ÉPIGRAPHE / REGISTRE (style Mastiff "Pièce n°1 · Manifeste") ---------- */

.epigraphe {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-epigraphe);
  font-weight: 400;
  color: var(--color-cuivre);
  text-transform: uppercase;
  letter-spacing: var(--ls-caps);
  margin-bottom: var(--space-4);
}

/* ---------- BLOCKQUOTE ---------- */

blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-h4);
  line-height: var(--lh-snug);
  color: var(--color-navy);
  padding-left: var(--space-5);
  border-left: 3px solid var(--color-cuivre);
  margin: var(--space-6) 0;
  max-width: 60ch;
}

/* ---------- EMPHASE ---------- */

strong, b {
  font-weight: 500; /* Inter Medium, pas bold agressif */
  color: var(--color-navy);
}

em, i {
  font-style: italic;
}

/* ---------- PRICING display ---------- */

.pricing-display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  color: var(--color-navy);
  line-height: 1;
  letter-spacing: var(--ls-tight);
}

.pricing-suffix {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  color: var(--color-anthracite-soft);
  margin-left: var(--space-2);
}


/* CTA final home — forcer 2 lignes sur desktop (mobile : wrap naturel) */
@media (min-width: 768px) {
  .cta-final-balance span {
    white-space: nowrap;
    display: inline-block;
  }
}
