/* =====================================================================
   Project Horizon — base.css
   Reset léger + variables design system + utilities
   ===================================================================== */

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

html, body {
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

/* ---------- Variables ------------------------------------------------- */

:root {
    /* Fonds */
    --bg-deep:        #05080f;
    --bg-surface:     #0b1220;
    --bg-elevated:    #111a2e;
    --bg-glass:       rgba(255, 255, 255, 0.04);
    --bg-glass-2:     rgba(255, 255, 255, 0.06);

    /* Couleurs accent (jurys) */
    --c-cyan:         #38bdf8;   /* expert */
    --c-cyan-2:       #0ea5e9;
    --c-violet:       #a855f7;   /* student */
    --c-violet-2:     #7c3aed;
    --c-neon:         #4ade80;   /* llm */
    --c-neon-2:       #22c55e;
    --c-gold:         #fbbf24;   /* lauréats */
    --c-gold-2:       #f59e0b;
    --c-warn:         #f87171;
    --c-warn-2:       #ef4444;

    /* Texte */
    --text-primary:   #e6edf6;
    --text-soft:      #cbd5e1;
    --text-muted:     #94a3b8;
    --text-dim:       #64748b;

    /* Bordures et effets */
    --border-soft:    1px solid rgba(255, 255, 255, 0.06);
    --border-mid:     1px solid rgba(255, 255, 255, 0.10);
    --border-strong:  1px solid rgba(255, 255, 255, 0.16);

    --glow-cyan:      0 0 24px rgba(56, 189, 248, 0.45);
    --glow-violet:    0 0 24px rgba(168, 85, 247, 0.45);
    --glow-gold:      0 0 28px rgba(251, 191, 36, 0.50);
    --glow-neon:      0 0 24px rgba(74, 222, 128, 0.45);

    --shadow-card:    0 12px 40px rgba(0, 0, 0, 0.45);
    --shadow-card-l:  0 4px 16px rgba(0, 0, 0, 0.30);

    /* Rayons */
    --r-sm:  6px;
    --r-md:  10px;
    --r-lg:  16px;
    --r-xl:  24px;

    /* Typo */
    --font-display: 'Space Grotesk', 'Inter', system-ui, -apple-system, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:    ui-monospace, 'JetBrains Mono', SFMono-Regular, monospace;

    /* Transitions */
    --t-fast:   120ms cubic-bezier(0.2, 0, 0.2, 1);
    --t-base:   220ms cubic-bezier(0.2, 0, 0.2, 1);
    --t-slow:   420ms cubic-bezier(0.2, 0, 0.2, 1);
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-primary);
    background: var(--bg-deep);
    min-height: 100vh;
}

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

/* ---------- Utilities ------------------------------------------------- */

.u-hidden       { display: none !important; }
.u-sr-only      { position: absolute !important; width: 1px; height: 1px;
                  padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0);
                  white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
