/* style.css — Triathlon France Design Tokens & Components */

/* ============================================
   FONT FAMILIES
   DM Serif Display (headings) + DM Sans (body)
   ============================================ */
:root {
  --font-display: 'DM Serif Display', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
}

/* ============================================
   TYPE SCALE — Fluid with clamp()
   ============================================ */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.9rem  + 0.5vw,  1.125rem);
  --text-lg:   clamp(1.125rem, 0.95rem + 0.85vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1rem    + 1.5vw,  2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);
}

/* ============================================
   4px SPACING SYSTEM
   ============================================ */
:root {
  --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;
}

/* ============================================
   CUSTOM DARK PALETTE — TRIATHLON FRANCE
   Dark by default. Vibrant orange primary + teal secondary.
   ============================================ */

/* DARK MODE (default) */
:root, [data-theme="dark"] {
  /* --- Surfaces (Near-black, sporty) --- */
  --color-bg:             #0d0d0d;
  --color-surface:        #141414;
  --color-surface-2:      #1a1a1a;
  --color-surface-offset: #111111;
  --color-surface-offset-2: #1e1e1e;
  --color-surface-dynamic: #252525;
  --color-divider:        #222222;
  --color-border:         #2a2a2a;

  /* --- Text (Light grays) --- */
  --color-text:           #E8E8E8;
  --color-text-muted:     #999999;
  --color-text-faint:     #555555;
  --color-text-inverse:   #0d0d0d;

  /* --- Primary Accent (Vibrant Orange) --- */
  --color-primary:        #FF6B35;
  --color-primary-hover:  #FF8A5C;
  --color-primary-active: #E5551F;
  --color-primary-highlight: #2a1f18;

  /* --- Secondary Accent (Teal / Swim) --- */
  --color-secondary:      #00B4D8;
  --color-secondary-hover:#33C4E0;
  --color-secondary-active:#0095B3;
  --color-secondary-highlight: #162a2e;

  /* --- Semantic --- */
  --color-success:        #6daa45;
  --color-success-hover:  #4d8f25;
  --color-error:          #dd6974;
  --color-error-hover:    #c24a59;
  --color-warning:        #e8af34;
  --color-warning-hover:  #d49a20;

  /* --- Radius --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Shadows (dark surfaces) --- */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);

  /* --- Content widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

