/* =====================================================================
   GlowUpLive — Design Tokens
   Direction artistique : "Sunset Glow"
   Golden hour : corail → orange → ambre, accent crépuscule (plum).
   Contient : couleurs de marque, dégradés, couleurs d'état, échelle
   neutre, tokens sémantiques (thème sombre par défaut + thème clair),
   typographie, espacements, rayons, ombres/halos, transitions, z-index.
   ===================================================================== */

:root {
  /* ---- Couleurs de marque (brand) ---- */
  --gul-coral:      #FF4D6D;  /* primaire */
  --gul-coral-600:  #F5325A;
  --gul-coral-700:  #DB2450;
  --gul-sunset:     #FF7A59;  /* orange chaud */
  --gul-amber:      #FFB84D;  /* ambre / or */
  --gul-pink:       #FF7EB6;  /* rose lumineux */
  --gul-peach:      #FFC9A3;  /* pêche clair */
  --gul-plum:       #B14AED;  /* accent crépuscule (secondaire) */
  --gul-grape:      #7C3AED;  /* secondaire profond */
  --gul-dusk:       #5B3A9B;  /* violet nuit */

  /* ---- Dégradés signature ("le glow") ---- */
  --gul-gradient:        linear-gradient(120deg, #FF4D6D 0%, #FF7A59 46%, #FFB84D 100%);
  --gul-gradient-soft:   linear-gradient(120deg, #FF6F8A 0%, #FF9166 50%, #FFC66B 100%);
  --gul-gradient-dusk:   linear-gradient(135deg, #FF4D6D 0%, #B14AED 100%);
  --gul-gradient-night:  linear-gradient(160deg, #FF7A59 0%, #B14AED 60%, #5B3A9B 100%);
  --gul-gradient-text:   linear-gradient(100deg, #FF4D6D 0%, #FF9166 55%, #FFB84D 100%);
  --gul-glow-ring:       conic-gradient(from 210deg, #FFB84D, #FF7A59, #FF4D6D, #B14AED, #FFB84D);

  /* ---- Couleurs d'état ---- */
  --gul-live:      #FF2E63;  /* indicateur LIVE (rouge-rose vif) */
  --gul-success:   #22C58B;
  --gul-success-bg:#0E3B2E;
  --gul-warning:   #FFB020;
  --gul-warning-bg:#3A2A0A;
  --gul-danger:    #FF4D5E;
  --gul-danger-bg: #3A1418;
  --gul-info:      #6C8BFF;
  --gul-info-bg:   #16204A;

  /* ---- Échelle neutre (teintée chaud) ---- */
  --ink-950: #120C16;
  --ink-900: #17101C;
  --ink-850: #1D1524;
  --ink-800: #241A2D;
  --ink-700: #322542;
  --ink-600: #453456;
  --ink-500: #6E5E7C;
  --ink-400: #93849E;
  --ink-300: #B7A9C0;
  --ink-200: #D9CFDF;
  --ink-100: #ECE5F0;
  --ink-050: #F7F2FA;
  --cream:   #FFF7F2;   /* blanc chaud (fond clair) */
  --white:   #FFFFFF;

  /* ---- Typographie ---- */
  --font-display: "Sora", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono:    "Space Grotesk", ui-monospace, "SFMono-Regular", monospace;

  --fs-3xs: 0.6875rem;  /* 11 */
  --fs-2xs: 0.75rem;    /* 12 */
  --fs-xs:  0.8125rem;  /* 13 */
  --fs-sm:  0.875rem;   /* 14 */
  --fs-md:  1rem;       /* 16 */
  --fs-lg:  1.125rem;   /* 18 */
  --fs-xl:  1.375rem;   /* 22 */
  --fs-2xl: 1.75rem;    /* 28 */
  --fs-3xl: 2.25rem;    /* 36 */
  --fs-4xl: 3rem;       /* 48 */
  --fs-5xl: 4rem;       /* 64 */

  --fw-regular: 400;
  --fw-medium:  500;
  --fw-semibold:600;
  --fw-bold:    700;
  --fw-extra:   800;

  --lh-tight: 1.1;
  --lh-snug:  1.28;
  --lh-normal:1.55;

  --ls-tight: -0.02em;
  --ls-wide:  0.04em;

  /* ---- Espacements (base 4px) ---- */
  --sp-0:  0;
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-7:  2rem;
  --sp-8:  2.5rem;
  --sp-9:  3rem;
  --sp-10: 4rem;
  --sp-11: 5rem;
  --sp-12: 6rem;

  /* ---- Rayons ---- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-pill: 999px;

  /* ---- Bordures ---- */
  --bw: 1px;

  /* ---- Transitions & easing ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast: 120ms;
  --t-base: 200ms;
  --t-slow: 380ms;

  /* ---- Z-index ---- */
  --z-base: 1;
  --z-sticky: 100;
  --z-header: 200;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 600;
  --z-max: 999;

  /* ---- Container ---- */
  --container: 1200px;
  --container-wide: 1400px;
}

/* =====================================================================
   THÈME SOMBRE (par défaut — immersif, esprit live)
   ===================================================================== */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg:          #120C16;
  --bg-2:        #17101C;
  --surface:     #1D1524;
  --surface-2:   #241A2D;
  --surface-3:   #2C2038;
  --surface-hover:#31243F;
  --elevated:    #241A2D;

  --border:      rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.16);
  --divider:     rgba(255,255,255,0.06);

  --text:        #F6EFF4;
  --text-muted:  #B7A9C0;
  --text-subtle: #8B7C97;
  --text-inverse:#1A1020;

  --overlay:     rgba(10,6,14,0.72);
  --scrim:       linear-gradient(180deg, rgba(18,12,22,0) 0%, rgba(18,12,22,0.85) 100%);

  --glass:       rgba(36,26,45,0.62);
  --glass-border:rgba(255,255,255,0.10);

  /* Halos / ombres */
  --shadow-sm:  0 1px 2px rgba(0,0,0,0.4);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.55);
  --shadow-glow: 0 10px 40px -8px rgba(255,77,109,0.45);
  --shadow-glow-amber: 0 10px 40px -8px rgba(255,184,77,0.40);
  --focus-ring: 0 0 0 3px rgba(255,122,89,0.45);

  --chip-bg:   rgba(255,255,255,0.06);
  --input-bg:  rgba(255,255,255,0.04);
  --input-border: rgba(255,255,255,0.12);
}

/* =====================================================================
   THÈME CLAIR (golden hour crème)
   ===================================================================== */
:root[data-theme="light"] {
  color-scheme: light;

  --bg:          #FFF7F2;
  --bg-2:        #FFF1EA;
  --surface:     #FFFFFF;
  --surface-2:   #FFF6F1;
  --surface-3:   #FDEDE6;
  --surface-hover:#FFF0E9;
  --elevated:    #FFFFFF;

  --border:      rgba(58,30,40,0.12);
  --border-strong: rgba(58,30,40,0.22);
  --divider:     rgba(58,30,40,0.08);

  --text:        #2A1620;
  --text-muted:  #6E5A64;
  --text-subtle: #9A8892;
  --text-inverse:#FFFFFF;

  --overlay:     rgba(42,22,32,0.45);
  --scrim:       linear-gradient(180deg, rgba(255,247,242,0) 0%, rgba(42,22,32,0.75) 100%);

  --glass:       rgba(255,255,255,0.72);
  --glass-border:rgba(58,30,40,0.10);

  --shadow-sm:  0 1px 2px rgba(58,30,40,0.08);
  --shadow-md:  0 10px 30px rgba(255,122,89,0.14);
  --shadow-lg:  0 24px 60px rgba(255,77,109,0.18);
  --shadow-glow: 0 12px 40px -10px rgba(255,77,109,0.35);
  --shadow-glow-amber: 0 12px 40px -10px rgba(255,184,77,0.35);
  --focus-ring: 0 0 0 3px rgba(255,122,89,0.35);

  --chip-bg:   rgba(58,30,40,0.05);
  --input-bg:  #FFFFFF;
  --input-border: rgba(58,30,40,0.16);
}

/* Respecte la préférence système si aucun choix explicite n'est fait */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg:#FFF7F2; --bg-2:#FFF1EA; --surface:#FFFFFF; --surface-2:#FFF6F1;
    --surface-3:#FDEDE6; --surface-hover:#FFF0E9; --elevated:#FFFFFF;
    --border:rgba(58,30,40,0.12); --border-strong:rgba(58,30,40,0.22); --divider:rgba(58,30,40,0.08);
    --text:#2A1620; --text-muted:#6E5A64; --text-subtle:#9A8892; --text-inverse:#FFFFFF;
    --overlay:rgba(42,22,32,0.45); --glass:rgba(255,255,255,0.72); --glass-border:rgba(58,30,40,0.10);
    --shadow-sm:0 1px 2px rgba(58,30,40,0.08); --shadow-md:0 10px 30px rgba(255,122,89,0.14);
    --shadow-lg:0 24px 60px rgba(255,77,109,0.18); --shadow-glow:0 12px 40px -10px rgba(255,77,109,0.35);
    --chip-bg:rgba(58,30,40,0.05); --input-bg:#FFFFFF; --input-border:rgba(58,30,40,0.16);
  }
}
