/* ═══════════════════════════════════════════════════════════════
   GèreMène SaaS — Base Styles
   Design tokens, reset, typography
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
    /* Primary palette */
    --color-primary: #1a3a5c;
    --color-primary-light: #2d5a8e;
    --color-primary-dark: #0f2640;
    --color-primary-bg: #e8f0f8;

    /* Accent */
    --color-accent: #e8a817;
    --color-accent-hover: #f0b927;
    --color-accent-dark: #c88e0f;

    /* Semantic */
    --color-success: #2d8a4e;
    --color-success-bg: #e6f4ea;
    --color-danger: #c0392b;
    --color-danger-bg: #fce8e6;
    --color-warning: #e67e22;
    --color-warning-bg: #fef5e7;
    --color-info: #2980b9;
    --color-info-bg: #e8f4fd;

    /* Neutrals */
    --color-dark: #1a1a2e;
    --color-gray-900: #212529;
    --color-gray-700: #495057;
    --color-gray: #6c757d;
    --color-gray-400: #adb5bd;
    --color-gray-200: #dee2e6;
    --color-gray-100: #f0f2f5;
    --color-light: #f5f7fa;
    --color-white: #ffffff;

    /* Typography */
    --font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;
    --font-size-5xl: 3.5rem;
    --line-height: 1.7;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Borders & Shadows */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 40px rgba(0,0,0,0.18);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--color-dark);
    background: var(--color-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video, svg {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ─── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-sm);
}

h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }

p {
    margin-bottom: var(--space-md);
}

strong { font-weight: 600; }

small {
    font-size: var(--font-size-sm);
    color: var(--color-gray);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-gray { color: var(--color-gray); }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }

/* ─── Lists ─────────────────────────────────────────────────── */
ul, ol { padding-left: var(--space-lg); }
ul.unstyled, ol.unstyled { list-style: none; padding-left: 0; }

/* ─── Selection ─────────────────────────────────────────────── */
::selection {
    background: var(--color-primary-light);
    color: var(--color-white);
}

/* ─── Focus ─────────────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
}