/* ========================
   FONT - ICEBERG

@font-face {
    font-family: "Iceberg";
    src: url("/fonts/Iceberg/Iceberg-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

======================== */

/* ========================
   FONT - Space Grotesk

@font-face {
    font-family: "Space_Grotesk";
    src: url("/fonts/Space_Grotesk/SpaceGrotesk-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

======================== */

/* ========================
   FONT - Sora
======================== */

@font-face {
    font-family: "Sora-Regular";
    src: url("/fonts/Sora/Sora-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ========================
   CLOUD ZERO - GLOBAL RESET
======================== */

:root {
    /* ========================
       BACKGROUNDS
    ======================== */

    --bg-main: #0d0f12;
    --bg-deep: #090a0c;
    --bg-sidebar: #101216;

    --bg-surface: #16191e;
    --bg-surface-hover: #1c2026;
    --bg-surface-active: #242931;

    /* ========================
       BORDERS
    ======================== */

    --border: #292d34;
    --border-hover: #414752;

    /* ========================
       TEXT
    ======================== */

    --text-primary: #f1f3f5;
    --text-secondary: #b0b6c0;
    --text-muted: #7e8693;
    --text-white: #ffffff;

    /* ========================
       ACCENT — RED
    ======================== */

    --accent: #d9364f;
    --accent-hover: #e84a61;
    --accent-light: #ff7183;

    --accent-background: color-mix(in srgb, var(--accent) 10%, transparent);
    --accent-border: color-mix(in srgb, var(--accent) 25%, transparent);
    --accent-focus: color-mix(in srgb, var(--accent) 18%, transparent);

    /* ========================
       STATUS
    ======================== */

    --success: #3fb987;
    --warning: #e8ad55;
    --danger: #ef5265;
    --info: #7da7e8;

    /* ========================
       SHADOWS
    ======================== */

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.16);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.22);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.30);

    --glow-accent: 0 0 14px color-mix(in srgb, var(--accent) 8%, transparent);

    /* ========================
       SURFACES « VERRE » (THÈMES)
    ======================== */

    --violet: #b89bff;
    --card-grad-1: rgba(34, 24, 30, 0.91);
    --card-grad-2: rgba(23, 17, 22, 0.92);
    --glass-border-base: #735360;
    --overlay: rgba(5, 3, 5, 0.78);
    --sidebar-glass: rgba(18, 12, 16, 0.96);
    --input-bg: rgba(10, 8, 12, 0.68);
    --hairline: rgba(255, 255, 255, 0.035);
    --grid-line: rgba(255, 255, 255, 0.012);
    --glow-1: color-mix(in srgb, var(--accent) 13%, transparent);
    --glow-2: color-mix(in srgb, var(--accent) 9%, transparent);
    --glow-3: color-mix(in srgb, var(--accent) 3%, transparent);
    --vignette: rgba(0, 0, 0, 0.5);

    color-scheme: dark;

    /* ========================
       RADIUS
    ======================== */

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;

    /* ========================
       TRANSITIONS
    ======================== */

    --transition: 0.2s ease;
}

/* ========================
   RESET
======================== */

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Sora-Regular", sans-serif;
    letter-spacing: 1.5px;

    color: var(--text-primary);

    font-size: 14px;
    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    cursor: pointer;
}

img,
svg {
    max-width: 100%;
}

img {
    display: block;
}

[hidden] {
    display: none !important;
}

::selection {
    background: var(--accent-border);
    color: var(--text-white);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ========================
   GLOBAL BACKGROUND
======================== */

html {
    background: var(--bg-deep);
}

body {
    position: relative;
    isolation: isolate;

    background:
        radial-gradient(
            ellipse 560px 440px at 50% 38%,
            var(--glow-1),
            transparent 75%
        ),
        var(--bg-deep);
}

/* ========================
   BACKGROUND GLOW
======================== */

body::before {
    content: "";

    position: fixed;
    top: -320px;
    left: 50%;

    width: 850px;
    height: 850px;

    transform: translateX(-50%);

    background: radial-gradient(
        circle,
        var(--glow-2) 0%,
        var(--glow-3) 40%,
        transparent 70%
    );

    pointer-events: none;
    z-index: -1;
}

/* ========================
   BACKGROUND GRID
======================== */

body::after {
    content: "";

    position: fixed;
    inset: 0;

    background-image:
        linear-gradient(
            var(--grid-line) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            var(--grid-line) 1px,
            transparent 1px
        );

    background-size: 48px 48px;

    -webkit-mask-image: linear-gradient(
        to bottom,
        var(--vignette),
        transparent 85%
    );

    mask-image: linear-gradient(
        to bottom,
        var(--vignette),
        transparent 85%
    );

    pointer-events: none;
    z-index: -1;
}

/* ========================
   SCROLLBAR
======================== */

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border: 2px solid var(--bg-deep);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========================
   ACCESSIBILITY
======================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}