@font-face { font-family: 'Hedvig Letters Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/hedvig.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fonts/instrument.woff2') format('woff2'); }

:root {
  /* Palette "Au Chaud" — cocon d'hiver, halo de chaleur */
  --color-primary: #4A2E3A;
  --color-secondary: #6B4350;
  --color-cta: #C25A3C;
  --color-cta-hover: #A8492E;
  --color-background: #F5EDDF;
  --color-surface: #FBF4E8;
  --color-surface-dark: #3B2530;
  --color-text: #2E2622;
  --color-text-muted: #8A7A6E;
  --color-text-light: #F7EFE2;
  --color-border: #E7DBC6;
  --color-accent: #E9A23B;
  --color-amber: #E9A23B;
  --color-ember: #C25A3C;
  --color-success: #4F7A50;
  --color-error: #C0492A;

  --font-heading: 'Hedvig Letters Serif', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-hero: clamp(2.75rem, 6vw, 4.75rem);

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  --shadow-sm: 0 1px 3px rgba(15,23,41,0.06);
  --shadow-md: 0 4px 16px rgba(15,23,41,0.09);
  --shadow-lg: 0 8px 28px rgba(15,23,41,0.13);
  --shadow-xl: 0 16px 48px rgba(15,23,41,0.18);
  --shadow-cta: 0 4px 18px rgba(233,135,122,0.40);

  --z-base: 0;
  --z-cards: 10;
  --z-sticky: 20;
  --z-nav: 30;
  --z-dropdown: 40;
  --z-modal: 50;
  --z-toast: 60;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.65;
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--color-text);
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-cta); }

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

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--color-cta);
  color: #fff;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-base);
  box-shadow: var(--shadow-cta);
  transition: all 200ms ease;
  cursor: pointer;
  border: none;
  min-height: 48px;
  min-width: 44px;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--color-cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233,135,122,0.48);
  color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  transition: all 200ms ease;
  cursor: pointer;
  min-height: 48px;
  text-decoration: none;
}
.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-text-light);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--space-xl); }
}

/* Grain texture */
.texture-grain { position: relative; overflow: hidden; }
.texture-grain::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

.gradient-warm { background: linear-gradient(135deg, #3B2530 0%, #5E3A42 55%, #7A4A3C 100%); }
.gradient-surface { background: linear-gradient(180deg, #F5EDDF 0%, #FBF4E8 100%); }

.prose { max-width: 68ch; }
