import type { SectorCategory, NafCode } from "@/lib/simulateur/types";

// ============================================================================
// Catégories de secteurs (tuiles visuelles — étape 1)
// ============================================================================

export const SECTOR_CATEGORIES: SectorCategory[] = [
  {
    id: "metallurgie",
    label: "Métallurgie & Sidérurgie",
    icon: "IconFlame",
    description: "Fonderies, aciéries, transformation des métaux",
    nafPrefixes: ["24."],
    popular: true,
  },
  {
    id: "chimie",
    label: "Chimie & Plasturgie",
    icon: "IconFlask",
    description: "Chimie de base, spécialités chimiques, plasturgie",
    nafPrefixes: ["20.", "22."],
    popular: true,
  },
  {
    id: "papier",
    label: "Papier & Carton",
    icon: "IconFileText",
    description: "Pâte à papier, papier kraft, recyclage",
    nafPrefixes: ["17."],
    popular: true,
  },
  {
    id: "verre-ciment",
    label: "Verre, Ciment & Céramique",
    icon: "IconBuildingFactory",
    description: "Verrerie, cimenterie, céramique, produits minéraux",
    nafPrefixes: ["23."],
    popular: true,
  },
  {
    id: "data-centers",
    label: "Data Centers & Cloud",
    icon: "IconServer",
    description: "Hébergement de données, cloud computing",
    nafPrefixes: ["63.11"],
    popular: true,
  },
  {
    id: "agroalimentaire",
    label: "Agroalimentaire & Froid",
    icon: "IconSnowflake",
    description: "Surgélation industrielle, chambres froides, IAA",
    nafPrefixes: ["10.", "11."],
    popular: true,
  },
  {
    id: "transport",
    label: "Transport & Logistique",
    icon: "IconTrain",
    description: "Ferroviaire, transport collectif, manutention portuaire",
    nafPrefixes: ["49.", "50.", "52."],
  },
  {
    id: "energie",
    label: "Production d'Énergie",
    icon: "IconBolt",
    description: "Centrales, cogénération, autoproduction, stockage",
    nafPrefixes: ["35."],
  },
  {
    id: "btp",
    label: "BTP & Construction",
    icon: "IconBuildingSkyscraper",
    description: "Travaux publics, construction, matériaux",
    nafPrefixes: ["41.", "42.", "43."],
  },
  {
    id: "textile",
    label: "Textile & Habillement",
    icon: "IconShirt",
    description: "Filature, tissage, teinturerie industrielle",
    nafPrefixes: ["13.", "14.", "15."],
  },
  {
    id: "bois",
    label: "Bois & Ameublement",
    icon: "IconTree",
    description: "Scierie, panneaux, meubles industriels",
    nafPrefixes: ["16.", "31."],
  },
  {
    id: "pharma",
    label: "Pharmacie & Équipements",
    icon: "IconPill",
    description: "Pharmaceutique, électronique, machines, automobile",
    nafPrefixes: ["21.", "26.", "27.", "28.", "29.", "30."],
  },
  {
    id: "sante-enseignement",
    label: "Santé & Enseignement",
    icon: "IconStethoscope",
    description: "Hôpitaux, cliniques, universités, écoles",
    nafPrefixes: ["85.", "86.", "87.", "88."],
  },
  {
    id: "hotellerie",
    label: "Hôtellerie & Restauration",
    icon: "IconBuildingStore",
    description: "Hôtels, piscines, centres thermaux, restaurants",
    nafPrefixes: ["55.", "56.", "93."],
  },
  {
    id: "commerce",
    label: "Commerce & Distribution",
    icon: "IconShoppingCart",
    description: "Grande distribution, chambres froides, stations IRVE",
    nafPrefixes: ["45.", "46.", "47."],
  },
  {
    id: "agriculture",
    label: "Agriculture & Serres",
    icon: "IconPlant",
    description: "Horticulture sous éclairage, serres chauffées",
    nafPrefixes: ["01.13", "01.19", "01.30"],
  },
  {
    id: "peche",
    label: "Pêche & Aquaculture",
    icon: "IconFish",
    description: "Pêche maritime, pisciculture, aquaculture",
    nafPrefixes: ["03."],
  },
  {
    id: "autre",
    label: "Autre secteur",
    icon: "IconSearch",
    description: "Recherchez votre code NAF ci-dessous",
    nafPrefixes: [],
  },
];

// ============================================================================
// Codes NAF pertinents (~200 codes avec potentiel d'exonération)
// ============================================================================

export const NAF_CODES: NafCode[] = [
  // ── Agriculture (01.xx) ───────────────────────────────────────────────────
  { code: "01.13Z", label: "Culture de légumes et melons, maraîchage", sectorCategoryId: "agriculture", searchTerms: ["serre", "horticulture", "tomate"] },
  { code: "01.19Z", label: "Autres cultures non permanentes", sectorCategoryId: "agriculture" },
  { code: "01.25Z", label: "Culture d'autres fruits d'arbres ou d'arbustes", sectorCategoryId: "agriculture" },
  { code: "01.30Z", label: "Reproduction de plantes (horticulture)", sectorCategoryId: "agriculture", searchTerms: ["horticulteur", "pépinière"] },

  // ── Pêche & Aquaculture (03.xx) ───────────────────────────────────────────
  { code: "03.11Z", label: "Pêche en mer", sectorCategoryId: "peche" },
  { code: "03.12Z", label: "Pêche en eau douce", sectorCategoryId: "peche" },
  { code: "03.21Z", label: "Aquaculture en mer", sectorCategoryId: "peche" },
  { code: "03.22Z", label: "Aquaculture en eau douce", sectorCategoryId: "peche", searchTerms: ["pisciculture"] },

  // ── Métallurgie & Sidérurgie (24.xx) ──────────────────────────────────────
  { code: "24.10Z", label: "Sidérurgie", sectorCategoryId: "metallurgie", searchTerms: ["acier", "fonte", "haut fourneau"] },
  { code: "24.20Z", label: "Fabrication de tubes en acier", sectorCategoryId: "metallurgie", searchTerms: ["tuyaux", "profilés"] },
  { code: "24.31Z", label: "Étirage à froid de barres", sectorCategoryId: "metallurgie" },
  { code: "24.32Z", label: "Laminage à froid de feuillards", sectorCategoryId: "metallurgie" },
  { code: "24.33Z", label: "Profilage à froid par formage ou pliage", sectorCategoryId: "metallurgie" },
  { code: "24.34Z", label: "Tréfilage à froid", sectorCategoryId: "metallurgie" },
  { code: "24.41Z", label: "Production de métaux précieux", sectorCategoryId: "metallurgie", searchTerms: ["or", "argent"] },
  { code: "24.42Z", label: "Métallurgie de l'aluminium", sectorCategoryId: "metallurgie", searchTerms: ["aluminium", "fonderie alu"] },
  { code: "24.43Z", label: "Métallurgie du plomb, zinc, étain", sectorCategoryId: "metallurgie" },
  { code: "24.44Z", label: "Métallurgie du cuivre", sectorCategoryId: "metallurgie" },
  { code: "24.45Z", label: "Métallurgie des autres métaux non ferreux", sectorCategoryId: "metallurgie" },
  { code: "24.46Z", label: "Élaboration et transformation de combustibles nucléaires", sectorCategoryId: "metallurgie" },
  { code: "24.51Z", label: "Fonderie de fonte", sectorCategoryId: "metallurgie", searchTerms: ["moulage", "fonderie"] },
  { code: "24.52Z", label: "Fonderie d'acier", sectorCategoryId: "metallurgie" },
  { code: "24.53Z", label: "Fonderie de métaux légers", sectorCategoryId: "metallurgie" },
  { code: "24.54Z", label: "Fonderie d'autres métaux non ferreux", sectorCategoryId: "metallurgie" },

  // ── Chimie (20.xx) ────────────────────────────────────────────────────────
  { code: "20.11Z", label: "Fabrication de gaz industriels", sectorCategoryId: "chimie", searchTerms: ["oxygène", "azote", "hydrogène"] },
  { code: "20.12Z", label: "Fabrication de colorants et pigments", sectorCategoryId: "chimie" },
  { code: "20.13A", label: "Enrichissement et retraitement de matières nucléaires", sectorCategoryId: "chimie" },
  { code: "20.13B", label: "Fabrication d'autres produits chimiques inorganiques de base", sectorCategoryId: "chimie", searchTerms: ["chlore", "soude"] },
  { code: "20.14Z", label: "Fabrication d'autres produits chimiques organiques de base", sectorCategoryId: "chimie", searchTerms: ["ammoniac", "éthylène"] },
  { code: "20.15Z", label: "Fabrication de produits azotés et d'engrais", sectorCategoryId: "chimie", searchTerms: ["engrais", "fertilisant"] },
  { code: "20.16Z", label: "Fabrication de matières plastiques de base", sectorCategoryId: "chimie", searchTerms: ["polymère", "PVC", "polyéthylène"] },
  { code: "20.17Z", label: "Fabrication de caoutchouc synthétique", sectorCategoryId: "chimie" },
  { code: "20.20Z", label: "Fabrication de pesticides et d'autres produits agrochimiques", sectorCategoryId: "chimie" },
  { code: "20.30Z", label: "Fabrication de peintures et vernis", sectorCategoryId: "chimie" },
  { code: "20.41Z", label: "Fabrication de savons et détergents", sectorCategoryId: "chimie" },
  { code: "20.42Z", label: "Fabrication de parfums et produits de toilette", sectorCategoryId: "chimie" },
  { code: "20.51Z", label: "Fabrication de produits explosifs", sectorCategoryId: "chimie" },
  { code: "20.52Z", label: "Fabrication de colles", sectorCategoryId: "chimie" },
  { code: "20.59Z", label: "Fabrication d'autres produits chimiques n.c.a.", sectorCategoryId: "chimie" },
  { code: "20.60Z", label: "Fabrication de fibres artificielles ou synthétiques", sectorCategoryId: "chimie" },

  // ── Plasturgie (22.xx) ────────────────────────────────────────────────────
  { code: "22.11Z", label: "Fabrication et rechapage de pneumatiques", sectorCategoryId: "chimie", searchTerms: ["pneu"] },
  { code: "22.19Z", label: "Fabrication d'autres articles en caoutchouc", sectorCategoryId: "chimie" },
  { code: "22.21Z", label: "Fabrication de plaques et films plastiques", sectorCategoryId: "chimie", searchTerms: ["emballage plastique"] },
  { code: "22.22Z", label: "Fabrication d'emballages en matières plastiques", sectorCategoryId: "chimie" },
  { code: "22.23Z", label: "Fabrication d'éléments en matières plastiques pour la construction", sectorCategoryId: "chimie" },
  { code: "22.29A", label: "Fabrication de pièces techniques en matières plastiques", sectorCategoryId: "chimie", searchTerms: ["injection plastique", "plasturgie"] },
  { code: "22.29B", label: "Fabrication de produits de consommation courante en matières plastiques", sectorCategoryId: "chimie" },

  // ── Papier & Carton (17.xx) ───────────────────────────────────────────────
  { code: "17.11Z", label: "Fabrication de pâte à papier", sectorCategoryId: "papier", searchTerms: ["cellulose", "kraft"] },
  { code: "17.12Z", label: "Fabrication de papier et de carton", sectorCategoryId: "papier" },
  { code: "17.21A", label: "Fabrication de carton ondulé", sectorCategoryId: "papier" },
  { code: "17.21B", label: "Fabrication de cartonnages", sectorCategoryId: "papier" },
  { code: "17.21C", label: "Fabrication d'emballages en papier", sectorCategoryId: "papier" },
  { code: "17.22Z", label: "Fabrication d'articles en papier à usage sanitaire ou domestique", sectorCategoryId: "papier" },
  { code: "17.23Z", label: "Fabrication d'articles de papeterie", sectorCategoryId: "papier" },
  { code: "17.24Z", label: "Fabrication de papiers peints", sectorCategoryId: "papier" },
  { code: "17.29Z", label: "Fabrication d'autres articles en papier ou carton", sectorCategoryId: "papier" },

  // ── Verre, Ciment & Céramique (23.xx — div 23 NACE) ──────────────────────
  { code: "23.11Z", label: "Fabrication de verre plat", sectorCategoryId: "verre-ciment", searchTerms: ["vitrage", "glace"] },
  { code: "23.12Z", label: "Façonnage et transformation du verre plat", sectorCategoryId: "verre-ciment" },
  { code: "23.13Z", label: "Fabrication de verre creux", sectorCategoryId: "verre-ciment", searchTerms: ["bouteille", "flacon"] },
  { code: "23.14Z", label: "Fabrication de fibres de verre", sectorCategoryId: "verre-ciment", searchTerms: ["fibre optique"] },
  { code: "23.19Z", label: "Fabrication d'autres articles en verre", sectorCategoryId: "verre-ciment" },
  { code: "23.20Z", label: "Fabrication de produits réfractaires", sectorCategoryId: "verre-ciment" },
  { code: "23.31Z", label: "Fabrication de carreaux en céramique", sectorCategoryId: "verre-ciment" },
  { code: "23.32Z", label: "Fabrication de briques, tuiles et produits de construction en terre cuite", sectorCategoryId: "verre-ciment", searchTerms: ["brique", "tuile"] },
  { code: "23.41Z", label: "Fabrication d'articles céramiques à usage domestique", sectorCategoryId: "verre-ciment" },
  { code: "23.42Z", label: "Fabrication d'appareils sanitaires en céramique", sectorCategoryId: "verre-ciment" },
  { code: "23.43Z", label: "Fabrication d'isolateurs en céramique", sectorCategoryId: "verre-ciment" },
  { code: "23.44Z", label: "Fabrication d'autres produits céramiques", sectorCategoryId: "verre-ciment" },
  { code: "23.49Z", label: "Fabrication d'autres produits céramiques n.c.a.", sectorCategoryId: "verre-ciment" },
  { code: "23.51Z", label: "Fabrication de ciment", sectorCategoryId: "verre-ciment", searchTerms: ["cimenterie", "clinker"] },
  { code: "23.52Z", label: "Fabrication de chaux et plâtre", sectorCategoryId: "verre-ciment" },
  { code: "23.61Z", label: "Fabrication d'éléments en béton pour la construction", sectorCategoryId: "verre-ciment" },
  { code: "23.62Z", label: "Fabrication d'éléments en plâtre pour la construction", sectorCategoryId: "verre-ciment" },
  { code: "23.63Z", label: "Fabrication de béton prêt à l'emploi", sectorCategoryId: "verre-ciment" },
  { code: "23.64Z", label: "Fabrication de mortiers et bétons secs", sectorCategoryId: "verre-ciment" },
  { code: "23.65Z", label: "Fabrication d'ouvrages en fibrociment", sectorCategoryId: "verre-ciment" },
  { code: "23.69Z", label: "Fabrication d'autres ouvrages en béton, ciment ou plâtre", sectorCategoryId: "verre-ciment" },
  { code: "23.70Z", label: "Taille, façonnage et finissage de pierres", sectorCategoryId: "verre-ciment" },
  { code: "23.91Z", label: "Fabrication de produits abrasifs", sectorCategoryId: "verre-ciment" },
  { code: "23.99Z", label: "Fabrication d'autres produits minéraux non métalliques", sectorCategoryId: "verre-ciment" },

  // ── Data Centers (63.11Z) ─────────────────────────────────────────────────
  { code: "63.11Z", label: "Traitement de données, hébergement et activités connexes", sectorCategoryId: "data-centers", searchTerms: ["data center", "cloud", "hébergement", "serveurs"] },

  // ── Agroalimentaire & Froid (10.xx, 11.xx) ────────────────────────────────
  { code: "10.11Z", label: "Transformation et conservation de viande de boucherie", sectorCategoryId: "agroalimentaire", searchTerms: ["abattoir", "viande"] },
  { code: "10.12Z", label: "Transformation et conservation de viande de volaille", sectorCategoryId: "agroalimentaire" },
  { code: "10.13A", label: "Préparation industrielle de produits à base de viande", sectorCategoryId: "agroalimentaire", searchTerms: ["charcuterie industrielle"] },
  { code: "10.13B", label: "Charcuterie", sectorCategoryId: "agroalimentaire" },
  { code: "10.20Z", label: "Transformation et conservation de poisson", sectorCategoryId: "agroalimentaire", searchTerms: ["conserverie", "surgélation poisson"] },
  { code: "10.31Z", label: "Transformation et conservation de pommes de terre", sectorCategoryId: "agroalimentaire", searchTerms: ["frites surgelées"] },
  { code: "10.39A", label: "Autre transformation et conservation de légumes", sectorCategoryId: "agroalimentaire" },
  { code: "10.39B", label: "Transformation et conservation de fruits", sectorCategoryId: "agroalimentaire" },
  { code: "10.41A", label: "Fabrication d'huiles et graisses brutes", sectorCategoryId: "agroalimentaire" },
  { code: "10.41B", label: "Fabrication d'huiles et graisses raffinées", sectorCategoryId: "agroalimentaire" },
  { code: "10.42Z", label: "Fabrication de margarine", sectorCategoryId: "agroalimentaire" },
  { code: "10.51A", label: "Fabrication de lait liquide et de produits frais", sectorCategoryId: "agroalimentaire", searchTerms: ["laiterie", "yaourt"] },
  { code: "10.51B", label: "Fabrication de beurre", sectorCategoryId: "agroalimentaire" },
  { code: "10.51C", label: "Fabrication de fromage", sectorCategoryId: "agroalimentaire", searchTerms: ["fromagerie"] },
  { code: "10.51D", label: "Fabrication d'autres produits laitiers", sectorCategoryId: "agroalimentaire" },
  { code: "10.52Z", label: "Fabrication de glaces et sorbets", sectorCategoryId: "agroalimentaire", searchTerms: ["glace", "crème glacée"] },
  { code: "10.61A", label: "Meunerie", sectorCategoryId: "agroalimentaire", searchTerms: ["farine", "moulin"] },
  { code: "10.61B", label: "Autres activités du travail des grains", sectorCategoryId: "agroalimentaire" },
  { code: "10.62Z", label: "Fabrication de produits amylacés", sectorCategoryId: "agroalimentaire", searchTerms: ["amidon", "fécule"] },
  { code: "10.71A", label: "Fabrication industrielle de pain et pâtisserie fraîche", sectorCategoryId: "agroalimentaire", searchTerms: ["boulangerie industrielle"] },
  { code: "10.72Z", label: "Fabrication de biscuits, biscottes et pâtisseries de conservation", sectorCategoryId: "agroalimentaire" },
  { code: "10.73Z", label: "Fabrication de pâtes alimentaires", sectorCategoryId: "agroalimentaire" },
  { code: "10.81Z", label: "Fabrication de sucre", sectorCategoryId: "agroalimentaire", searchTerms: ["sucrerie", "raffinerie sucre"] },
  { code: "10.82Z", label: "Fabrication de cacao, chocolat et confiserie", sectorCategoryId: "agroalimentaire", searchTerms: ["chocolaterie"] },
  { code: "10.85Z", label: "Fabrication de plats préparés", sectorCategoryId: "agroalimentaire" },
  { code: "10.89Z", label: "Fabrication d'autres produits alimentaires n.c.a.", sectorCategoryId: "agroalimentaire" },
  { code: "10.91Z", label: "Fabrication d'aliments pour animaux de ferme", sectorCategoryId: "agroalimentaire" },
  { code: "10.92Z", label: "Fabrication d'aliments pour animaux de compagnie", sectorCategoryId: "agroalimentaire" },
  { code: "11.01Z", label: "Production de boissons alcooliques distillées", sectorCategoryId: "agroalimentaire" },
  { code: "11.02A", label: "Fabrication de vins effervescents", sectorCategoryId: "agroalimentaire", searchTerms: ["champagne"] },
  { code: "11.02B", label: "Vinification", sectorCategoryId: "agroalimentaire", searchTerms: ["vin", "cave"] },
  { code: "11.05Z", label: "Fabrication de bière", sectorCategoryId: "agroalimentaire", searchTerms: ["brasserie"] },
  { code: "11.07A", label: "Industrie des eaux de table", sectorCategoryId: "agroalimentaire" },
  { code: "11.07B", label: "Production de boissons rafraîchissantes", sectorCategoryId: "agroalimentaire" },

  // ── Transport (49.xx, 50.xx, 52.xx) ───────────────────────────────────────
  { code: "49.10Z", label: "Transport ferroviaire interurbain de voyageurs", sectorCategoryId: "transport", searchTerms: ["SNCF", "train", "TGV"] },
  { code: "49.20Z", label: "Transports ferroviaires de fret", sectorCategoryId: "transport" },
  { code: "49.31Z", label: "Transports urbains et suburbains de voyageurs", sectorCategoryId: "transport", searchTerms: ["métro", "tramway", "bus"] },
  { code: "49.39A", label: "Transports routiers réguliers de voyageurs", sectorCategoryId: "transport" },
  { code: "50.10Z", label: "Transports maritimes et côtiers de passagers", sectorCategoryId: "transport", searchTerms: ["ferry", "bateau"] },
  { code: "50.20Z", label: "Transports maritimes et côtiers de fret", sectorCategoryId: "transport" },
  { code: "50.30Z", label: "Transports fluviaux de passagers", sectorCategoryId: "transport" },
  { code: "50.40Z", label: "Transports fluviaux de fret", sectorCategoryId: "transport" },
  { code: "52.21Z", label: "Services auxiliaires des transports terrestres (IRVE)", sectorCategoryId: "transport", searchTerms: ["borne recharge", "IRVE", "véhicule électrique"] },
  { code: "52.22Z", label: "Services auxiliaires des transports par eau", sectorCategoryId: "transport", searchTerms: ["port"] },
  { code: "52.23Z", label: "Services auxiliaires des transports aériens", sectorCategoryId: "transport", searchTerms: ["aéroport", "aérodrome"] },
  { code: "52.24A", label: "Manutention portuaire", sectorCategoryId: "transport", searchTerms: ["manutention", "grue portuaire"] },
  { code: "52.24B", label: "Manutention non portuaire", sectorCategoryId: "transport" },

  // ── Production d'énergie (35.xx) ──────────────────────────────────────────
  { code: "35.11Z", label: "Production d'électricité", sectorCategoryId: "energie", searchTerms: ["centrale", "cogénération"] },
  { code: "35.12Z", label: "Transport d'électricité", sectorCategoryId: "energie", searchTerms: ["RTE", "réseau"] },
  { code: "35.13Z", label: "Distribution d'électricité", sectorCategoryId: "energie", searchTerms: ["Enedis"] },
  { code: "35.14Z", label: "Commerce d'électricité", sectorCategoryId: "energie", searchTerms: ["fournisseur", "négoce"] },
  { code: "35.21Z", label: "Production de combustibles gazeux", sectorCategoryId: "energie", searchTerms: ["hydrogène", "biométhane"] },
  { code: "35.22Z", label: "Distribution de combustibles gazeux", sectorCategoryId: "energie" },
  { code: "35.30Z", label: "Production et distribution de vapeur et d'air conditionné", sectorCategoryId: "energie", searchTerms: ["chaleur", "réseau de chaleur", "stockage"] },

  // ── Extraction / Mines (05-09) ────────────────────────────────────────────
  { code: "05.10Z", label: "Extraction de houille", sectorCategoryId: "metallurgie" },
  { code: "07.10Z", label: "Extraction de minerais de fer", sectorCategoryId: "metallurgie" },
  { code: "07.21Z", label: "Extraction de minerais d'uranium et de thorium", sectorCategoryId: "metallurgie" },
  { code: "07.29Z", label: "Extraction d'autres minerais de métaux non ferreux", sectorCategoryId: "metallurgie" },
  { code: "08.11Z", label: "Extraction de pierres ornementales et de construction", sectorCategoryId: "verre-ciment" },
  { code: "08.12Z", label: "Exploitation de gravières et sablières", sectorCategoryId: "verre-ciment" },

  // ── Pharmaceutique / Électronique / Équipements (21-30) ───────────────────
  { code: "21.10Z", label: "Fabrication de produits pharmaceutiques de base", sectorCategoryId: "pharma", searchTerms: ["principe actif", "API"] },
  { code: "21.20Z", label: "Fabrication de préparations pharmaceutiques", sectorCategoryId: "pharma", searchTerms: ["médicament", "laboratoire pharmaceutique"] },
  { code: "26.11Z", label: "Fabrication de composants électroniques", sectorCategoryId: "pharma", searchTerms: ["semi-conducteur", "puces"] },
  { code: "26.20Z", label: "Fabrication d'ordinateurs et d'équipements périphériques", sectorCategoryId: "pharma" },
  { code: "26.30Z", label: "Fabrication d'équipements de communication", sectorCategoryId: "pharma" },
  { code: "27.11Z", label: "Fabrication de moteurs, génératrices et transformateurs électriques", sectorCategoryId: "pharma" },
  { code: "27.20Z", label: "Fabrication de piles et d'accumulateurs électriques", sectorCategoryId: "pharma", searchTerms: ["batterie"] },
  { code: "28.11Z", label: "Fabrication de moteurs et turbines", sectorCategoryId: "pharma" },
  { code: "28.21Z", label: "Fabrication de fours et brûleurs", sectorCategoryId: "pharma" },
  { code: "29.10Z", label: "Construction de véhicules automobiles", sectorCategoryId: "pharma", searchTerms: ["automobile", "constructeur auto"] },
  { code: "29.20Z", label: "Fabrication de carrosseries et remorques", sectorCategoryId: "pharma" },
  { code: "29.31Z", label: "Fabrication d'équipements électriques et électroniques automobiles", sectorCategoryId: "pharma" },
  { code: "30.11Z", label: "Construction de navires et de structures flottantes", sectorCategoryId: "pharma" },
  { code: "30.20Z", label: "Construction de locomotives et d'autre matériel ferroviaire roulant", sectorCategoryId: "pharma" },
  { code: "30.30Z", label: "Construction aéronautique et spatiale", sectorCategoryId: "pharma", searchTerms: ["aéronautique", "Airbus"] },

  // ── BTP (41-43) ───────────────────────────────────────────────────────────
  { code: "41.20A", label: "Construction de bâtiments résidentiels", sectorCategoryId: "btp" },
  { code: "41.20B", label: "Construction de bâtiments non résidentiels", sectorCategoryId: "btp" },
  { code: "42.11Z", label: "Construction de routes et autoroutes", sectorCategoryId: "btp" },
  { code: "43.21A", label: "Travaux d'installation électrique", sectorCategoryId: "btp", searchTerms: ["électricien"] },

  // ── Textile (13-15) ───────────────────────────────────────────────────────
  { code: "13.10Z", label: "Préparation de fibres textiles et filature", sectorCategoryId: "textile", searchTerms: ["filature", "coton"] },
  { code: "13.20Z", label: "Tissage", sectorCategoryId: "textile" },
  { code: "13.30Z", label: "Ennoblissement textile", sectorCategoryId: "textile", searchTerms: ["teinturerie", "blanchiment"] },
  { code: "13.91Z", label: "Fabrication d'étoffes à mailles", sectorCategoryId: "textile" },
  { code: "13.92Z", label: "Fabrication d'articles textiles", sectorCategoryId: "textile" },
  { code: "14.11Z", label: "Fabrication de vêtements en cuir", sectorCategoryId: "textile" },
  { code: "14.13Z", label: "Fabrication de vêtements de dessus", sectorCategoryId: "textile" },
  { code: "14.14Z", label: "Fabrication de vêtements de dessous", sectorCategoryId: "textile" },
  { code: "15.11Z", label: "Apprêt et tannage des cuirs", sectorCategoryId: "textile", searchTerms: ["tannerie"] },
  { code: "15.12Z", label: "Fabrication d'articles de voyage et de maroquinerie", sectorCategoryId: "textile" },

  // ── Imprimerie / Reproduction (18.xx) ─────────────────────────────────────
  { code: "18.11Z", label: "Imprimerie de journaux", sectorCategoryId: "pharma", searchTerms: ["imprimerie"] },
  { code: "18.12Z", label: "Autre imprimerie (labeur)", sectorCategoryId: "pharma" },
  { code: "18.13Z", label: "Activités de pré-presse", sectorCategoryId: "pharma" },

  // ── Produits métalliques (25.xx) ──────────────────────────────────────────
  { code: "25.11Z", label: "Fabrication de structures métalliques", sectorCategoryId: "metallurgie", searchTerms: ["charpente métallique"] },
  { code: "25.21Z", label: "Fabrication de radiateurs et de chaudières pour le chauffage central", sectorCategoryId: "metallurgie" },
  { code: "25.50A", label: "Forge, estampage, matriçage", sectorCategoryId: "metallurgie" },
  { code: "25.61Z", label: "Traitement et revêtement des métaux", sectorCategoryId: "metallurgie", searchTerms: ["galvanisation", "chromage"] },
  { code: "25.62A", label: "Décolletage", sectorCategoryId: "metallurgie" },
  { code: "25.62B", label: "Mécanique industrielle", sectorCategoryId: "metallurgie", searchTerms: ["usinage", "mécanique"] },

  // ── Raffinage / Cokéfaction (19.xx) ───────────────────────────────────────
  { code: "19.20Z", label: "Raffinage du pétrole", sectorCategoryId: "energie", searchTerms: ["raffinerie", "pétrole"] },

  // ── Eau / Déchets (36-39) ─────────────────────────────────────────────────
  { code: "36.00Z", label: "Captage, traitement et distribution d'eau", sectorCategoryId: "energie", searchTerms: ["eau potable", "usine de traitement"] },
  { code: "37.00Z", label: "Collecte et traitement des eaux usées", sectorCategoryId: "energie", searchTerms: ["station d'épuration", "assainissement"] },
  { code: "38.11Z", label: "Collecte des déchets non dangereux", sectorCategoryId: "energie", searchTerms: ["déchets", "recyclage"] },
  { code: "38.32Z", label: "Récupération de déchets triés", sectorCategoryId: "energie", searchTerms: ["recyclage", "valorisation"] },

  // ── Bois & Ameublement (16, 31) ───────────────────────────────────────────
  { code: "16.10A", label: "Sciage et rabotage du bois", sectorCategoryId: "bois", searchTerms: ["scierie"] },
  { code: "16.10B", label: "Imprégnation du bois", sectorCategoryId: "bois" },
  { code: "16.21Z", label: "Fabrication de placage et de panneaux de bois", sectorCategoryId: "bois", searchTerms: ["contreplaqué", "MDF"] },
  { code: "16.22Z", label: "Fabrication de parquets assemblés", sectorCategoryId: "bois" },
  { code: "16.23Z", label: "Fabrication de charpentes et d'autres menuiseries", sectorCategoryId: "bois" },
  { code: "16.24Z", label: "Fabrication d'emballages en bois", sectorCategoryId: "bois", searchTerms: ["palette"] },
  { code: "16.29Z", label: "Fabrication d'objets divers en bois", sectorCategoryId: "bois" },
  { code: "31.01Z", label: "Fabrication de meubles de bureau et de magasin", sectorCategoryId: "bois" },
  { code: "31.02Z", label: "Fabrication de meubles de cuisine", sectorCategoryId: "bois" },
  { code: "31.09A", label: "Fabrication de sièges d'ameublement d'intérieur", sectorCategoryId: "bois" },
  { code: "31.09B", label: "Fabrication d'autres meubles et industries connexes", sectorCategoryId: "bois" },

  // ── Santé & Enseignement (85-88) ──────────────────────────────────────────
  { code: "85.10Z", label: "Enseignement pré-primaire", sectorCategoryId: "sante-enseignement" },
  { code: "85.20Z", label: "Enseignement primaire", sectorCategoryId: "sante-enseignement" },
  { code: "85.31Z", label: "Enseignement secondaire général", sectorCategoryId: "sante-enseignement", searchTerms: ["collège", "lycée"] },
  { code: "85.42Z", label: "Enseignement supérieur", sectorCategoryId: "sante-enseignement", searchTerms: ["université", "école"] },
  { code: "86.10Z", label: "Activités hospitalières", sectorCategoryId: "sante-enseignement", searchTerms: ["hôpital", "clinique", "CHU"] },
  { code: "86.21Z", label: "Activité des médecins généralistes", sectorCategoryId: "sante-enseignement" },
  { code: "86.22A", label: "Activités de radiodiagnostic et de radiothérapie", sectorCategoryId: "sante-enseignement", searchTerms: ["imagerie médicale", "scanner"] },
  { code: "87.10A", label: "Hébergement médicalisé pour personnes âgées", sectorCategoryId: "sante-enseignement", searchTerms: ["EHPAD"] },
  { code: "88.10B", label: "Accueil ou accompagnement sans hébergement d'adultes handicapés", sectorCategoryId: "sante-enseignement" },

  // ── Hôtellerie & Restauration (55-56, 93) ─────────────────────────────────
  { code: "55.10Z", label: "Hôtels et hébergement similaire", sectorCategoryId: "hotellerie", searchTerms: ["hôtel"] },
  { code: "55.20Z", label: "Hébergement touristique et autre hébergement de courte durée", sectorCategoryId: "hotellerie" },
  { code: "56.10A", label: "Restauration traditionnelle", sectorCategoryId: "hotellerie", searchTerms: ["restaurant"] },
  { code: "56.29A", label: "Restauration collective sous contrat", sectorCategoryId: "hotellerie", searchTerms: ["cantine"] },
  { code: "93.11Z", label: "Gestion d'installations sportives", sectorCategoryId: "hotellerie", searchTerms: ["piscine", "stade"] },
  { code: "93.13Z", label: "Activités des centres de culture physique", sectorCategoryId: "hotellerie", searchTerms: ["salle de sport", "fitness"] },
  { code: "93.29Z", label: "Autres activités récréatives et de loisirs", sectorCategoryId: "hotellerie", searchTerms: ["parc attractions", "centre thermal"] },

  // ── Commerce (45-47) ──────────────────────────────────────────────────────
  { code: "45.20A", label: "Entretien et réparation de véhicules automobiles légers", sectorCategoryId: "commerce" },
  { code: "47.11D", label: "Hypermarchés (> 2 500 m²)", sectorCategoryId: "commerce", searchTerms: ["hyper", "grande surface"] },
  { code: "47.11E", label: "Supermarchés (400-2 500 m²)", sectorCategoryId: "commerce", searchTerms: ["super"] },
  { code: "47.11F", label: "Commerce de détail de produits surgelés", sectorCategoryId: "commerce", searchTerms: ["surgelé"] },
  { code: "47.30Z", label: "Commerce de détail de carburants en magasin spécialisé (station-service, IRVE)", sectorCategoryId: "commerce", searchTerms: ["station-service", "borne recharge"] },
  { code: "47.73Z", label: "Commerce de détail de produits pharmaceutiques en magasin spécialisé", sectorCategoryId: "commerce", searchTerms: ["pharmacie"] },

  // ── Mobilité / Location (77.xx) ───────────────────────────────────────────
  { code: "77.11A", label: "Location de courte durée de voitures et véhicules automobiles légers", sectorCategoryId: "commerce", searchTerms: ["location voiture", "autopartage"] },
  { code: "77.11B", label: "Location de longue durée de voitures et véhicules automobiles légers", sectorCategoryId: "commerce", searchTerms: ["LLD"] },
];
