/* ==========================================================================
   Sauboin — Tokens
   Source : design_handoff_sauboin_wordpress/maquette/_ds/…/tokens/*.css
   Repris tels quels (règle handoff : zéro réinvention), plus le bloc
   « tokens maquette » en fin de fichier pour les couleurs propres aux
   maquettes, absentes de la charte.
   Ne pas éditer à la main : régénérer depuis le design system.
   ========================================================================== */

/* Outfit — variable 100–900, auto-hébergée (pas de Google Fonts CDN : RGPD). */
@font-face {
  font-family: "Outfit";
  src: url("../fonts/Outfit-Variable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- colors ---------- */
/* DS — Colors
   Source: Sauboin Mini Charte Graphique (Agence Human).
   Primary  : Violet #382a73, Mauve #c2a7d0
   Secondary: Mint  #95d5d1, Coral #f27052
*/
:root {
  /* ---- Brand palette (charte-exact) ---- */
  --sb-violet:      #382a73; /* RVB 56 43 116 — primary */
  --sb-mauve:       #c2a7d0; /* RVB 195 168 208 — primary */
  --sb-mint:        #95d5d1; /* RVB 150 213 210 — secondary */
  --sb-coral:       #f27052; /* RVB 243 112 83 — secondary */

  /* ---- Violet tint/shade ramp (derived from #382a73) ---- */
  --sb-violet-950: #14102b;
  --sb-violet-900: #1f1840;
  --sb-violet-800: #2a2057;
  --sb-violet-700: #382a73; /* base */
  --sb-violet-600: #4a3a8f;
  --sb-violet-500: #5f4faa;
  --sb-violet-400: #8172c2;
  --sb-violet-300: #a99ed7;
  --sb-violet-200: #ccc5e8;
  --sb-violet-100: #e7e3f4;
  --sb-violet-50:  #f4f2fa;

  /* ---- Mauve ramp ---- */
  --sb-mauve-600: #9c7bb5;
  --sb-mauve-500: #b291c7;
  --sb-mauve-400: #c2a7d0; /* base */
  --sb-mauve-200: #e0d2e9;
  --sb-mauve-100: #efe7f3;

  /* ---- Mint ramp ---- */
  --sb-mint-600: #4fb6b0;
  --sb-mint-500: #6ec7c2;
  --sb-mint-400: #95d5d1; /* base */
  --sb-mint-200: #cbeceb;
  --sb-mint-100: #e7f6f5;

  /* ---- Coral ramp ---- */
  --sb-coral-600: #d9502f;
  --sb-coral-500: #ec5f3f;
  --sb-coral-400: #f27052; /* base */
  --sb-coral-200: #fac4b6;
  --sb-coral-100: #fde5df;

  /* ---- Neutrals (warm-cool balanced, tinted toward violet) ---- */
  --sb-ink:      #221b3a;
  --sb-gray-900: #2c2745;
  --sb-gray-800: #3f3a56;
  --sb-gray-700: #565073;
  --sb-gray-600: #6f6a89;
  --sb-gray-500: #918da6;
  --sb-gray-400: #b3b0c3;
  --sb-gray-300: #d3d1de;
  --sb-gray-200: #e6e5ee;
  --sb-gray-100: #f2f1f7;
  --sb-gray-50:  #faf9fc;
  --sb-white:    #ffffff;

  /* ---- Semantic aliases ---- */
  --color-primary:        var(--sb-violet);
  --color-primary-hover:  var(--sb-violet-600);
  --color-primary-active: var(--sb-violet-800);
  --color-accent:         var(--sb-coral);
  --color-accent-hover:   var(--sb-coral-600);
  --color-mint:           var(--sb-mint);
  --color-mauve:          var(--sb-mauve);

  --text-strong:   var(--sb-ink);
  --text-body:     var(--sb-gray-800);
  --text-muted:    var(--sb-gray-600);
  --text-subtle:   var(--sb-gray-500);
  --text-on-dark:  var(--sb-white);
  --text-on-primary: var(--sb-white);
  --text-link:     var(--sb-violet);
  --text-link-hover: var(--sb-violet-500);

  --surface-page:    var(--sb-gray-50);
  --surface-card:    var(--sb-white);
  --surface-sunken:  var(--sb-gray-100);
  --surface-violet:  var(--sb-violet);
  --surface-mint:    var(--sb-mint-100);
  --surface-mauve:   var(--sb-mauve-100);
  --surface-coral:   var(--sb-coral-100);

  --border-subtle:  var(--sb-gray-200);
  --border-default: var(--sb-gray-300);
  --border-strong:  var(--sb-gray-400);

  /* Semantic status (mapped onto brand where possible) */
  --color-success: #3f9d7a;
  --color-warning: #e0a13a;
  --color-danger:  var(--sb-coral-600);
  --color-info:    var(--sb-violet-500);
}

/* ---------- typography ---------- */
/* DS — Typography
   Single family: Outfit (variable 100–900). Used for display, headings, and body.
   The charte permits all Outfit weights and its use as a titling face. */
:root {
  --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: var(--font-sans);
  --font-body: var(--font-sans);

  /* Weights (per charte: ExtraLight→Black all permitted) */
  --fw-extralight: 200; /* @kind font */
  --fw-light: 300; /* @kind font */
  --fw-regular: 400; /* @kind font */
  --fw-medium: 500; /* @kind font */
  --fw-semibold: 600; /* @kind font */
  --fw-bold: 700; /* @kind font */
  --fw-extrabold: 800; /* @kind font */
  --fw-black: 900; /* @kind font */

  /* Semantic heading weights — brand prefers a LIGHT, airy display voice */
  --fw-display: 300; /* @kind font */
  --fw-heading: 500; /* @kind font */
  --fw-subhead: 600; /* @kind font */

  /* Type scale (1.25 major-third) */
  --fs-display: 4.5rem;   /* 72px */
  --fs-h1: 3rem;          /* 48px */
  --fs-h2: 2.25rem;       /* 36px */
  --fs-h3: 1.75rem;       /* 28px */
  --fs-h4: 1.375rem;      /* 22px */
  --fs-lg: 1.25rem;       /* 20px */
  --fs-body: 1rem;        /* 16px */
  --fs-sm: 0.875rem;      /* 14px */
  --fs-xs: 0.75rem;       /* 12px */

  --lh-tight: 1.05; /* @kind other */
  --lh-snug: 1.2; /* @kind other */
  --lh-normal: 1.5; /* @kind other */
  --lh-relaxed: 1.65; /* @kind other */

  --ls-tight: -0.02em; /* @kind other */
  --ls-normal: 0; /* @kind other */
  --ls-wide: 0.02em; /* @kind other */
  --ls-caps: 0.14em; /* @kind other */
}

/* ---------- spacing ---------- */
/* DS — Spacing & layout (8px base grid) */
:root {
  --space-0: 0;
  --space-1: 0.25rem;  /* 4 */
  --space-2: 0.5rem;   /* 8 */
  --space-3: 0.75rem;  /* 12 */
  --space-4: 1rem;     /* 16 */
  --space-5: 1.5rem;   /* 24 */
  --space-6: 2rem;     /* 32 */
  --space-7: 3rem;     /* 48 */
  --space-8: 4rem;     /* 64 */
  --space-9: 6rem;     /* 96 */

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --radius-circle: 50%;

  --container-sm: 640px; /* @kind other */
  --container-md: 960px; /* @kind other */
  --container-lg: 1200px; /* @kind other */
}

/* ---------- effects ---------- */
/* DS — Effects: shadows, transitions, focus.
   Soft, warm shadows tinted with the violet ink — calm, care-focused feel. */
:root {
  --shadow-xs: 0 1px 2px rgba(34, 27, 58, 0.06);
  --shadow-sm: 0 2px 8px rgba(34, 27, 58, 0.07);
  --shadow-md: 0 8px 24px rgba(34, 27, 58, 0.10);
  --shadow-lg: 0 18px 48px rgba(34, 27, 58, 0.14);
  --shadow-focus: 0 0 0 3px rgba(56, 42, 115, 0.28);

  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1); /* @kind other */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --dur-fast: 130ms; /* @kind other */
  --dur-med: 220ms; /* @kind other */
  --dur-slow: 380ms; /* @kind other */
}

/* ==========================================================================
   Tokens maquette — couleurs présentes dans les maquettes mais absentes
   de la charte (README « Couleurs propres aux maquettes »).
   ========================================================================== */
:root {
  --sb-page:            #f6eee8; /* fond de page, beige chaud */
  --sb-eyebrow-home:    #efe3d6; /* pastilles eyebrow — accueil */
  --sb-eyebrow-metier:  #eedfd4; /* pastilles eyebrow — pages métier */
  --sb-box-deonto:      #ece7f3; /* encadré déontologique, violet pâle */
  --sb-box-relais:      #dff0ef; /* encadré « relais » / ATM / phases / confirmation, menthe pâle */
  --sb-box-warning:     #fbe4dc; /* encadré d'avertissement, corail pâle (Tendinopathies) */
  --sb-footer:          #1f1b2b; /* fond du footer */
  --sb-hero-mint:       #95d5d1; /* bloc héro Kiné humaine */
  --sb-field-border:    #e2d9ea; /* bordure de champ de formulaire */
  --sb-card-rule:       #ece4f2; /* filet interne de carte contact */
  --sb-badge-soon:      #f2ecf7; /* badge « Bientôt » */
  --sb-box-explicatif:  #e6f5f4; /* encadré explicatif d'article, menthe très pâle */

  /* Le fond de page de la maquette prime sur le --surface-page du DS. */
  --surface-page: var(--sb-page);

  /* Mouvement — valeurs des maquettes (aucun rebond, aucun overshoot). */
  --sb-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --sb-ease-in: cubic-bezier(0.55, 0, 0.9, 0.4);

  /* Ombres des maquettes (distinctes des --shadow-* du DS). */
  --sb-shadow-card:       0 2px 10px -4px rgba(34, 27, 58, 0.10);
  --sb-shadow-card-alt:   0 8px 24px 0 rgba(56, 42, 115, 0.08);
  --sb-shadow-card-hover: 0 22px 44px -18px rgba(34, 27, 58, 0.24);
  --sb-shadow-header:     0 2px 12px -6px rgba(34, 27, 58, 0.14);
  --sb-shadow-dropdown:   0 18px 40px -12px rgba(34, 27, 58, 0.22);
  --sb-shadow-cta-hover:  0 10px 22px -12px rgba(242, 112, 82, 0.7);
  --sb-shadow-panel:      -18px 0 50px -24px rgba(34, 27, 58, 0.5);

  /* Seuil de bascule mobile (nav) — cf. README. */
  --sb-bp-mobile: 960px;
}
