# Mafiaz — Mapping markers SVG → entités gameplay

**Source** : Iconify API → `game-icons` (Lorc, Delapouite, Skoll, John Colburn, Caro Asercion). Licence **CC BY 3.0** — attribution requise.

**Format** : tous les SVG sont en `currentColor` → coloriables en CSS via `color: var(--xxx)`.

**Total** : 102 SVG / 412 KB. Tous dans `/frontend/public/images/svg/mapped/`.

---

## A. VÉHICULES (`veh-*.svg`)

| Type gameplay | Fichier SVG | Couleur CSS | Notes |
|---|---|---|---|
| police-municipale | `veh-police-car.svg` | `#60a5fa` (bleu clair) | Patrouille municipale |
| police-nationale | `veh-police-car.svg` | `#1e40af` (bleu foncé) | Patrouille nationale (même icône, couleur ≠) |
| bac (brigade anti-criminalité) | `veh-police-car.svg` | `#0c1e4d` (bleu nuit) | Banalisée |
| stups (brigade stupéfiants) | `veh-police-car.svg` | `#0a0a0a` (noir) | Banalisée |
| gign-blinde (VBR) | `veh-apc.svg` | `#374151` (gris fer) | Véhicule blindé tactique |
| gign-helicoptere | `veh-helicopter.svg` | `#0a0a0a` (noir) | Hélico GIGN |
| voiture-rapide-f1 | `veh-f1-car.svg` | `#dc2626` (rouge) | Voiture la plus rapide |
| voiture-sport | `veh-race-car.svg` | `#dc2626` (rouge) | Race car |
| voiture-ville (citadine) | `veh-city-car.svg` | `#9ca3af` (gris) | Voiture de ville civile |
| pickup | `veh-flatbed.svg` | `#92400e` (marron) | Plateau ouvert |
| camion-flatbed-couvert | `veh-flatbed-covered.svg` | `#525252` (gris foncé) | Plateau couvert |
| camion-livraison | `veh-truck.svg` | `#525252` (gris) | Camion générique livraison/transport |
| ambulance | `veh-ambulance.svg` | `#ef4444` (rouge) | **Effet : -20 chaleur tant qu'on est dedans** (vente marché noir Dagaz only) |
| bus | `veh-bus.svg` | `#facc15` (jaune) | **Premium Dagaz**. 20 gangsters max. Vmax 110 km/h |
| concessionnaire-alt (clé) | `veh-car-key.svg` | `#facc15` (or) | Image alternative concessionnaire |
| trainstation (futur) | `veh-steam-locomotive.svg` | `#525252` (gris) | À garder pour plus tard |

---

## B. POI BÂTIMENTS (`poi-*.svg`)

### Résidentiels
| Type gameplay | Fichier SVG | Couleur CSS |
|---|---|---|
| villa | `poi-house.svg` | `#22c55e` (vert) |
| maison-standard / immeuble | `poi-family-house.svg` | `#22c55e` (vert) |
| chateau | `poi-castle.svg` | `#facc15` (or) |
| palace | `poi-saint-basil-cathedral.svg` | `#facc15` (or) |
| manoir | `poi-medieval-village-01.svg` | `#facc15` (or) |
| loft / penthouse | `poi-saloon.svg` | `#22c55e` (vert) |
| squat | `poi-desert-camp.svg` | `#6b7280` (gris) |
| tipi | `poi-tipi.svg` | `#22c55e` (vert) |
| cabane | `poi-wood-cabin.svg` | `#22c55e` (vert) |
| treehouse | `veh-treehouse.svg` | `#22c55e` (vert) — *fichier dans `veh-` mais c'est résidentiel* |
| planque-attitree (joueur) | `poi-player-base.svg` | `#facc15` (or) |

### Production / Industrie
| Type gameplay | Fichier SVG | Couleur CSS |
|---|---|---|
| ferme | `poi-windmill.svg` | `#f97316` (orange) — *moulin pour ferme* |
| usine | `poi-factory.svg` | `#f97316` (orange) |
| mine | `poi-gold-mine.svg` | `#f97316` (orange) |
| moulin (fabrique farine) | `poi-windmill.svg` | `#f97316` (orange) |
| warehouse / entrepôt | `poi-venus-of-willendorf.svg` | `#f97316` (orange) |
| entrepôt-alt | `poi-triple-gate.svg` | `#f97316` (orange) |

### Commerces
| Type gameplay | Fichier SVG | Couleur CSS |
|---|---|---|
| commerce-générique | `poi-shop.svg` | `#facc15` (or) |
| restaurant | `com-meal.svg` ou `com-knife-fork.svg` | `#facc15` (or) |
| bar | `com-beer-stein.svg` | `#facc15` (or) — cocktail-glass non dispo |
| nightclub | `com-musical-notes.svg` | `#a855f7` (violet) |
| pharmacy | `com-medicine-pills.svg` | `#22c55e` (vert) |
| coiffeur | `com-scissors.svg` | `#facc15` (or) |
| caviste | `com-wine-bottle.svg` | `#facc15` (or) |
| supermarche | `com-shopping-cart.svg` | `#facc15` (or) |
| boulangerie | `com-sliced-bread.svg` | `#facc15` (or) |
| tabac | `com-cigarette.svg` ou `com-smoking-finger.svg` | `#facc15` (or) — préférer cigarette |
| garage-mecanicien (réparation) | `poi-mechanic-garage.svg` | `#facc15` (or) |
| garage-perso (parking achetable) | `poi-home-garage.svg` | `#facc15` (or) — différent du parking payant P |
| carrosserie (avec voiture+spray) | `com-paint-brush.svg` ou `com-auto-repair.svg` | `#facc15` (or) |
| concessionnaire | `veh-car-key.svg` | `#facc15` (or) — **avec ∞ en haut à droite** |
| commerce-rackete (extorqué par joueur) | `poi-guarded-tower.svg` | `#dc2626` (rouge) |
| point-de-deal | `poi-mushroom-house.svg` | `#a855f7` (violet) — illégal |

### Public services / Spéciaux
| Type gameplay | Fichier SVG | Couleur CSS |
|---|---|---|
| hopital | `poi-hospital.svg` | `#cfd2d6` (argent) |
| clinic | `pub-first-aid-kit.svg` | `#cfd2d6` (argent) |
| ecole | `poi-teacher.svg` | `#cfd2d6` (argent) |
| mairie | `cult-greek-temple.svg` | `#cfd2d6` (argent) |
| banque | `poi-congress.svg` | `#cfd2d6` (argent) — **avec ∞ en haut à droite** |
| bureau-de-change | `pub-banknote.svg` | `#cfd2d6` (argent) |
| poste | `pub-envelope.svg` | `#cfd2d6` (argent) |
| bibliotheque | `pub-book-pile.svg` | `#cfd2d6` (argent) — **+1 livre en bas de pile** |
| commissariat | `char-police-officer-head.svg` | `#3b82f6` (bleu) |
| tribunal-batiment | `mission-scales.svg` | `#cfd2d6` (argent) |
| prison-batiment | `poi-window-bars.svg` | `#525252` (gris foncé) |
| port-ferry | `pub-anchor.svg` | `#cfd2d6` (argent) |
| parking | (keep mdi:parking actuel) | `#cfd2d6` (argent) |
| batiment-officiel (capitole) | `poi-capitol.svg` | `#cfd2d6` (argent) — **réserve usage futur** |

### Lieux de culte
| Type gameplay | Fichier SVG | Couleur CSS |
|---|---|---|
| eglise | `cult-church.svg` | `#cfd2d6` (argent) — **garder uniquement partie gauche avec clocher** |
| mosquee | `cult-samara-mosque.svg` | `#cfd2d6` (argent) — **ajouter détails fenêtres** |
| synagogue | `marker-poi-synagogue.svg` (fa6-solid existant) | `#cfd2d6` (argent) — **ajouter détails fenêtres** |
| temple-bouddhiste | `poi-yin-yang.svg` | `#cfd2d6` (argent) |
| temple-hindou | `poi-indian-palace.svg` | `#cfd2d6` (argent) |

---

## C. PERSONNAGES JOUEUR & PNJ (`char-*.svg`)

### Joueur (avatar du joueur sur la carte)
| État joueur | Fichier SVG | Couleur CSS | Durée |
|---|---|---|---|
| joueur-avatar (territoire normal) | `char-beams-aura.svg` | `#facc15` (or) | permanent |
| joueur-incarcere (prison) | `char-convict.svg` | `#facc15` (or) | tant que prison |
| joueur-garde-a-vue | `char-mug-shot.svg` | `#facc15` (or) | tant que GAV |
| joueur-tribunal (jugement) | `char-tribunal-jury.svg` | `#facc15` (or) | tant que jugement |
| joueur-evade (peine en attente) | `char-evasion.svg` | `#facc15` (or) | tant que peine non purgée |
| joueur-conqueror (territoire gagné) | `char-conqueror.svg` | `#facc15` (or) | **1 minute** après gain |
| joueur-meditation | `char-meditation.svg` | `#facc15` (or) | pendant méditation |
| joueur-mort-0pv | `char-backstab.svg` | `#dc2626` (rouge) | **1 minute** |
| joueur-territoire-flag | `char-black-flag.svg` | `#facc15` (or) | flag posé sur zone |

### PNJ Forces de l'ordre
| Type | Fichier SVG | Couleur CSS |
|---|---|---|
| police-municipale-piéton | `char-police-officer-head.svg` | `#60a5fa` (bleu clair) |
| police-nationale-piéton | `char-police-officer-head.svg` | `#1e40af` (bleu foncé) |
| gign-pied | `char-robber-mask.svg` | `#0a0a0a` (noir) |
| dea | `char-sherlock-holmes.svg` | `#0a0a0a` (noir) |
| fbi | `char-spy.svg` | `#0a0a0a` (noir) |
| infirmiere-urgentiste | `char-nurse-female.svg` | `#ef4444` (rouge) |
| medecin-urgentiste | `char-nurse-male.svg` | `#ef4444` (rouge) |

### Gangsters (PNJ alliés ou ennemis)
| État gangster | Fichier SVG | Couleur CSS |
|---|---|---|
| gangster-repos | `char-person.svg` | `#9ca3af` (gris neutre) ou couleur du gang |
| gangster-mission (braquage/vol/extorsion) | `char-robber.svg` | couleur du gang |
| gangster-combat | `char-reload-gun-barrel.svg` | couleur du gang |
| gangster-attaque (assassinat ordre) | `char-flamethrower-soldier.svg` | `#dc2626` (rouge) |
| gangster-mort-0pv | `char-backstab.svg` | `#dc2626` (rouge) — 1 min |

---

## D. MISSIONS (`mission-*.svg`)

| Catégorie mission | Fichier SVG | Couleur CSS |
|---|---|---|
| crime | `mission-eagle-emblem.svg` | `#dc2626` (rouge) |
| politique | `mission-revolt.svg` | `#a855f7` (violet) — *user voulait anarchy mais n'existe pas dans game-icons → revolt* |
| redemption | `mission-dream-catcher.svg` | `#22c55e` (vert) |
| france-betonnerie | `mission-all-seeing-eye.svg` | `#facc15` (or) |
| justice (alt tribunal) | `mission-scales.svg` | `#cfd2d6` (argent) |
| contrat-joueur (futur) | `mission-wanted-reward.svg` | `#dc2626` (rouge) — **À VENIR — réserve** |

---

## E. ARMES (POI armurerie aléatoire) (`weapon-*.svg`)

L'icône de chaque armurerie est tirée au sort parmi cette liste pour varier la map.

| Arme | Fichier SVG |
|---|---|
| ak47 | `weapon-ak47.svg` |
| tec-9 | `weapon-tec-9.svg` |
| lee-enfield | `weapon-lee-enfield.svg` |
| pistol | `weapon-pistol-gun.svg` |
| grenade | `weapon-grenade.svg` |

Couleur commune : `#facc15` (or — commerce)

---

## F. ASSOCIATIONS (`assoc-*.svg`)

| Type | Fichier SVG | Couleur CSS | Notes |
|---|---|---|---|
| caritative | `assoc-hearts.svg` | `#22c55e` (vert) | À garder tel quel |
| ecologique | `assoc-tree-branch.svg` | `#22c55e` (vert) | À garder tel quel |
| sociale | `assoc-three-friends.svg` | `#22c55e` (vert) | **Agrandir motif +1px haut/bas** |

---

## G. CASINO (cas spécial)

> **NE PAS toucher au casino** — l'icône actuelle sur la carte est conservée selon décision user.

---

## H. POI RÉSERVE (`misc-*.svg`)

| Usage | Fichier SVG | Couleur CSS |
|---|---|---|
| poi-reserve-générique | `misc-dark-squad.svg` | `#6b7280` (gris) — placeholder gameplay futur |

---

## I. VARIABLES CSS RECOMMANDÉES (à ajouter au frontend)

```css
:root {
  /* Joueur / Territoire */
  --marker-gold: #facc15;
  --marker-gold-dark: #D4AF37;

  /* Forces de l'ordre */
  --marker-police-mun: #60a5fa;
  --marker-police-nat: #1e40af;
  --marker-bac: #0c1e4d;
  --marker-stups: #0a0a0a;
  --marker-gign: #374151;
  --marker-fbi: #0a0a0a;
  --marker-dea: #0a0a0a;

  /* Urgences */
  --marker-emergency: #ef4444;

  /* POI sémantique */
  --marker-residence: #22c55e;
  --marker-commerce: #facc15;
  --marker-production: #f97316;
  --marker-public: #cfd2d6;
  --marker-illegal: #a855f7;
  --marker-rackete: #dc2626;

  /* Missions */
  --marker-mission-crime: #dc2626;
  --marker-mission-politique: #a855f7;
  --marker-mission-redemption: #22c55e;

  /* États joueur spéciaux */
  --marker-state-warning: #dc2626;
  --marker-state-info: #facc15;
}
```

---

## J. EXEMPLE D'UTILISATION FRONTEND (Leaflet / React)

Approche recommandée : fetch le SVG, parser via `DOMParser`, l'injecter dans une `L.divIcon`.

```jsx
import { useEffect, useState } from 'react';

const SVG_BASE = '/images/svg/mapped';

const MARKER_MAP = {
  'police-municipale': { file: 'veh-police-car',  color: 'var(--marker-police-mun)' },
  'police-nationale':  { file: 'veh-police-car',  color: 'var(--marker-police-nat)' },
  'bac':               { file: 'veh-police-car',  color: 'var(--marker-bac)' },
  'stups':             { file: 'veh-police-car',  color: 'var(--marker-stups)' },
  'gign-blinde':       { file: 'veh-apc',         color: 'var(--marker-gign)' },
  // … (compléter depuis les tableaux ci-dessus)
};

async function buildMarkerEl(type, size = 32) {
  const cfg = MARKER_MAP[type];
  if (!cfg) return null;
  const r = await fetch(`${SVG_BASE}/${cfg.file}.svg`);
  const text = await r.text();
  const doc = new DOMParser().parseFromString(text, 'image/svg+xml');
  const svg = doc.documentElement;
  svg.setAttribute('width', String(size));
  svg.setAttribute('height', String(size));
  const wrapper = document.createElement('div');
  wrapper.style.color = cfg.color;
  wrapper.appendChild(svg);
  return wrapper;
}

// Avec Leaflet :
// const icon = L.divIcon({ html: wrapper.outerHTML, className: 'mafiaz-marker', iconSize: [32, 32] });
```

---

## K. ATTRIBUTION OBLIGATOIRE (CC BY 3.0)

> Les icônes de carte de Mafiaz.world sont dérivées de **Game-Icons.net** par Lorc, Delapouite, Skoll, John Colburn, Caro Asercion et leurs contributeurs (CC BY 3.0).
> https://game-icons.net

À insérer dans une page **À propos** ou **Mentions légales** du site.
