/* ========================================
   Astralis — Thème nuit
   ======================================== */

/* ---- Splash screen ---- */

.splash-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 10, 15, 0.97);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.splash-content {
    max-width: 420px;
    text-align: center;
}

.splash-logo {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    margin-bottom: 16px;
    object-fit: contain;
}

.splash-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 4px;
}

.splash-subtitle {
    color: #8888aa;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.splash-text {
    text-align: left;
    color: #d0d0dd;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

.splash-text p {
    margin-bottom: 10px;
}

.splash-btn {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
}

/* ---- Cookie banner ---- */

#cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 400;
    background: #1a1a26;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: var(--space-3) var(--space-4);
    display: flex;
    justify-content: center;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    font-size: 0.78rem;
    color: #8888aa;
}

.cookie-btn {
    flex-shrink: 0;
    padding: 6px 16px;
    font-size: 0.78rem;
}

@font-face {
    font-family: 'Orbitron';
    font-weight: 700;
    font-display: swap;
    src: url('orbitron-700.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-weight: 400;
    font-display: swap;
    src: url('inter-400.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-weight: 500;
    font-display: swap;
    src: url('inter-500.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-weight: 600;
    font-display: swap;
    src: url('inter-600.ttf') format('truetype');
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a26;
    --bg-input: rgba(0, 0, 0, 0.3);
    --border: transparent;
    --border-subtle: rgba(255, 255, 255, 0.06);
    --text-primary: #d0d0dd;
    --text-secondary: #8888aa;
    --text-muted: #555566;
    --accent: #7B5FE7;
    --accent-hover: #8E75EF;
    --accent-bg: rgba(123, 95, 231, 0.08);
    --accent-bg-strong: rgba(123, 95, 231, 0.15);
    --accent-border: rgba(123, 95, 231, 0.15);
    --accent-border-strong: rgba(123, 95, 231, 0.3);
    --accent-glow: rgba(123, 95, 231, 0.4);
    --accent-glow-strong: rgba(123, 95, 231, 0.6);
    --logo-filter: none;
    --emoji-hue: 220deg;
    --tw-day: #3b2d7a;
    --tw-civil: #2a1e60;
    --tw-nautical: #1c1348;
    --tw-astro: #110a30;
    --tw-night: #08051a;
    --danger: #d94a4a;
    --success: #4ad97a;
    --warning: #d9a84a;
    --score-high: #4ad97a;
    --score-medium: #d9a84a;
    --score-low: #d94a4a;
    --moon-lit: #e8e4d4;
    --moon-curve: rgb(255, 220, 100);
    --moon-dark: #2a2a36;
    --moon-rim: #555;

    /* Espacements (échelle 4 px) */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;

    /* Rayons */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Ombres */
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);

    /* Taille minimale des touch targets (WCAG) */
    --touch-target: 44px;
}

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

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

body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
}
