# Adaptive Card sample: SVG Pipeline par étape

- id: `svg-pipeline-stages`
- Adaptive Card schema version: 1.6

Carte CRM : pipeline de ventes par étape. Les barres sont des images SVG (data URI base64) générées côté serveur par le service émetteur et embarquées telles quelles dans la carte — le client Rainbow ne les calcule pas. Pattern et limites : /docs/AdaptiveCard-Patterns.en.md

## Elements

- `Image (data:image/svg+xml)` — graphique SVG base64 inline, aucune ressource externe
- `Container / ColumnSet` — mise en page des étapes et valeurs

## Card JSON

```json
{
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "type": "AdaptiveCard",
  "version": "1.6",
  "body": [
    {
      "type": "TextBlock",
      "text": "📊 Pipeline par étape",
      "wrap": true,
      "size": "Large",
      "weight": "Bolder"
    },
    {
      "type": "TextBlock",
      "text": "42,5 M€ · 37 opportunités · ce trimestre",
      "wrap": true,
      "isSubtle": true,
      "spacing": "None"
    },
    {
      "type": "Container",
      "style": "emphasis",
      "spacing": "Medium",
      "items": [
        {
          "type": "ColumnSet",
          "spacing": "Small",
          "columns": [
            {
              "type": "Column",
              "width": "100px",
              "verticalContentAlignment": "Center",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "Qualification",
                  "wrap": false
                }
              ]
            },
            {
              "type": "Column",
              "width": "auto",
              "verticalContentAlignment": "Center",
              "items": [
                {
                  "type": "Image",
                  "url": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI5NSIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDk1IDE0Ij48cmVjdCB3aWR0aD0iOTUiIGhlaWdodD0iMTQiIHJ4PSIzIiBmaWxsPSIjMjA2MUYwIi8+PC9zdmc+",
                  "width": "95px",
                  "height": "14px",
                  "altText": "Qualification 6.1 M€"
                }
              ]
            },
            {
              "type": "Column",
              "width": "stretch",
              "verticalContentAlignment": "Center",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "6,1 M€",
                  "wrap": false,
                  "weight": "Bolder"
                }
              ]
            }
          ]
        },
        {
          "type": "ColumnSet",
          "spacing": "Small",
          "columns": [
            {
              "type": "Column",
              "width": "100px",
              "verticalContentAlignment": "Center",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "Découverte",
                  "wrap": false
                }
              ]
            },
            {
              "type": "Column",
              "width": "auto",
              "verticalContentAlignment": "Center",
              "items": [
                {
                  "type": "Image",
                  "url": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNDciIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNDcgMTQiPjxyZWN0IHdpZHRoPSIxNDciIGhlaWdodD0iMTQiIHJ4PSIzIiBmaWxsPSIjMjA2MUYwIi8+PC9zdmc+",
                  "width": "147px",
                  "height": "14px",
                  "altText": "Découverte 9.4 M€"
                }
              ]
            },
            {
              "type": "Column",
              "width": "stretch",
              "verticalContentAlignment": "Center",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "9,4 M€",
                  "wrap": false,
                  "weight": "Bolder"
                }
              ]
            }
          ]
        },
        {
          "type": "ColumnSet",
          "spacing": "Small",
          "columns": [
            {
              "type": "Column",
              "width": "100px",
              "verticalContentAlignment": "Center",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "Proposition",
                  "wrap": false
                }
              ]
            },
            {
              "type": "Column",
              "width": "auto",
              "verticalContentAlignment": "Center",
              "items": [
                {
                  "type": "Image",
                  "url": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAyMDAgMTQiPjxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMTQiIHJ4PSIzIiBmaWxsPSIjMjA2MUYwIi8+PC9zdmc+",
                  "width": "200px",
                  "height": "14px",
                  "altText": "Proposition 12.8 M€"
                }
              ]
            },
            {
              "type": "Column",
              "width": "stretch",
              "verticalContentAlignment": "Center",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "12,8 M€",
                  "wrap": false,
                  "weight": "Bolder"
                }
              ]
            }
          ]
        },
        {
          "type": "ColumnSet",
          "spacing": "Small",
          "columns": [
            {
              "type": "Column",
              "width": "100px",
              "verticalContentAlignment": "Center",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "Négociation",
                  "wrap": false
                }
              ]
            },
            {
              "type": "Column",
              "width": "auto",
              "verticalContentAlignment": "Center",
              "items": [
                {
                  "type": "Image",
                  "url": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNjciIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNjcgMTQiPjxyZWN0IHdpZHRoPSIxNjciIGhlaWdodD0iMTQiIHJ4PSIzIiBmaWxsPSIjMjA2MUYwIi8+PC9zdmc+",
                  "width": "167px",
                  "height": "14px",
                  "altText": "Négociation 10.7 M€"
                }
              ]
            },
            {
              "type": "Column",
              "width": "stretch",
              "verticalContentAlignment": "Center",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "10,7 M€",
                  "wrap": false,
                  "weight": "Bolder"
                }
              ]
            }
          ]
        },
        {
          "type": "ColumnSet",
          "spacing": "Small",
          "columns": [
            {
              "type": "Column",
              "width": "100px",
              "verticalContentAlignment": "Center",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "Signature",
                  "wrap": false
                }
              ]
            },
            {
              "type": "Column",
              "width": "auto",
              "verticalContentAlignment": "Center",
              "items": [
                {
                  "type": "Image",
                  "url": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1NSIgaGVpZ2h0PSIxNCIgdmlld0JveD0iMCAwIDU1IDE0Ij48cmVjdCB3aWR0aD0iNTUiIGhlaWdodD0iMTQiIHJ4PSIzIiBmaWxsPSIjMjA2MUYwIi8+PC9zdmc+",
                  "width": "55px",
                  "height": "14px",
                  "altText": "Signature 3.5 M€"
                }
              ]
            },
            {
              "type": "Column",
              "width": "stretch",
              "verticalContentAlignment": "Center",
              "items": [
                {
                  "type": "TextBlock",
                  "text": "3,5 M€",
                  "wrap": false,
                  "weight": "Bolder"
                }
              ]
            }
          ]
        }
      ]
    }
  ],
  "actions": [
    {
      "type": "Action.Submit",
      "data": {
        "rainbow": {
          "type": "messageBack",
          "value": {
            "response": "x"
          }
        }
      },
      "title": "Voir les opportunités"
    }
  ]
}
```
