/* ============================================================
   Domaine Saint-Sulpice — Jetons de design (design tokens)
   Source : design system Domaine Saint-Sulpice.
   Palette chaude et terreuse : vert sauge + terre cuite sur
   neutres sable. Pensée pour une haute lisibilité (contraste
   AA+) auprès d'un public de 50 a 85 ans et plus.
   ============================================================ */

/* --- Polices web (Google Fonts) ---
   Pour auto-heberger : remplacer cet @import par des regles
   @font-face locales pointant vers des .woff2. */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
  /* ===== Couleurs ===== */

  /* Sable : neutres chauds, fonds et surfaces */
  --sand-50:  #FBF8F3;
  --sand-100: #F4EEE3;
  --sand-200: #E9E0D0;
  --sand-300: #D8CBB6;
  --sand-400: #BBAC93;

  /* Encre : texte brun-noir chaud */
  --ink-900: #2C2820;
  --ink-800: #3D382E;
  --ink-700: #524B3D;
  --ink-600: #6B6354;
  --ink-500: #8A8170;

  /* Sauge (vert) : marque primaire, calme et rassurante */
  --green-900: #2F3D2A;
  --green-700: #46583D;  /* primaire */
  --green-600: #586E4C;
  --green-500: #6F8A62;
  --green-300: #A9BC9D;
  --green-100: #DDE6D4;
  --green-50:  #EEF2E8;

  /* Terre (terre cuite) : accent chaleureux */
  --clay-700: #97492F;
  --clay-600: #B05A3B;  /* accent */
  --clay-500: #C97A56;
  --clay-300: #E3B49C;
  --clay-100: #F3DDD0;
  --clay-50:  #FAEDE4;

  /* Statuts semantiques */
  --success-600: #46583D;
  --success-50:  #EEF2E8;
  --warning-600: #B07C24;
  --warning-50:  #F7ECCF;
  --danger-600:  #A93A2D;
  --danger-50:   #F7DFD9;
  --info-600:    #3F6B82;
  --info-50:     #E4EEF3;

  --white: #FFFFFF;

  /* ===== Alias semantiques (a utiliser dans les composants) ===== */
  --text-strong:   var(--ink-900);
  --text-body:     var(--ink-800);
  --text-muted:    var(--ink-600);
  --text-subtle:   var(--ink-500);
  --text-on-dark:  var(--sand-50);
  --text-on-brand: var(--sand-50);
  --text-link:     var(--green-700);
  --text-link-hover: var(--green-900);

  --surface-page:    var(--sand-50);
  --surface-card:    var(--white);
  --surface-sunken:  var(--sand-100);
  --surface-accent:  var(--green-50);
  --surface-warm:    var(--clay-50);
  --surface-inverse: var(--green-900);

  --border-soft:   var(--sand-200);
  --border-strong: var(--sand-300);
  --border-brand:  var(--green-300);

  --brand-primary:       var(--green-700);
  --brand-primary-hover: var(--green-900);
  --brand-primary-soft:  var(--green-100);
  --brand-accent:        var(--clay-600);
  --brand-accent-hover:  var(--clay-700);
  --brand-accent-soft:   var(--clay-100);

  --focus-ring: var(--green-700);

  /* ===== Typographie ===== */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Echelle typographique (racine 16px, corps a 1.125rem = 18px) */
  --text-xs:   0.875rem;  /* 14px */
  --text-sm:   1rem;      /* 16px */
  --text-base: 1.125rem;  /* 18px */
  --text-lg:   1.375rem;  /* 22px */
  --text-xl:   1.75rem;   /* 28px */
  --text-2xl:  2.25rem;   /* 36px */
  --text-3xl:  2.75rem;   /* 44px */
  --text-4xl:  3.5rem;    /* 56px */
  --text-5xl:  4.25rem;   /* 68px */

  --leading-tight: 1.12;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;
  --tracking-caps: 0.12em;

  /* ===== Espacement (grille de base 4px) ===== */
  --space-0: 0;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --container-max: 1200px;
  --container-narrow: 760px;
  --gutter: var(--space-6);
  --section-y: var(--space-24);
  --tap-min: 48px;

  /* ===== Rayons, ombres, mouvement ===== */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(60, 48, 32, 0.06);
  --shadow-md: 0 4px 16px -4px rgba(60, 48, 32, 0.10);
  --shadow-lg: 0 16px 40px -12px rgba(60, 48, 32, 0.16);
  --shadow-focus: 0 0 0 3px var(--surface-page), 0 0 0 6px var(--focus-ring);

  --border-width: 1px;
  --border-width-strong: 1.5px;

  --ease-standard: cubic-bezier(0.33, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
}
