/* =====================================================================
   ULITIA — Charte graphique officielle
   Référence : chartegraphiqueulitia.pdf — Mai 2026
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

:root {
    /* Couleurs marque */
    --u-blue-light: #2BB5D4;
    --u-blue-deep: #1A6B99;
    --u-violet: #8B5FBF;
    --u-violet-light: #A78BDB;

    /* Gradient signature */
    --u-gradient: linear-gradient(to right, #2BB5D4, #1A6B99 45%, #8B5FBF);

    /* Mode clair (par défaut) */
    --bg: #FFFFFF;
    --bg-soft: #F8FAFC;
    --bg-card: #FFFFFF;
    --text: #1E293B;
    --text-muted: #64748B;
    --text-soft: #94A3B8;
    --border: #E2E8F0;
    --border-strong: #CBD5E1;

    /* Statuts (utilisés pour les alertes documents plus tard) */
    --status-ok: #10B981;
    --status-warn: #F59E0B;
    --status-urgent: #EF4444;
    --status-expired: #991B1B;
    --status-info: #3B82F6;

    /* Typographies */
    --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

    /* Layout */
    --radius: 8px;
    --radius-lg: 12px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);

    /* Transitions */
    --t-fast: 150ms ease;
    --t-base: 250ms ease;
}

/* Mode sombre */
[data-theme="dark"] {
    --bg: #1C1C2E;
    --bg-soft: #14141F;
    --bg-card: #252538;
    --text: #F1F5F9;
    --text-muted: #94A3B8;
    --text-soft: #64748B;
    --border: #2D2D42;
    --border-strong: #3D3D52;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

html {
    height: 100%;
}

body {
    min-height: 100%;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg-soft);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background var(--t-base), color var(--t-base);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

a {
    color: var(--u-violet);
    text-decoration: none;
    transition: color var(--t-fast);
}
[data-theme="dark"] a {
    color: var(--u-violet-light);
}
a:hover {
    text-decoration: underline;
}

button {
    font-family: var(--font-body);
}

/* =====================================================================
   Logo Ulit+IA — strict respect charte
   ===================================================================== */
.logo-ulitia {
    font-family: var(--font-display);
    font-size: 28px;
    letter-spacing: -1.5px;
    display: inline-flex;
    align-items: baseline;
    line-height: 1;
}
.logo-ulitia .ulit {
    font-weight: 700;
    background: var(--u-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.logo-ulitia .ia {
    font-weight: 800;
    color: var(--u-violet);
}
[data-theme="dark"] .logo-ulitia .ia {
    color: var(--u-violet-light);
}
