:root {
    --color-bg:           #0b0b12;
    --color-bg-elevated:  #14141f;
    --color-bg-card:      #1c1c2a;
    --color-bg-overlay:   rgba(11, 11, 18, 0.85);

    --color-text:         #ececf2;
    --color-text-muted:   #8a8aa3;
    --color-text-dim:     #555571;

    --color-primary:      #d4af37;
    --color-primary-hov:  #e9c252;
    --color-primary-soft: rgba(212, 175, 55, 0.12);

    --color-accent:       #8b5cf6;
    --color-accent-soft:  rgba(139, 92, 246, 0.12);

    --color-success:      #10b981;
    --color-danger:       #ef4444;
    --color-warning:      #f59e0b;
    --color-info:         #3b82f6;

    --color-border:       #25253a;
    --color-border-hover: #3a3a55;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;

    --fs-xs:   0.75rem;
    --fs-sm:   0.875rem;
    --fs-base: 1rem;
    --fs-lg:   1.125rem;
    --fs-xl:   1.25rem;
    --fs-2xl:  1.5rem;
    --fs-3xl:  2rem;
    --fs-4xl:  2.75rem;
    --fs-5xl:  3.75rem;

    --radius-sm: 4px;
    --radius:    8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow:    0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 32px rgba(212, 175, 55, 0.25);

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition:      250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 450ms cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-back:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--color-text);
    background:
        radial-gradient(ellipse at top, rgba(139, 92, 246, 0.08), transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(212, 175, 55, 0.05), transparent 50%),
        var(--color-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-hov);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--fs-4xl); }
h2 { font-size: var(--fs-3xl); }
h3 { font-size: var(--fs-2xl); }
h4 { font-size: var(--fs-xl); }

ul, ol {
    list-style: none;
}

::selection {
    background: var(--color-primary);
    color: var(--color-bg);
}

/* L'attribut HTML [hidden] doit toujours masquer l'élément, peu importe
   les règles `display` plus spécifiques définies par ailleurs. */
[hidden] {
    display: none !important;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-border-hover);
}
