/* ============================================================
   GENETIXX — Design System
   Indigo profond + signature gradient violet/lavande
   ============================================================ */

/* --- Brand typeface: LT Galaxy Reverse --- */
@font-face {
    font-family: 'Galaxy';
    src: url('../fonts/LTGalaxyReverseRegular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Galaxy';
    src: url('../fonts/LTGalaxyReverseMedium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Galaxy';
    src: url('../fonts/LTGalaxyReverseSemiBold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Galaxy';
    src: url('../fonts/LTGalaxyReverseBold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Galaxy';
    src: url('../fonts/LTGalaxyReverseExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
/* 900 retombe sur l'ExtraBold (poids le plus lourd de la famille) */
@font-face {
    font-family: 'Galaxy';
    src: url('../fonts/LTGalaxyReverseExtraBold.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Core palette — indigo profond teinte marque */
    --bg-deep: #07041A;
    --bg-primary: #0B0722;
    --bg-secondary: #110C2B;
    --bg-card: #150F33;
    --bg-elevated: #1B1440;
    --bg-glass: rgba(11, 7, 34, 0.72);

    /* Brand accents */
    --violet: #4500F9;
    --lavender: #8851FA;
    --indigo-900: #0D033D;

    /* Accent colors (noms historiques conservés, palette Genetixx) */
    --red: #8B5CFC;
    --red-dim: #6E33FA;
    --red-glow: rgba(139, 92, 252, 0.4);
    --red-subtle: rgba(139, 92, 252, 0.1);
    --blue: #8B5CFC;
    --blue-dim: #6E33FA;
    --blue-glow: rgba(139, 92, 252, 0.3);
    --cyan: #8B5CFC;
    --green: #10b981;
    --green-glow: rgba(16, 185, 129, 0.3);
    --yellow: #8B5CFC;
    --gradient-main: linear-gradient(118deg, #4500F9, #8851FA);
    --gradient-red: linear-gradient(118deg, #6E33FA, #A97DFC);
    --gradient-blue: linear-gradient(118deg, #4500F9, #8851FA);

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #8B86A3;
    --text-muted: #5E5978;
    --text-dark: #0D033D;

    /* Borders */
    --border-subtle: rgba(255, 255, 255, 0.07);
    --border-medium: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(139, 92, 252, 0.35);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;

    /* Typography */
    --font-body: 'Galaxy', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Theme transition */
    --theme-transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    /* App-specific */
    --bottom-nav-height: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ============================================================
   LIGHT MODE
   ============================================================ */
[data-theme="light"] {
    --bg-deep: #F5F4F9;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F1EFF8;
    --bg-card: #FFFFFF;
    --bg-elevated: #FAF9FD;
    --bg-glass: rgba(255, 255, 255, 0.78);

    --red: #4500F9;
    --red-dim: #3600C4;
    --red-glow: rgba(69, 0, 249, 0.22);
    --red-subtle: rgba(69, 0, 249, 0.06);
    --blue: #4500F9;
    --blue-dim: #3600C4;
    --blue-glow: rgba(69, 0, 249, 0.18);
    --cyan: #4500F9;
    --yellow: #4500F9;
    --gradient-main: linear-gradient(118deg, #4500F9, #8851FA);
    --gradient-red: linear-gradient(118deg, #4500F9, #8851FA);

    --text-primary: #131215;
    --text-secondary: #6B6880;
    --text-muted: #9793A8;
    --text-dark: #0D033D;

    --border-subtle: rgba(13, 3, 61, 0.08);
    --border-medium: rgba(13, 3, 61, 0.14);
    --border-accent: rgba(69, 0, 249, 0.25);
}
