/* ============================================================
   Partage-Thicar — main.css
   Variables globales, reset, typographie de base
   Police : Plus Jakarta Sans (distinctive, professionnelle)
   ============================================================ */

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

/* --- Variables globales --- */
:root {
    /* Couleurs primaires */
    --c-primary:        #2D5BE3;
    --c-primary-dark:   #1A3FA8;
    --c-primary-light:  #EEF2FF;
    --c-primary-glow:   rgba(45, 91, 227, 0.15);

    /* Couleurs sémantiques */
    --c-success:        #16A34A;
    --c-success-light:  #DCFCE7;
    --c-warning:        #D97706;
    --c-warning-light:  #FEF3C7;
    --c-error:          #DC2626;
    --c-error-light:    #FEE2E2;

    /* Surfaces */
    --c-bg:             #F1F5F9;
    --c-surface:        #FFFFFF;
    --c-surface-2:      #F8FAFC;
    --c-border:         #E2E8F0;
    --c-border-focus:   #2D5BE3;

    /* Texte */
    --c-text:           #0F172A;
    --c-text-muted:     #64748B;
    --c-text-light:     #94A3B8;

    /* Typographie */
    --font-base:        'Plus Jakarta Sans', sans-serif;
    --font-mono:        'DM Mono', monospace;

    /* Espacements */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.25rem;
    --space-6:  1.5rem;
    --space-8:  2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;

    /* Bordures */
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   16px;
    --radius-xl:   24px;
    --radius-full: 9999px;

    /* Ombres */
    --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md:  0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg:  0 10px 30px rgba(0,0,0,.10), 0 4px 8px rgba(0,0,0,.06);
    --shadow-xl:  0 20px 50px rgba(0,0,0,.14);

    /* Transitions */
    --transition-fast:   150ms ease;
    --transition-base:   250ms ease;
    --transition-slow:   400ms ease;

    /* Layout */
    --header-height: 60px;
    --sidebar-width: 260px;
    --content-max:   900px;
}

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

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

body {
    font-family: var(--font-base);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

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

a:hover {
    text-decoration: underline;
}

ul, ol {
    list-style: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* --- Utilitaires de base --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

/* --- Scrollbar personnalisée --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--c-text-light); }

/* --- Sélection de texte --- */
::selection {
    background: var(--c-primary-light);
    color: var(--c-primary-dark);
}
