/* Inter (variable font, axe wght 100-900) — self-hosted, latin + latin-ext.
   Pas de transfert hors UE vs Google Fonts CDN. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

:root {
  --color-bg: #f9f9f9;
  --color-bg-alt: #f0f0f0;
  --color-fg: #0a0a0a;
  --color-heading: #0357a9;
  --color-muted: #888;
  --color-border: #e5e5e5;
  --color-inverted-bg: #0a0a0a;
  --color-inverted-fg: #f9f9f9;

  --color-brand-red: #E93323;
  --color-brand-green: #33741F;
  --color-brand-orange: #ED7B30;
  --color-brand-violet: #8A1CCC;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-h1: clamp(2.5rem, 5vw, 4.25rem);
  --fs-h2: clamp(1.875rem, 3.2vw, 2.625rem);
  --fs-h3: 1.25rem;
  --fs-body: 1rem;
  --fs-lead: 1.125rem;
  --fs-small: 0.875rem;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  --radius: 8px;
  --max-width: 1200px;
  --header-h: 88px;
  --header-h-compact: 64px;

  --shadow-card: 0 1px 3px rgba(3, 87, 169, 0.04), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 12px 32px rgba(3, 87, 169, 0.10), 0 4px 8px rgba(0, 0, 0, 0.04);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --duration-fast: 0.2s;
  --duration: 0.4s;
  --duration-slow: 0.6s;
}

html {
  scroll-behavior: smooth;
  /* On utilise la hauteur compacte car le header est toujours compact
     quand on atterrit sur une section (scroll > 100px déclenche .scrolled-compact) */
  scroll-padding-top: var(--header-h-compact);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-fg);
  background: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-heading);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); font-weight: 600; }
h3 { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -0.01em; }

p {
  color: var(--color-fg);
  max-width: 65ch;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity var(--duration-fast) var(--ease);
}

a:hover {
  opacity: 0.7;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

:focus-visible {
  outline: 2px solid var(--color-fg);
  outline-offset: 3px;
  border-radius: 2px;
}

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