/* =============================================================================
   3A FINANCEMENT — BASE (reset + typographie)
   ============================================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px; /* compense header sticky */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--c-brand);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--c-brand-deep); }

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

/* --- TYPOGRAPHIE --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, var(--fs-5xl)); }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--fs-3xl)); }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); font-weight: 600; }

h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--c-gold);
}

p {
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-ink-soft);
}

strong { font-weight: 600; color: var(--c-ink); }

small { font-size: var(--fs-sm); }

/* --- SELECTION --- */
::selection {
  background: var(--c-brand);
  color: var(--c-white);
}

/* --- FOCUS VISIBLE (accessibilité) --- */
:focus-visible {
  outline: 2px solid var(--c-brand);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* --- UTILITIES --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-brand);
  background: var(--c-brand-soft);
  padding: 6px 12px;
  border-radius: var(--r-xs);
  margin-bottom: var(--sp-4);
}
.eyebrow--gold {
  color: var(--c-gold);
  background: var(--c-gold-soft);
}

.section {
  padding: var(--sp-9) 0;
}
@media (max-width: 768px) {
  .section { padding: var(--sp-7) 0; }
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--sp-7);
}
.section-header h2 { margin-bottom: var(--sp-4); }

.text-center { text-align: center; }
.text-left   { text-align: left; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --- ANIMATIONS DE BASE --- */
@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .fade-in.is-visible {
    opacity: 1;
    transform: none;
  }
}
