{
  "engine": "OTO Project Identity Engine (PIE)",
  "annexe": 12,
  "version_workflow": "V10.1",
  "ssot": "faisabilite",
  "directive": "DIRECTIVE_PIE_PROJECT_IDENTITY_ENGINE_20260803.md",
  "master_data_groups": [
    { "cle": "identite",    "libelle": "Identité",    "champs": ["nom", "type", "concept", "vision", "mission", "valeurs"] },
    { "cle": "localisation","libelle": "Localisation","champs": ["adresse exacte", "coordonnées GPS", "province", "ville", "quartier"] },
    { "cle": "architecture","libelle": "Architecture","champs": ["style", "matériaux", "ambiances", "palette matériaux"] },
    { "cle": "unites",      "libelle": "Unités",      "champs": ["typologies", "surfaces", "orientations", "quantités", "prix", "disponibilités"] },
    { "cle": "budget",      "libelle": "Budget",      "champs": ["CAPEX", "coûts construction", "marges", "break-even", "apport promoteur"] },
    { "cle": "marketing",   "libelle": "Marketing",   "champs": ["positionnement", "clientèle cible", "USPs", "canaux"] },
    { "cle": "bim",         "libelle": "BIM",         "champs": ["IFC/GLB", "plans", "coupes", "panoramas"] },
    { "cle": "finances",    "libelle": "Finances",    "champs": ["plan de financement", "fideicomiso", "CONFOTUR", "exonérations"] },
    { "cle": "juridique",   "libelle": "Juridique",   "champs": ["titres", "permis", "licences", "contrats types"] },
    { "cle": "images",      "libelle": "Images",      "champs": ["rendus extérieurs", "intérieurs", "aériens", "ambiances"] },
    { "cle": "services",    "libelle": "Services",    "champs": ["amenities", "conciergerie", "services inclus"] },
    { "cle": "calendrier",  "libelle": "Calendrier",  "champs": ["phasage travaux", "jalons", "livraison"] }
  ],
  "downstream_registry": [
    { "cle": "brochures",         "libelle": "Brochures PDF FR/EN/ES",                    "module": null },
    { "cle": "kit_banquier",      "libelle": "Kit banquier PDF trilingue",                "module": "faisabilite/bancable" },
    { "cle": "contrats",          "libelle": "Contrats types (Promesa · Fideicomiso · HOA)","module": "legal/confotur" },
    { "cle": "site",              "libelle": "Page projet vente.otov7.com/projets/{slug}/","module": "publiciste" },
    { "cle": "app",               "libelle": "Section app mobile (portail Client)",        "module": "mobile/app_config" },
    { "cle": "plans",             "libelle": "Plans (générés depuis BIM)",                 "module": null },
    { "cle": "rendus",            "libelle": "Rendus extérieurs/intérieurs/aériens",       "module": null },
    { "cle": "fiche_unite",       "libelle": "Fiche unité",                                "module": null },
    { "cle": "bim",               "libelle": "IFC + GLB + Speckle",                        "module": null },
    { "cle": "slogan",            "libelle": "Slogan / tagline",                           "module": null },
    { "cle": "brand_book",        "libelle": "Brand Book PDF (~30-50 pages)",              "module": null },
    { "cle": "calendrier",        "libelle": "Calendrier / phasage travaux",               "module": null },
    { "cle": "trackers_chantier", "libelle": "Trackers chantier",                          "module": null }
  ],
  "sync_rules": [
    { "trigger": "prix",       "trigger_group": "unites",     "downstream": ["brochures", "kit_banquier", "contrats", "site", "app"] },
    { "trigger": "typologie",  "trigger_group": "unites",     "downstream": ["plans", "rendus", "fiche_unite", "bim"] },
    { "trigger": "amenities",  "trigger_group": "services",   "downstream": ["brochures", "site", "slogan", "brand_book"] },
    { "trigger": "livraison",  "trigger_group": "calendrier", "downstream": ["calendrier", "brochures", "trackers_chantier"] }
  ],
  "workflow": [
    { "etape": 1,  "libelle": "Validation Faisabilité (par OTO Auditeur Faisabilité IA)" },
    { "etape": 2,  "libelle": "Extraction Project Master Data (master.json)" },
    { "etape": 3,  "libelle": "Brand Book génération" },
    { "etape": 4,  "libelle": "Logos génération (Flux + variantes SVG)" },
    { "etape": 5,  "libelle": "Thème appliqué (CSS variables + design tokens)" },
    { "etape": 6,  "libelle": "Documents commerciaux (brochures · kit banquier · Trousse · contrats)" },
    { "etape": 7,  "libelle": "Portails web (page projet · viewer 3D · portail client)" },
    { "etape": 8,  "libelle": "Applications mobiles (section projet + tab dédié)" },
    { "etape": 9,  "libelle": "Synchronisation (ERPNext · CRM · BIM · OTO AI · OFAC/PEP/FinCEN)" },
    { "etape": 10, "libelle": "Publication (site · app · portail admin · ERPNext · Speckle · GSC)" }
  ],
  "brands": [
    { "code": "P01", "marque": "Coralis",          "localisation": "San Cristóbal" },
    { "code": "P02", "marque": "Coral del Sur",     "localisation": "San Cristóbal" },
    { "code": "P03", "marque": "Nakua",             "localisation": "Bávaro" },
    { "code": "P04", "marque": "Xamaná Cantiles",   "localisation": "Palenque" },
    { "code": "P05", "marque": "Las Colinas",       "localisation": "Najayo" },
    { "code": "P06", "marque": "Coco Real",         "localisation": "Punta Cana Bávaro" },
    { "code": "P07", "marque": "Aqua Terra",        "localisation": "Las Terrenas" },
    { "code": "P08", "marque": "Fasano Espirilla",  "localisation": "Santo Domingo Espirilla" },
    { "code": "P09", "marque": "Résidence Gazcue",  "localisation": "Santo Domingo centre historique" }
  ],
  "storage_layout": {
    "racine": "/opt/oto/data/pie/{code}/",
    "artefacts": [
      { "chemin": "master.json",   "role": "Project Master Data (SSOT extrait de la faisabilité)" },
      { "chemin": "brand/",        "role": "Brand Book assets" },
      { "chemin": "logos/",        "role": "Logos SVG/PNG + variantes" },
      { "chemin": "documents/",    "role": "PDF générés (brochures · kit banquier · contrats)" },
      { "chemin": "manifest.json", "role": "Manifest de dépendances + checksums (régénération sélective)" }
    ]
  }
}
