/* ==========================================================================
   Futur Bat - Design system V2 : variables et polices
   Palette Charbon chaud & Pierre de Bourgogne, verrouillee (palettes-test-v4).
   ========================================================================== */

:root {
  /* === COULEURS PALETTE alpha === */
  --bg: #1A1917;             /* Charbon neutre, chaleur tres legere, fond principal */
  --bg-alt: #222120;         /* Charbon legerement remonte, sections alternees */
  --bg-deep: #131211;        /* Charbon profond, footer / overlays */
  --text: #E5DBC8;           /* Pierre claire, texte principal */
  --text-strong: #EFE5D0;    /* Ivoire chaud, hero / accents lumineux */
  --muted: #918A7B;          /* Taupe doux, texte secondaire (WCAG AA) */
  --muted-soft: #8B8579;     /* Taupe profond, legendes / micro (WCAG AA) */
  --accent: #C9B998;         /* Pierre de Bourgogne, accent principal */
  --accent-light: #D9C9A6;   /* Pierre claire+, hover / hero italique */
  --accent-deep: #A8916A;    /* Pierre foncee, contrastes */
  --border: #2C2B28;         /* Bordure subtile */
  --border-strong: #3B3A37;  /* Bordure plus marquee */
  --line: #2A2926;           /* Lisere horizontal */
  --success: #C9B998;        /* Aligne sur accent */
  --error: #B67568;          /* Terre brulee discrete (WCAG AA), jamais rouge vif */
  --overlay: rgba(26, 25, 23, 0.85); /* Overlay charbon translucide */

  /* === TYPOGRAPHIE === */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter Tight', -apple-system, system-ui, sans-serif;

  /* Tailles fluides */
  --fs-hero: clamp(2.75rem, 5vw + 1rem, 6rem);       /* 44-96px */
  --fs-h1: clamp(2.25rem, 3vw + 1rem, 4rem);         /* 36-64px */
  --fs-h2: clamp(1.75rem, 2vw + 0.75rem, 2.75rem);   /* 28-44px */
  --fs-h3: clamp(1.375rem, 1vw + 0.875rem, 1.75rem); /* 22-28px */
  --fs-h4: clamp(1.125rem, 0.5vw + 0.875rem, 1.25rem); /* 18-20px */
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.75rem;
  --fs-tag: 0.75rem;         /* 12px pour les tags uppercase (remonte V2.2) */

  /* Line-heights */
  --lh-display: 1.02;        /* Tres resserre sur hero */
  --lh-tight: 1.15;
  --lh-body: 1.65;
  --lh-loose: 1.8;

  /* Letter-spacing */
  --ls-display: -0.03em;     /* H1, hero (negatif) */
  --ls-tight: -0.02em;       /* H2, H3 */
  --ls-normal: 0;
  --ls-wide: 0.1em;          /* Labels uppercase */
  --ls-wider: 0.18em;        /* CTA uppercase */
  --ls-widest: 0.32em;       /* Logo wordmark nav */

  /* Spacing - echelle 8 */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 48px;
  --sp-7: 64px;
  --sp-8: 96px;
  --sp-9: 128px;
  --sp-10: 160px;
  --sp-11: 200px;            /* Pour respiration hero / sections marquantes */

  /* Layout */
  --max-width: 1320px;
  --gutter: clamp(1.5rem, 4vw, 4rem);
  --nav-height: 80px;

  /* Radius - strict, jamais arrondi mou */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-full: 9999px;

  /* Z-index */
  --z-base: 1;
  --z-cursor: 50;
  --z-nav: 100;
  --z-overlay: 500;
  --z-modal: 1000;

  /* Transitions */
  --duration-fast: 200ms;
  --duration-base: 400ms;
  --duration-slow: 700ms;
  --duration-cinematic: 1200ms;  /* Hero reveals, mask reveals */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-emphasized: cubic-bezier(0.3, 0, 0.1, 1);  /* Mouvements signature */
}

/* @font-face self-hosted (woff2 variable, subset latin + latin-ext) */
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-variable.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
  font-style: normal;
  unicode-range: U+0000-00FF, U+0100-024F, U+2000-206F, U+20A0-20BF, U+2190-21FF;
}
@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-italic-variable.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
  font-style: italic;
  unicode-range: U+0000-00FF, U+0100-024F, U+2000-206F, U+20A0-20BF, U+2190-21FF;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('/assets/fonts/inter-tight-variable.woff2') format('woff2');
  font-weight: 300 600;
  font-display: swap;
  font-style: normal;
  unicode-range: U+0000-00FF, U+0100-024F, U+2000-206F, U+20A0-20BF, U+2190-21FF;
}

/* prefers-reduced-motion : neutralisation systematique */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
