/* LEC Back design tokens.
   Brand (Lune en Capricorne): bordeaux #4C152A, rose #E794B7, crème #FCF5F0,
   pervenche #C8D1F6, jaune #FEF79F. Titles Italiana, interface Poppins, tirage texts
   TeX Gyre Termes, numbers JetBrains Mono.
   Two themes: "console nuit bordeaux" (default, data-theme="dark") and "crème"
   (data-theme="light"). Components only use the semantic variables below. */

@font-face { font-family: "Italiana"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/italiana-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "TeX Gyre Termes"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/texgyretermes-regular.otf") format("opentype"); }
@font-face { font-family: "TeX Gyre Termes"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/texgyretermes-italic.otf") format("opentype"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  /* brand palette (constant across themes) */
  --lec-bordeaux: #4C152A;
  --lec-bordeaux-deep: #2A0C18;
  --lec-rose: #E794B7;
  --lec-rose-soft: #F4C6DA;
  --lec-creme: #FCF5F0;
  --lec-pervenche: #C8D1F6;
  --lec-jaune: #FEF79F;
  --lec-menthe: #A8E6CF;
  --lec-corail: #FF7A90;

  /* typography */
  --font-title: "Italiana", "Didot", "Georgia", serif;
  --font-ui: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-tirage: "TeX Gyre Termes", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.75rem;

  /* spacing, radii, layout */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --r-sm: 8px; --r: 14px; --r-lg: 20px; --r-pill: 999px;
  --topbar-h: 58px;
  --tabbar-h: 64px;
  --page-max: 1280px;
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: 160ms;
}

/* --- dark: "console nuit bordeaux" (default) -------------------------------------- */
:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #170811;
  --bg-glow-1: rgba(231, 148, 183, 0.11);
  --bg-glow-2: rgba(200, 209, 246, 0.07);
  --surface: #221019;
  --surface-2: #2C1521;
  --surface-3: #381B2A;
  --overlay: rgba(23, 8, 17, 0.82);
  --border: rgba(231, 148, 183, 0.14);
  --border-strong: rgba(231, 148, 183, 0.30);
  --text: #FCF5F0;
  --text-muted: #CFB6C1;
  --text-faint: #957885;
  --accent: #E794B7;
  --accent-strong: #F4C6DA;
  --accent-ink: #2A0C18;
  --accent-soft: rgba(231, 148, 183, 0.14);
  --info: #C8D1F6;
  --info-soft: rgba(200, 209, 246, 0.14);
  --warn: #FEF79F;
  --warn-soft: rgba(254, 247, 159, 0.14);
  --ok: #A8E6CF;
  --ok-soft: rgba(168, 230, 207, 0.13);
  --danger: #FF7A90;
  --danger-soft: rgba(255, 122, 144, 0.14);
  --vital: #FF4D6D;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 18px 50px rgba(0, 0, 0, 0.55);
  --grid-line: rgba(231, 148, 183, 0.035);
}

/* --- light: "crème" -------------------------------------------------------------------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #FCF5F0;
  --bg-glow-1: rgba(231, 148, 183, 0.16);
  --bg-glow-2: rgba(200, 209, 246, 0.22);
  --surface: #FFFFFF;
  --surface-2: #F8ECE5;
  --surface-3: #F1DDD3;
  --overlay: rgba(252, 245, 240, 0.86);
  --border: rgba(76, 21, 42, 0.11);
  --border-strong: rgba(76, 21, 42, 0.24);
  --text: #2A0C18;
  --text-muted: #6A4655;
  --text-faint: #9C7F8B;
  --accent: #4C152A;
  --accent-strong: #6E2240;
  --accent-ink: #FCF5F0;
  --accent-soft: rgba(231, 148, 183, 0.22);
  --info: #3F4F9E;
  --info-soft: rgba(200, 209, 246, 0.55);
  --warn: #7A6A00;
  --warn-soft: #FEF79F;
  --ok: #1F7A55;
  --ok-soft: rgba(168, 230, 207, 0.55);
  --danger: #B42343;
  --danger-soft: rgba(255, 122, 144, 0.18);
  --vital: #C8102E;
  --shadow: 0 1px 2px rgba(76, 21, 42, 0.06), 0 10px 28px rgba(76, 21, 42, 0.07);
  --shadow-pop: 0 18px 48px rgba(76, 21, 42, 0.18);
  --grid-line: rgba(76, 21, 42, 0.035);
}
