/* =========================================================================
   Design system — variables et reset
   Source de vérité unique pour palette, espacements, typographie, layout.
   ========================================================================= */

:root {
  /* Palette */
  --np-cream: #F8F4ED;
  --np-cream-dim: #EBE4D5;
  --np-white: #FFFFFF;
  --np-ink: #1A1A1A;
  --np-ink-soft: #5A5A55;
  --np-accent: #A82A2A;
  --np-border: #E5DFD3;

  /* Typographie — familles */
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-greek: "GFS Didot", "Cormorant Garamond", Georgia, serif;

  /* Échelle d'espacement (modulaire 1.5) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 36px;
  --space-7: 56px;
  --space-8: 84px;
  --space-9: 128px;

  /* Layout */
  --container-max: 1280px;
  --reading-max: 680px;
  --gutter-desktop: 24px;
  --gutter-mobile: 16px;

  /* Transitions */
  --t-fast: 120ms ease;
  --t-base: 200ms ease;
  --t-slow: 400ms ease;
}

/* Reset minimal */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }

/* Container global */
.np-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter-mobile);
}
@media (min-width: 1024px) {
  .np-container { padding-inline: var(--gutter-desktop); }
}

/* Skip link a11y */
.np-skip-link {
  position: absolute;
  inset-inline-start: var(--space-2);
  inset-block-start: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--np-ink);
  color: var(--np-cream);
  z-index: 999;
  transform: translateY(-200%);
  transition: transform var(--t-fast);
}
.np-skip-link:focus { transform: translateY(0); }

/* Visually hidden */
.np-sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
