/* ============================================================
   VOLTEZIA DESIGN SYSTEM — paquet généré, ne pas modifier à la main.
   Source : assets/css/tokens/. Régénération : php config/build-css.php
   Généré le 15/10/2026 à 22:15
   ============================================================ */

/* ---------- tokens/colors.css ---------- */
/* ============================================================
   VOLTEZIA — COLOR TOKENS
   Electric-energy palette. Three brand anchors:
     Volt Blue  #00B8FF   (primary — charge, current)
     Deep Navy  #080b0f   (ink — grounded, structural)
     Energy Green #00E676 (accent — live, go, success)
   ============================================================ */

:root {
  /* ---- Brand anchors ---- */
  --volt-blue: #00B8FF;
  --deep-navy: #080b0f;
  --energy-green: #00E676;

  /* ---- Volt Blue scale (primary) ---- */
  --blue-50:  #E5F8FF;
  --blue-100: #C0EEFF;
  --blue-200: #8AE0FF;
  --blue-300: #4FD0FF;
  --blue-400: #1FC2FF;
  --blue-500: #00B8FF;  /* base */
  --blue-600: #009BDB;
  --blue-700: #007AAE;
  --blue-800: #005A82;
  --blue-900: #003D59;

  /* ---- Navy / neutral scale (cool-tinted) ---- */
  --navy-50:  #F4F7FA;
  --navy-100: #E5EBF1;
  --navy-200: #C9D5E0;
  --navy-300: #9DB0C2;
  --navy-400: #6B829A;
  --navy-500: #45607C;
  --navy-600: #2D4763;
  --navy-700: #1B3350;
  --navy-800: #112942;
  /* Navy profond retenu par la marque. Toutes les surfaces sombres et l'encre
     dérivent de cette valeur : la modifier ici suffit. */
  --navy-900: #080b0f;  /* base ink */
  --navy-950: #04070a;  /* reste plus sombre que navy-900 */

  /* ---- Energy Green scale (accent / success) ---- */
  --green-50:  #E2FFF0;
  --green-100: #B8FFD9;
  --green-300: #5BF5A6;
  --green-500: #00E676;  /* base */
  --green-600: #00C463;
  --green-700: #009C4F;

  /* ---- Semantic status ---- */
  --warn-500: #f1c21b;  /* IBM Carbon Yellow-30 */
  --warn-600: #d2a106;  /* IBM Carbon Yellow-40 */
  --danger-500: #da1e28; /* IBM Carbon Red-60 */
  --danger-600: #b81921; /* IBM Carbon Red-70 */
  --info-500: var(--blue-500);
  --success-500: #24a148; /* IBM Carbon Green-50 — decoupled from brand volt-green */
  --success-400: #42be65; /* Carbon Green-40 — higher contrast on dark surfaces */
  --success-600: #1a8738; /* Carbon Green-60 */

  /* ---- Pure ---- */
  --white: #FFFFFF;
  --black: #04101D;

  /* ============================================================
     PALETTE CHAUDE — celle de l'accueil et des supports de com.
     ------------------------------------------------------------
     L'orange est prélevé sur les visuels de communication de la
     marque ; le bleu « encre » est un navy adouci, moins froid que
     --navy-900. Ces valeurs vivaient en double dans accueil-v2.css,
     scopées sous .accueil-v2 : les remonter ici permet aux autres
     surfaces (espace parrain) de parler la même langue sans les
     recopier. Ajout pur — aucune règle existante n'est modifiée.
     ============================================================ */
  --warm-orange:        #E66919;  /* accent de marque */
  --warm-orange-press:  #D25E13;  /* survol / appui */
  /* Variante assombrie, réservée aux endroits où l'orange porte du texte :
     libellé de bouton, petits intertitres, liens. L'orange de marque donne
     3.28:1 sur blanc, sous le minimum WCAG AA de 4.5:1 pour du texte
     courant. Celle-ci dépasse 4.5:1 sans changer la teinte. */
  --warm-orange-texte:  #B8520F;
  --warm-orange-texte-press: #9C450C;
  --warm-orange-clair:  #F6A76B;  /* accent posé sur fond encre */
  --warm-orange-voile:  rgba(230, 105, 25, .10);
  --warm-encre:         #12314F;  /* texte fort et surfaces sombres */
  --warm-gris:          #5D6F80;  /* texte secondaire */
  --warm-creme:         #FDF8F3;  /* fond chaud principal */
  --warm-sable:         #F6EFE7;  /* fond chaud secondaire */
  --warm-trait:         rgba(18, 49, 79, .09);
  --warm-ombre:         0 20px 44px rgba(18, 49, 79, .09);

  /* ============================================================
     SEMANTIC ALIASES — light surface (default)
     ============================================================ */
  --bg-base: var(--navy-50);
  --bg-subtle: var(--navy-100);
  --surface-card: var(--white);
  --surface-raised: var(--white);
  --surface-sunken: var(--navy-50);
  --surface-inverse: var(--navy-900);

  --border-subtle: var(--navy-100);
  --border-default: var(--navy-200);
  --border-strong: var(--navy-300);
  --border-focus: var(--blue-500);

  --text-strong: var(--navy-900);
  --text-body: var(--navy-700);
  --text-muted: var(--navy-500);
  --text-faint: var(--navy-400);
  --text-on-brand: var(--white);
  --text-on-inverse: var(--navy-50);
  --text-link: var(--blue-600);

  --brand-primary: var(--blue-500);
  --brand-primary-hover: var(--blue-600);
  --brand-primary-press: var(--blue-700);
  --brand-ink: var(--navy-900);
  --brand-accent: var(--green-500);

  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--blue-500) 45%, transparent);

  /* ============================================================
     IBM CARBON CONVENTION — --cds-* semantic tokens (LIGHT default)
     Layered surface: background → layer-01 → layer-02 → layer-03
     Dark overrides live in [data-theme="dark"] below.
     ============================================================ */

  /* ---- Surfaces (light) ---- */
  --cds-background:          var(--navy-50);    /* page canvas */
  --cds-layer-01:            var(--white);      /* cards, panels, sidebars */
  --cds-layer-02:            var(--navy-50);    /* nested cards, dropdowns */
  --cds-layer-03:            var(--navy-100);   /* modals, popovers on layer-02 */

  /* ---- Fields ---- */
  --cds-field-01:            var(--white);      /* input on layer-01 */
  --cds-field-02:            var(--navy-50);    /* input on layer-02 */

  /* ---- Borders ---- */
  --cds-border-subtle-00:    color-mix(in srgb, var(--navy-200) 40%, transparent);
  --cds-border-subtle-01:    var(--navy-100);
  --cds-border-subtle-02:    var(--navy-200);
  --cds-border-strong-01:    var(--navy-300);
  --cds-border-strong-02:    var(--navy-400);

  /* ---- Text ---- */
  --cds-text-primary:        var(--navy-900);   /* headings, high-emphasis */
  --cds-text-secondary:      var(--navy-700);   /* body, labels */
  --cds-text-placeholder:    var(--navy-400);   /* input placeholder */
  --cds-text-helper:         var(--navy-500);   /* form helper text */
  --cds-text-error:          var(--danger-500);
  --cds-text-on-color:       var(--white);      /* text on brand-colored bg */
  --cds-text-inverse:        var(--navy-50);    /* text on inverse dark surface */

  /* ---- Interactive ---- */
  --cds-interactive:         var(--blue-600);
  --cds-focus:               var(--blue-500);
  --cds-link-primary:        var(--blue-600);
  --cds-link-primary-hover:  var(--blue-700);
  --cds-link-visited:        var(--blue-800);

  /* ---- Action (buttons, CTAs) ---- */
  --cds-button-primary:           var(--blue-500);
  --cds-button-primary-hover:     var(--blue-600);
  --cds-button-primary-active:    var(--blue-700);
  --cds-button-secondary:         var(--navy-100);
  --cds-button-secondary-hover:   var(--navy-200);
  --cds-button-danger:            var(--danger-500);
  --cds-button-danger-hover:      var(--danger-600);

  /* ---- Support (status) ---- */
  --cds-support-success:     var(--success-500);
  --cds-support-success-bg:  color-mix(in srgb, var(--success-500) 12%, transparent);
  --cds-support-warning:     var(--warn-500);
  --cds-support-warning-bg:  color-mix(in srgb, var(--warn-500) 12%, transparent);
  --cds-support-error:       var(--danger-500);
  --cds-support-error-bg:    color-mix(in srgb, var(--danger-500) 12%, transparent);
  --cds-support-info:        var(--blue-500);
  --cds-support-info-bg:     color-mix(in srgb, var(--blue-500) 12%, transparent);

  /* ---- Overlay / skeleton ---- */
  --cds-overlay:             rgba(4, 16, 29, 0.45);
  --cds-skeleton-background: var(--navy-100);
  --cds-skeleton-element:    var(--navy-200);

  /* ---- Signature gradients (navy → volt blue, the logo current) ---- */
  --grad-volt: linear-gradient(135deg, var(--navy-900) 0%, var(--blue-600) 55%, var(--blue-400) 100%);
  --grad-volt-soft: linear-gradient(135deg, var(--navy-800) 0%, var(--blue-700) 100%);
  --grad-charge: linear-gradient(120deg, var(--blue-500) 0%, var(--green-500) 100%);
  --grad-current: linear-gradient(90deg, var(--blue-400), var(--blue-600));
  --grad-surface-glow: radial-gradient(120% 120% at 80% 0%, color-mix(in srgb, var(--blue-500) 16%, transparent), transparent 60%);

  /* ---- Module tile gradients (dashboard module launcher, MIRVE) ---- */
  --grad-module-indigo: linear-gradient(135deg, #6D5AE6 0%, #8B7CF6 100%); /* @kind color */
  --grad-module-orange: linear-gradient(135deg, #F5A623 0%, #FFC857 100%); /* @kind color */
  --grad-module-blue: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-400) 100%);
  --grad-module-magenta: linear-gradient(135deg, #C026D3 0%, #EC4899 100%); /* @kind color */
}

/* ============================================================
   DARK SURFACE — opt-in via [data-theme="dark"]
   The brand is happiest on deep navy with electric accents.
   ============================================================ */
[data-theme="dark"] {
  --bg-base: var(--navy-950);
  --bg-subtle: var(--navy-900);
  --surface-card: var(--navy-800);
  --surface-raised: var(--navy-700);
  --surface-sunken: var(--navy-950);
  --surface-inverse: var(--white);

  --border-subtle: color-mix(in srgb, var(--navy-400) 22%, transparent);
  --border-default: color-mix(in srgb, var(--navy-300) 28%, transparent);
  --border-strong: var(--navy-500);
  --border-focus: var(--blue-400);

  --text-strong: var(--navy-50);
  --text-body: var(--navy-200);
  --text-muted: var(--navy-300);
  --text-faint: var(--navy-400);
  --text-on-inverse: var(--navy-900);
  --text-link: var(--blue-300);

  --brand-primary: var(--blue-500);
  --brand-primary-hover: var(--blue-400);
  --brand-primary-press: var(--blue-600);

  /* ---- --cds-* dark overrides ---- */
  --cds-background:          var(--navy-950);
  --cds-layer-01:            var(--navy-900);
  --cds-layer-02:            var(--navy-800);
  --cds-layer-03:            var(--navy-700);
  --cds-field-01:            var(--navy-800);
  --cds-field-02:            var(--navy-700);
  --cds-border-subtle-00:    color-mix(in srgb, var(--blue-500) 10%, transparent);
  --cds-border-subtle-01:    color-mix(in srgb, var(--navy-300) 22%, transparent);
  --cds-border-subtle-02:    color-mix(in srgb, var(--navy-300) 30%, transparent);
  --cds-border-strong-01:    var(--navy-500);
  --cds-border-strong-02:    var(--navy-400);
  --cds-text-primary:        var(--navy-50);
  --cds-text-secondary:      var(--navy-200);
  --cds-text-placeholder:    var(--navy-400);
  --cds-text-helper:         var(--navy-300);
  --cds-text-on-color:       var(--navy-950);
  --cds-interactive:         var(--blue-500);
  --cds-focus:               var(--blue-400);
  --cds-link-primary:        var(--blue-300);
  --cds-link-primary-hover:  var(--blue-200);
  --cds-link-visited:        var(--blue-600);
  --cds-button-primary:           var(--blue-500);
  --cds-button-primary-hover:     var(--blue-400);
  --cds-button-primary-active:    var(--blue-600);
  --cds-button-secondary:         var(--navy-700);
  --cds-button-secondary-hover:   var(--navy-600);
  --cds-skeleton-background: color-mix(in srgb, var(--navy-500) 20%, transparent);
  --cds-skeleton-element:    color-mix(in srgb, var(--navy-400) 30%, transparent);
  --cds-overlay:             rgba(4, 16, 29, 0.65);
}

/* ---------- tokens/typography.css ---------- */
/* ============================================================
   VOLTEZIA — TYPOGRAPHY TOKENS
   Direction: IBM Plex (Carbon DS) — systémique, industriel, B2B technique.
   Display: IBM Plex Sans — geometric, engineered, authoritative.
   Body:    IBM Plex Sans — same family, lighter weights for body copy.
   Mono:    IBM Plex Mono — data, metrics, energy readouts, code.
   ============================================================ */

:root {
  /* ---- Families ---- */
  --font-display: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  /* ---- Weights ---- */
  --fw-regular: 400;   /* @kind font */
  --fw-medium: 500;    /* @kind font */
  --fw-semibold: 600;  /* @kind font */
  --fw-bold: 700;      /* @kind font */
  --fw-extrabold: 800; /* @kind font */

  /* ---- Type scale (1.250 major-third-ish, tuned) ---- */
  --text-2xs: 0.6875rem;  /* 11px */
  --text-xs:  0.75rem;    /* 12px */
  --text-sm:  0.875rem;   /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-md:  1.125rem;   /* 18px */
  --text-lg:  1.375rem;   /* 22px */
  --text-xl:  1.75rem;    /* 28px */
  --text-2xl: 2.25rem;    /* 36px */
  --text-3xl: 3rem;       /* 48px */
  --text-4xl: 4rem;       /* 64px */
  --text-5xl: 5.25rem;    /* 84px */

  /* ---- Line heights ---- */
  --leading-none: 1;        /* @kind other */
  --leading-tight: 1.12;    /* @kind other */
  --leading-snug: 1.28;     /* @kind other */
  --leading-normal: 1.5;    /* @kind other */
  --leading-relaxed: 1.65;  /* @kind other */

  /* ---- Letter spacing ---- */
  --tracking-tighter: -0.03em;
  --tracking-tight: -0.015em;
  --tracking-normal: 0em;
  --tracking-wide: 0.04em;
  --tracking-wider: 0.12em;   /* brand caps / eyebrows */
  --tracking-widest: 0.24em;  /* logo-grade wordmark spacing */

  /* ---- Semantic roles ---- */
  --type-display-family: var(--font-display);
  --type-display-weight: var(--fw-bold);
  --type-display-tracking: var(--tracking-tight);

  --type-heading-family: var(--font-display);
  --type-heading-weight: var(--fw-semibold);

  --type-eyebrow-family: var(--font-display);
  --type-eyebrow-weight: var(--fw-semibold);
  --type-eyebrow-tracking: var(--tracking-wider);
  --type-eyebrow-size: var(--text-xs);

  --type-body-family: var(--font-body);
  --type-body-weight: var(--fw-regular);
  --type-body-size: var(--text-base);
  --type-body-leading: var(--leading-relaxed);

  --type-mono-family: var(--font-mono);
}

/* ---------- tokens/spacing.css ---------- */
/* ============================================================
   VOLTEZIA — SPACING, RADII, SIZING
   8px base grid. Tight, engineered rhythm.
   ============================================================ */

:root {
  /* ---- Spacing scale (8px grid w/ half-steps) ---- */
  --space-0: 0;
  --space-1: 0.25rem;   /* 4 */
  --space-2: 0.5rem;    /* 8 */
  --space-3: 0.75rem;   /* 12 */
  --space-4: 1rem;      /* 16 */
  --space-5: 1.5rem;    /* 24 */
  --space-6: 2rem;      /* 32 */
  --space-7: 2.5rem;    /* 40 */
  --space-8: 3rem;      /* 48 */
  --space-9: 4rem;      /* 64 */
  --space-10: 5rem;     /* 80 */
  --space-12: 7rem;     /* 112 */
  --space-16: 10rem;    /* 160 */

  /* ---- Radii — engineered, mostly tight; pill for energy chips ---- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-pill: 999px;
  --radius-card: var(--radius-lg);

  /* ---- Border widths ---- */
  --border-hairline: 1px;  /* @kind spacing */
  --border-thick: 2px;     /* @kind spacing */

  /* ---- Container widths ---- */
  --container-sm: 640px;   /* @kind spacing */
  --container-md: 880px;   /* @kind spacing */
  --container-lg: 1120px;  /* @kind spacing */
  --container-xl: 1320px;  /* @kind spacing */

  /* ---- Control sizing ---- */
  --control-h-sm: 34px;  /* @kind spacing */
  --control-h-md: 42px;  /* @kind spacing */
  --control-h-lg: 52px;  /* @kind spacing */

  /* ---- Z-index ---- */
  --z-base: 1;        /* @kind other */
  --z-sticky: 100;    /* @kind other */
  --z-overlay: 1000;  /* @kind other */
  --z-modal: 1100;    /* @kind other */
  --z-toast: 1200;    /* @kind other */
}

/* ---------- tokens/effects.css ---------- */
/* ============================================================
   VOLTEZIA — EFFECTS: shadows, glows, blur
   Shadows are navy-tinted (navy-900 #080b0f).
   Signature "volt glow" = electric blue bloom for active/charged states.
   ============================================================ */

:root {
  /* ---- Elevation shadows (navy-tinted, soft) ---- */
  --shadow-xs: 0 1px 2px rgba(8, 11, 15, 0.06);
  --shadow-sm: 0 1px 3px rgba(8, 11, 15, 0.08), 0 1px 2px rgba(8, 11, 15, 0.06);
  --shadow-md: 0 4px 12px rgba(8, 11, 15, 0.08), 0 2px 4px rgba(8, 11, 15, 0.06);
  --shadow-lg: 0 12px 28px rgba(8, 11, 15, 0.12), 0 4px 8px rgba(8, 11, 15, 0.06);
  --shadow-xl: 0 24px 56px rgba(8, 11, 15, 0.16), 0 8px 16px rgba(8, 11, 15, 0.08);

  /* ---- Volt glow — electric accent bloom ---- */
  --glow-blue-sm: 0 0 0 1px color-mix(in srgb, var(--blue-500) 40%, transparent), 0 4px 16px color-mix(in srgb, var(--blue-500) 28%, transparent);
  --glow-blue-md: 0 6px 28px color-mix(in srgb, var(--blue-500) 42%, transparent);
  --glow-green: 0 4px 20px color-mix(in srgb, var(--green-500) 38%, transparent);

  /* ---- Inset (sunken inputs / wells) ---- */
  --shadow-inset: inset 0 1px 2px rgba(8, 11, 15, 0.08);

  /* ---- Glass / frosted blur ---- */
  --blur-glass: saturate(180%) blur(16px);  /* @kind other */
  --glass-fill: color-mix(in srgb, var(--white) 72%, transparent);
  --glass-fill-dark: color-mix(in srgb, var(--navy-900) 64%, transparent);
  --glass-border: color-mix(in srgb, var(--white) 40%, transparent);
}

[data-theme="dark"] {
  --shadow-xs: 0 1px 2px rgba(2, 8, 16, 0.4);
  --shadow-sm: 0 1px 3px rgba(2, 8, 16, 0.5);
  --shadow-md: 0 4px 14px rgba(2, 8, 16, 0.55);
  --shadow-lg: 0 16px 36px rgba(2, 8, 16, 0.6);
  --shadow-xl: 0 28px 64px rgba(2, 8, 16, 0.7);
  --glass-fill: var(--glass-fill-dark);
}

/* ---------- tokens/motion.css ---------- */
/* ============================================================
   VOLTEZIA — MOTION
   Energetic but controlled. Snappy charge-ups, no bounce overkill.
   ============================================================ */

:root {
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);    /* @kind other */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);      /* @kind other */
  --ease-in: cubic-bezier(0.4, 0, 1, 1);          /* @kind other */
  --ease-charge: cubic-bezier(0.34, 1.4, 0.5, 1); /* @kind other */  /* slight overshoot — "snap to live" */

  --dur-instant: 80ms;  /* @kind other */
  --dur-fast: 140ms;     /* @kind other */
  --dur-base: 220ms;     /* @kind other */
  --dur-slow: 360ms;     /* @kind other */
  --dur-slower: 560ms;   /* @kind other */

  --transition-control: background-color var(--dur-fast) var(--ease-standard),
                        border-color var(--dur-fast) var(--ease-standard),
                        color var(--dur-fast) var(--ease-standard),
                        box-shadow var(--dur-fast) var(--ease-standard),
                        transform var(--dur-fast) var(--ease-standard); /* @kind other */
}

@keyframes volt-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes volt-flow {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-instant: 0ms; /* @kind other */
    --dur-fast: 0ms; /* @kind other */
    --dur-base: 0ms; /* @kind other */
    --dur-slow: 0ms; /* @kind other */
    --dur-slower: 0ms; /* @kind other */
  }
}
