/* ============================================================
   DigitPilote — Brand Design Tokens v2.0
   Palette officielle : Vert Sauge & Or Champagne
   Direction : SaaS Premium · Rassurant · Progressif
   Mise à jour : 08 Mai 2026 — Sprint U
   ============================================================ */

:root {

  /* ══════════════════════════════════════
     COULEURS PRINCIPALES
     ══════════════════════════════════════ */

  /* ── Fonds ── */
  --bg:            #F6FAF7;   /* fond principal app */
  --bg2:           #EAF3EC;   /* fond secondaire / cartes douces */
  --white:         #FFFFFF;

  /* ── Verts ── */
  --green:         #7FA88B;   /* vert principal / sauge */
  --green-d:       #2F4F3E;   /* vert profond / ancrage / CTA principal */
  --sidebar-bg:    #6E9476;   /* fond sidebar — vert sauge moyen */
  --green-l:       #A8C4B0;   /* vert clair, hover très léger */
  --green-pale:    #D2E8D8;   /* vert pâle, badges légers */

  /* ── Or champagne / BRONZE ── */
  --gold:          #C8A96B;   /* bronze or champagne accent */
  --gold-h:        #B9934E;   /* bronze doux hover / highlight */
  --gold-pale:     #F0E6CE;   /* bronze très pâle, badges premium */
  --gold-deep:     #9E7A38;   /* bronze profond */

  /* ── Texte ── */
  --text:          #1F2A24;   /* texte principal */
  --text2:         #5F6E66;   /* texte secondaire / aide */
  --text-inv:      #FFFFFF;   /* texte sur fonds sombres */

  /* ── Bordures ── */
  --border:        #D7E3DA;   /* bordure douce standard */
  --border-strong: #B8CCBC;   /* bordure plus marquée */

  /* ── Statuts fonctionnels ── */
  --success:       #2F4F3E;
  --success-bg:    rgba(47, 79, 62, 0.10);
  --warning:       #C8A96B;
  --warning-bg:    rgba(200, 169, 107, 0.12);
  --error:         #C0392B;
  --error-bg:      rgba(192, 57, 43, 0.10);
  --info:          #5A7A8A;
  --info-bg:       rgba(90, 122, 138, 0.10);
  --red:           #C0392B;


  /* ══════════════════════════════════════
     ALIASES (compatibilité anciens fichiers)
     ══════════════════════════════════════ */

  --cream:         var(--bg);
  --ivory:         var(--white);
  --white-off:     var(--white);
  --champagne:     var(--gold);
  --champagne-pale:var(--gold-pale);
  --bronze:        var(--gold-h);
  --bronze-light:  var(--gold);
  --bronze-pale:   var(--gold-pale);
  --gold-mat:      var(--gold-h);
  --gold-warm:     var(--gold);
  --sage:          var(--green);
  --olive:         var(--green);
  --forest:        var(--green-d);
  --deep-green:    var(--green-d);
  --deep-green-2:  #243D30;
  --dark-green:    #1A2D22;

  /* Textes — anciens noms */
  --text-primary:   var(--text);
  --text-secondary: var(--text2);
  --text-tertiary:  var(--text2);
  --text-muted:     #8A9887;
  --text-inverse:   var(--text-inv);

  /* Neutres hérités */
  --warm-gray-50:  var(--bg);
  --warm-gray-100: var(--bg2);
  --warm-gray-200: var(--border);
  --warm-gray-300: var(--border-strong);
  --warm-gray-400: var(--text2);
  --warm-gray-500: var(--text2);
  --gray:          var(--text2);
  --gray-l:        var(--border);

  /* Bordures — anciens noms */
  --border-light:  rgba(47, 79, 62, 0.06);
  --border-medium: rgba(47, 79, 62, 0.18);
  --border-bronze: rgba(200, 169, 107, 0.30);


  /* ══════════════════════════════════════
     DESIGN TOKENS
     ══════════════════════════════════════ */

  /* ── Radius ── */
  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     28px;
  --radius-full:   100px;

  /* ── Ombres ── */
  --shadow-xs:     0 1px 4px rgba(47, 79, 62, 0.06);
  --shadow-sm:     0 2px 8px rgba(47, 79, 62, 0.08);
  --shadow:        0 4px 24px rgba(47, 79, 62, 0.10);
  --shadow-md:     0 6px 28px rgba(47, 79, 62, 0.12);
  --shadow-lg:     0 12px 48px rgba(47, 79, 62, 0.16);

  /* Ombres bronze */
  --shadow-bronze:    0 4px 20px rgba(200, 169, 107, 0.22);
  --shadow-bronze-lg: 0 8px 32px rgba(200, 169, 107, 0.30);

  /* Bordures aliases */
  --border-light:  rgba(47, 79, 62, 0.06);
  --border-medium: rgba(47, 79, 62, 0.18);
  --border-bronze: rgba(200, 169, 107, 0.30);

  /* ── Transitions ── */
  --transition:      all 0.25s ease;
  --transition-fast: all 0.15s ease;

  /* ══════════════════════════════════════
     TYPOGRAPHIE — Libre Baskerville
     ══════════════════════════════════════ */
  --font-body:    'Libre Baskerville', Georgia, serif;
  --font-heading: 'Libre Baskerville', Georgia, serif;
}
