/* ── Targa'micale · Spacing, radii, shadows, borders, motion ────────────────
   8px base grid. Restrained radii (charts/hardware feel), soft warm shadows
   tinted toward navy rather than pure black. */

:root {
  /* Spacing — 8px grid (with 4px half-step) */
  --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:  2.5rem;   /* 40 */
  --space-8:  3rem;     /* 48 */
  --space-9:  4rem;     /* 64 */
  --space-10: 5rem;     /* 80 */
  --space-12: 7rem;     /* 112 */

  /* Container widths */
  --container-sm:   640px;
  --container-md:   960px;
  --container-lg:   1200px;
  --container-xl:   1400px;
  /* The sign-up form's measure (2026-10-23, A-FAIRE 36): the card of « Nous
     rejoindre » and, on the page that holds it, the page title and everything
     the bureau writes above it. One value read by the theme and by the
     portal's signup.css, so the two edges cannot drift apart. */
  --container-form: 46rem;  /* 736 */
  --gutter:         var(--space-5);

  /* Radii — tight & deliberate (nautical hardware, not soft web cards) */
  --radius-xs:   3px;
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  /* Borders */
  --border-hairline: 1px; /* @kind spacing */
  --border-thin:     1.5px; /* @kind spacing */
  --border-thick:    2px; /* @kind spacing */

  /* Shadows — warm, navy-tinted, low spread */
  --shadow-xs:  0 1px 2px rgba(18, 42, 61, 0.08);
  --shadow-sm:  0 2px 6px rgba(18, 42, 61, 0.08);
  --shadow-md:  0 6px 18px rgba(18, 42, 61, 0.10);
  --shadow-lg:  0 16px 40px rgba(12, 28, 44, 0.16);
  --shadow-pin: 0 4px 10px rgba(12, 28, 44, 0.28);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.6);

  /* Z-index ladder */
  --z-base:    0; /* @kind other */
  --z-raised:  10; /* @kind other */
  --z-sticky:  100; /* @kind other */
  --z-overlay: 1000; /* @kind other */
  --z-modal:   1100; /* @kind other */
  --z-toast:   1200; /* @kind other */

  /* Motion — quick, no bounce; confident and calm */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1); /* @kind other */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --ease-in:       cubic-bezier(0.4, 0, 1, 1); /* @kind other */
  --dur-fast:   120ms; /* @kind other */
  --dur-base:   200ms; /* @kind other */
  --dur-slow:   320ms; /* @kind other */
  --dur-slower: 520ms; /* @kind other */

  /* Buttons: one drawing for every action button of the club (2026-10-23,
     A-FAIRE 34, option B): the landing's pill, two sizes and no more. `md`
     for pages, windows and forms, `sm` for dense lists (the portal's fiches,
     the bureau's cards), which takes 44 under 640px for the finger. The
     height comes from the padding and a set line-height, never from
     `display`, so an <a> and a <button> are the same height. */
  --btn-radius:  var(--radius-pill);
  --btn-h:       44px; /* @kind spacing */
  --btn-h-sm:    36px; /* @kind spacing */
  --btn-px:      22px; /* @kind spacing */
  --btn-px-sm:   16px; /* @kind spacing */
  --btn-fs:      0.875rem;  /* 14px */
  --btn-fs-sm:   0.8125rem; /* 13px */
  --btn-fw:      600; /* @kind font */
  --btn-lh:      1.25; /* @kind font */
  --btn-py:      calc((var(--btn-h) - var(--btn-lh) * var(--btn-fs)) / 2); /* @kind spacing */
  --btn-py-sm:   calc((var(--btn-h-sm) - var(--btn-lh) * var(--btn-fs-sm)) / 2); /* @kind spacing */
  /* The outline ring: navy-400 holds 4.3:1 on white, above the 3:1 a control
     asks; paper-400 gave 1.85 and navy-300 2.5. */
  --btn-ring-w:  1.5px; /* @kind spacing */
  --btn-ring-c:  var(--navy-400);
}

@media (max-width: 40rem) {
  :root { --btn-h-sm: var(--btn-h); }
}
