/* ==========================================================================
   00. DESIGN TOKENS, THÈMES & DÉGRADÉS DYNAMIQUES SOUVERAINS PHOENIX PERFORMANCE
   Palette Officielle "Sapin & Nuit" :
   - Couleur 1 (Principale / Automatisation & ESN IA) : #214F3D (rgb: 33, 79, 61)
   - Couleur 2 (Secondaire / Formation IA & Qualiopi) : #142B43 (rgb: 20, 43, 67)
   - Couleur 3 (Étoiles Google Reviews)               : #FBBC04
   Pondération Chromatique :
   - Global / Accueil / Cas Clients / Blog : 50% Vert (#214F3D) / 50% Bleu (#142B43), Vert principal sur CTA
   - Automatisation & Prestations ESN IA   : 80% Vert (#214F3D) / 20% Bleu (#142B43)
   - Formation IA & Pédagogie Qualiopi     : 20% Vert (#214F3D) / 80% Bleu (#142B43)
   ========================================================================== */

@property --grad-split {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 50%;
}
@property --grad-green-stop {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 40%;
}
@property --grad-blue-stop {
  syntax: '<percentage>';
  inherits: true;
  initial-value: 60%;
}

:root,
html[data-page-theme="default"],
html[data-page-theme="home"] {
  --grad-split: 50%;
  --grad-green-stop: 40%;
  --grad-blue-stop: 60%;
}

html[data-page-theme="automatisation"] {
  --grad-split: 80%;
  --grad-green-stop: 70%;
  --grad-blue-stop: 90%;
}

html[data-page-theme="formation"] {
  --grad-split: 20%;
  --grad-green-stop: 10%;
  --grad-blue-stop: 30%;
}

:root {
  --container-max-width: 72rem;
  --bg-dark: #000000;
  --bg-darker: #000000;

  --neon-green: #214F3D;
  --neon-green-rgb: 33, 79, 61;
  --phoenix-green: #214F3D;
  --accent: #214F3D;

  --phoenix-gold: #142B43;
  --phoenix-gold-solar: #142B43;
  --phoenix-gold-rgb: 20, 43, 67;
  --gold-rgb: 20, 43, 67;
  --gold-glow: rgba(20, 43, 67, 0.35);
  --gold-border: rgba(20, 43, 67, 0.5);
  --gold-subtle: rgba(20, 43, 67, 0.08);

  --accent-tertiary: #FBBC04;
  --da-primary: #214F3D;
  --da-secondary: #142B43;
  --da-tertiary: #FBBC04;

  --border-color: rgba(255, 255, 255, 0.12);
  --card-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --card-solid-bg: #0d0d0d;
  --text-main: #ffffff;
  --text-muted: #a0a0a0;
}

[data-theme="light"],
html[data-page-theme="home"][data-theme="light"] {
  --bg-dark: #f8f9fc;
  --bg-darker: #ffffff;

  --neon-green: #214F3D;
  --neon-green-rgb: 33, 79, 61;
  --phoenix-green: #214F3D;
  --accent: #214F3D;

  --phoenix-gold: #142B43;
  --phoenix-gold-solar: #142B43;
  --phoenix-gold-rgb: 20, 43, 67;
  --gold-rgb: 20, 43, 67;
  --gold-glow: rgba(20, 43, 67, 0.35);
  --gold-border: rgba(20, 43, 67, 0.5);
  --gold-subtle: rgba(20, 43, 67, 0.08);

  --accent-tertiary: #FBBC04;
  --da-primary: #214F3D;
  --da-secondary: #142B43;
  --da-tertiary: #FBBC04;

  --border-color: rgba(0, 0, 0, 0.1);
  --card-bg: #ffffff;
  --glass-border: rgba(0, 0, 0, 0.1);
  --glass-bg: rgba(230, 233, 238, 0.8);
  --card-solid-bg: #ffffff;
  --text-main: #111111;
  --text-muted: #555555;
}

html:not([data-theme="dark"]) {
  --bg-dark: #f8fafc;
  --bg-darker: #f1f5f9;
  --text-main: #0f172a;
  --text-muted: #475569;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(15, 23, 42, 0.1);
}
