:root {
    /* Typographie */
    --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.375rem;
    --font-size-2xl: 1.75rem;

    --card-title-font-size: 1.1rem;
    --card-desc-font-size: 0.9rem;
    --icon-font-size: 0.85rem;

    --line-height: 1.6;

    /* 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;

    /* Arrondis */
    --radius-sm: 0.375rem;
    --radius-md: 0.625rem;
    --radius-lg: 0.875rem;
    --radius-xl: 1.125rem;
    --radius-2xl: 1.5rem;
    --radius-pill: 9999px;

    /* Transitions */
    --transition: 180ms ease;
    --transition-smooth: 280ms cubic-bezier(0.2, 0.7, 0.2, 1);

    /* Couleurs fonctionnelles */
    --danger: #ef4444;
    --danger-hover: #dc2626;
    --danger-bg: rgba(239, 68, 68, 0.12);
    --danger-text: #ef4444;

    --success: #10b981;
    --success-bg: rgba(16, 185, 129, 0.12);
    --success-text: #059669;

    --warning: #d97706;
    --warning-hover: #b45309;
    --warning-bg: rgba(217, 119, 6, 0.12);

    --info: #b58b4a;
    --info-bg: rgba(181, 139, 74, 0.12);
    --info-text: #98733d;

    /* Focus clavier */
    --focus-ring: 0 0 0 3px rgba(181, 139, 74, 0.28);

    /* Ombres : valeurs par défaut */
    --shadow-xs: 0 1px 2px var(--shadow-color);
    --shadow-sm: 0 2px 6px var(--shadow-color);
    --shadow-md: 0 5px 14px var(--shadow-color);
    --shadow-lg: 0 12px 30px var(--shadow-color);
    --shadow-hover: 0 10px 24px var(--shadow-hover-color);
}

/* =========================================
   THÈME CLAIR
   ========================================= */

[data-theme="light"] {
    color-scheme: light;

    /* Accent doré */
    --primary: #98733d;
    --primary-hover: #79582b;
    --primary-light: rgba(152, 115, 61, 0.12);

    /* Surfaces */
    --bg-body: #f3f5f8;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    --bg-input: #ffffff;

    /* Texte */
    --text-main: #182131;
    --text-muted: #657084;
    --text-subtle: #8791a1;

    /* Bordures */
    --border-color: #e1e5ec;
    --border-hover: #c7ced9;

    /* Ombres */
    --shadow-color: rgba(24, 33, 49, 0.055);
    --shadow-hover-color: rgba(24, 33, 49, 0.12);

    /* Statuts : lisibles sur fond clair */
    --danger-text: #dc2626;
    --success-text: #047857;
    --info-text: #79582b;
}

/* =========================================
   THÈME SOMBRE
   ========================================= */

[data-theme="dark"] {
    color-scheme: dark;

    /* Accent doré */
    --primary: #d6b477;
    --primary-hover: #e7c994;
    --primary-light: rgba(214, 180, 119, 0.13);

    /* Surfaces */
    --bg-body: #111318;
    --bg-card: #191c23;
    --bg-elevated: #20242d;
    --bg-input: #151820;

    /* Texte */
    --text-main: #f1f3f7;
    --text-muted: #a0a8b7;
    --text-subtle: #7f899a;

    /* Bordures */
    --border-color: #2b303b;
    --border-hover: #414959;

    /* Ombres */
    --shadow-color: rgba(0, 0, 0, 0.20);
    --shadow-hover-color: rgba(0, 0, 0, 0.38);

    /* Statuts */
    --danger-text: #ff7777;
    --success-text: #4adea6;
    --info-text: #e2c18b;
}
