/*
 * Kœurflor — Charte : jetons de couleur, polices, rayons et ombres (thème clair, puis sombre)
 * Auteur : Jacks Ngalangala
 */
/* --- Jetons de la charte (thème clair, puis sombre) --- */
:root {
  --brand: #0e6b57;
  --brand-strong: #0b3b30;
  --leaf: #2e9c7e;
  --petal: #ef8f8a;
  --petal-text: #a3423d;
  --brand-soft: #eef6f2;
  --petal-soft: #fff4f2;
  --surface: #ffffff;
  --surface-alt: #f4f3f1;
  --line: #dce5e1;
  --ink: #0b3b30;
  --ink-muted: #3d6359;
  --on-brand: #ffffff;
  --success: #1e7a46;
  --warning: #9a5b0b;
  --danger: #b42318;
  /* Tons chauds des maquettes (fond crème, bordures sable) */
  --creme: #fbf6f2;
  --sable: #eae3dc;
  --petal-pale: #fcedea;
  --brand-pale: #cfe3da;
  --ink-faible: #4f7268;
  --warning-soft: #fdf3e4;
  --danger-soft: #fdecea;
  --success-soft: #e7f4ec;
  /* Texte sur fond saturé (danger, pétale, vert foncé), texte de succès pour un montant (≥ 7:1), trait d'avertissement,
     fond d'un QR code (toujours blanc pour être lu), logo sur fond foncé — correction finale (P10, C3) */
  --sur-vif: #ffffff;
  --success-texte: #14532f;
  --warning-trait: #f0d9b5;
  --fond-qr: #ffffff;
  --logo-tige-clair: #ffffff;
  --logo-feuille-clair: #9fdcc6;
  --logo-petale-clair: #f7b7b2;
  --enveloppe: #f5e9dc;
  --enveloppe-rabat: #eeddc8;
  --enveloppe-trait: #e2cdb3;
  --display: 'Manrope', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --manuscrit: 'Caveat', cursive;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-pill: 999px;
  --ombre: 0 2px 8px rgba(11, 59, 48, 0.08);
  /* Écran de connexion : volet vert foncé identique dans les deux thèmes (maquette du 17/11) */
  --volet-fond: #0b3b30;
  --volet-lueur: rgba(46, 156, 126, 0.35);
  --volet-sur: #9fdcc6;
  --volet-titre: #ffffff;
  --volet-texte: #cfe3da;
  --volet-garantie: #e3f0ea;
  --volet-pied: #9dbdb2;
  --volet-trait: rgba(255, 255, 255, 0.25);
  --volet-actif: rgba(255, 255, 255, 0.14);
  --cx-fond-indicatif: #fafbfa;
  --cx-exemple: #9ab1a9;
  --cx-halo: 0 0 0 4px rgba(14, 107, 87, 0.12);
  --cx-ombre: 0 12px 40px rgba(11, 59, 48, 0.08);
  --tactile: 48px; /* charte et dossier § 8 bis : zones tactiles d'au moins 48 px (P5) */
}
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #5cc5a3;
    --brand-strong: #bfe6d8;
    --leaf: #5cc5a3;
    --petal: #f7b7b2;
    --petal-text: #f7b7b2;
    --brand-soft: #16302a;
    --petal-soft: #2a1d1c;
    --surface: #0e1f1a;
    --surface-alt: #132823;
    --line: #2a4a41;
    --ink: #eef5f2;
    --ink-muted: #a9c4bb;
    --on-brand: #0b3b30;
    --success: #7fd3a1;
    --warning: #f2c27b;
    --danger: #ff9c92;
    --creme: #0b1a16;
    --sable: #2a4a41;
    --petal-pale: #2a1d1c;
    --brand-pale: #1f4a3f;
    --ink-faible: #a9c4bb;
    --warning-soft: #2e2413;
    --danger-soft: #2e1715;
    --success-soft: #15301f;
    --sur-vif: #0b1a16;
    --success-texte: #a8e6c1;
    --warning-trait: #4a3a1e;
    --cx-fond-indicatif: #132823;
    --cx-exemple: #6f8f86;
    --enveloppe: #2a2620;
    --enveloppe-rabat: #332e26;
    --enveloppe-trait: #4a4236;
  }
}
