<?php
    /**
     * Liste des correspondances de couleurs
     * On choisit des couleurs pas trop vive, type pastel pour éviter les problèmes de lisibilité. 
     * Par exemple, pour rouge, on ne choisit pas #FF0000 qui est trop violent mais #e41500 qui est plus doux.
     */
     $primaryDefinition = [
      "autre" => "#000000",
      "noir" => "#000000",
      "blanc" => "#FFFFFF",
      "rouge" => "#e41500",
      "bleu" => "#0071c5",
      "vert" => "#00a94f",
      "jaune" => "#ffde00",
      "marron" => "#8b4513",
      "gris" => "#808080",
      "orange" => "#ff7f00",
      "violet" => "#a020f0",
      "rose" => "#ffa4a1",
      "beige" => "#f5f5dc",
     ];

     $colorDefinitions = [
        "*" => "autre",
        
        "noir" => "noir",
        "blanc" => "blanc",
        "rouge" => "rouge",
        "bleu" => "bleu",
        "marine" => "bleu",
        "vert" => "vert",
        "jaune" => "jaune",
        "marron" => "marron",
        "gris" => "gris",
        "orange" => "orange",
        "violet" => "violet",
        "rose" => "rose",
        "beige" => "beige",

        "abricot" => "orange",
        "améthyste" => "violet",
        "anis" => "vert",
        "anthracite" => "gris",
        "ardoise" => "gris",
        "azur" => "bleu",
        "bordeaux" => "rouge",
        "brique" => "rouge",
        "bronze" => "marron",
        "camel" => "marron",
        "canari" => "jaune",
        "caramel" => "marron",
        "cassis" => "violet",
        "céladon" => "vert",
        "café" => "marron",
        "champagne" => "beige",
        "charbon" => "noir",
        "chocolat" => "marron",
        "citron" => "jaune",
        "coquille d'œuf" => "blanc",
        "corail" => "orange",
        "cuivre" => "marron",
        "ébène" => "noir",
        "émeraude" => "vert",
        "étain" => "gris",
        "framboise" => "rouge",
        "fuchsia" => "rose",
        "fumée" => "noir",
        "graphite" => "gris",
        "grenat" => "rouge",
        "grège" => "beige",
        "ivoire" => "blanc",
        "jais" => "noir",
        "lavande" => "violet",
        "kaki" => "vert",
        "lin" => "beige",
        "lilas" => "violet",
        "mandarine" => "orange",
        "mauve" => "violet",
        "menthe" => "vert",
        "miel" => "jaune",
        "mélèze" => "marron",
        "moutarde" => "jaune",
        "nacre" => "blanc",
        "neige" => "blanc",
        "noisette" => "marron",
        "ocre" => "jaune",
        "olive" => "vert",
        "opaline" => "bleu",
        "paille" => "jaune",
        "perle" => "blanc",
        "pêche" => "rose",
        "pistache" => "vert",
        "pivoine" => "rose",
        "plomb" => "gris",
        "poudre" => "rose",
        "pourpre" => "violet",
        "rouille" => "orange",
        "sable" => "jaune",
        "safran" => "jaune",
        "saumon" => "rose",
        "sauge" => "vert",
        "sépia" => "marron",
        "terre cuite" => "orange",
        "tilleul" => "vert",
        "turquoise" => "bleu",
        "vanille" => "jaune",
        "vermeil" => "rouge",
    
        // Couleurs en anglais
        "blk" => "noir",
        "blck" => "noir",
        "black" => "noir",
        "white" => "blanc",
        "red" => "rouge",
        "blue" => "bleu",
        "green" => "vert",
        "yellow" => "jaune",
        "maroon" => "marron",
        "grey" => "gris",
        "gray" => "gris",
        "orange" => "orange",
        "violet" => "violet",
        "pink" => "rose",
        "beige" => "beige",
        "apricot" => "orange",
        "amethyst" => "violet",
        "apple green" => "vert",
        "ash" => "gris",
        "azure" => "bleu",
        "blush" => "rose",
        "brick" => "rouge",
        "brun" => "marron",
        "bronze" => "marron",
        "burgundy" => "rouge",
        "canary" => "jaune",
        "caramel" => "marron",
        "cardinal" => "rouge",
        "celadon" => "vert",
        "charcoal" => "noir",
        "cherry" => "rouge",
        "chestnut" => "marron",
        "chocolate" => "marron",
        "cinnamon" => "marron",
        "cobalt" => "bleu",
        "coffee" => "marron",
        "coral" => "orange",
        "cream" => "blanc",
        "crimson" => "rouge",
        "cyan" => "bleu",
        "denim" => "bleu",
        "ebony" => "noir",
        "emerald" => "vert",
        "fawn" => "beige",
        "flamingo" => "rose",
        "fuchsia" => "rose",
        "gold" => "jaune",
        "graphite" => "gris",
        "green" => "vert",
        "hazel" => "marron",
        "ivory" => "blanc",
        "jade" => "vert",
        "khaki" => "beige",
        "lavender" => "violet",
        "lemon" => "jaune",
        "lilac" => "violet",
        "lime" => "vert",
        "magenta" => "rose",
        "maroon" => "rouge",
        "mint" => "vert",
        "mustard" => "jaune",
        "navy" => "bleu",
        "ochre" => "jaune",
        "olive" => "vert",
        "opal" => "bleu",
        "peach" => "rose",
        "periwinkle" => "bleu",
        "pink" => "rose",
        "plum" => "violet",
        "purple" => "violet",
        "raspberry" => "rouge",
        "rose" => "rose",
        "ruby" => "rouge",
        "saffron" => "jaune",
        "salmon" => "rose",
        "sand" => "jaune",
        "scarlet" => "rouge",
        "sepia" => "marron",
        "silver" => "gris",
        "sky blue" => "bleu",
        "slate" => "gris",
        "smoke" => "noir",
        "snow" => "blanc",
        "steel" => "gris",
        "tan" => "beige",
        "teal" => "bleu",
        "terracotta" => "orange",
        "turquoise" => "bleu",
        "vanilla" => "jaune",
        "vermilion" => "rouge",
        "violet" => "violet",
        "wheat" => "jaune",
        "wine" => "rouge",
        "yellow" => "jaune",
     ];