# Configuration du Backend (Syntaxe corrigée pour Decap CMS v3)
backend:
  name: github
  repo: youhaff-dev/leguidemarrakech
  branch: main

# Indispensable pour travailler sur ta machine avec le proxy local (npx decap-server)
local_backend: true

# Dossier d'images local temporaire
media_folder: "frontend/src/assets/images/uploads"
public_folder: "/assets/images/uploads"

collections:
  
  # =========================================================================
  # 1. ACTIVITIES (Vie nocturne, Sorties...)
  # =========================================================================
  - name: "activities"
    label: "🕺 Activités & Sorties"
    folder: "data/activities"
    create: true
    slug: "{{fields.activityId}}"
    format: "json"
    fields:
      - { label: "Activity id", name: "activityId", widget: "string" }
      
      - label: "Category id"
        name: "categoryId"
        widget: "select"
        options:
          - { label: "Nightlife & Bars", value: "nightlife-bars" }
          - { label: "Casinos", value: "casinos" }
          - { label: "Activities & Tours", value: "tours" }
          - { label: "Cultural", value: "cultural" }

      # 🇫🇷 Version Française
      - label: "🇫🇷 Version Française"
        name: "fr"
        widget: "object"
        fields:
          - { label: "Name", name: "name", widget: "string" }
          - { label: "Description", name: "description", widget: "text" }
          - label: "Details"
            name: "details"
            widget: "object"
            fields:
              - { label: "Address", name: "address", widget: "string", required: false }
              - { label: "Contact", name: "contact", widget: "string", required: false }
              - { label: "Website", name: "website", widget: "string", required: false }
              - { label: "Hours", name: "hours", widget: "string", required: false }
              - { label: "Price", name: "price", widget: "string", required: false }
              - { label: "Ambiance", name: "ambiance", widget: "string", required: false }
              - { label: "Games", name: "games", widget: "string", required: false }
              - { label: "Duration", name: "duration", widget: "string", required: false }
              - { label: "Services", name: "services", widget: "string", required: false }
              - { label: "Note", name: "note", widget: "string", required: false }
          - { label: "Tags", name: "tags", widget: "list", field: { name: "tag", widget: "string" }, required: false }

      # 🇬🇧 English Version
      - label: "🇬🇧 English Version"
        name: "en"
        widget: "object"
        fields:
          - { label: "Name", name: "name", widget: "string" }
          - { label: "Description", name: "description", widget: "text" }
          - label: "Details"
            name: "details"
            widget: "object"
            fields:
              - { label: "Address", name: "address", widget: "string", required: false }
              - { label: "Contact", name: "contact", widget: "string", required: false }
              - { label: "Website", name: "website", widget: "string", required: false }
              - { label: "Hours", name: "hours", widget: "string", required: false }
              - { label: "Price", name: "price", widget: "string", required: false }
              - { label: "Ambiance", name: "ambiance", widget: "string", required: false }
              - { label: "Games", name: "games", widget: "string", required: false }
              - { label: "Duration", name: "duration", widget: "string", required: false }
              - { label: "Services", name: "services", widget: "string", required: false }
              - { label: "Note", name: "note", widget: "string", required: false }
          - { label: "Tags", name: "tags", widget: "list", field: { name: "tag", widget: "string" }, required: false }

  # =========================================================================
  # 2. ARTS & CULTURE (Musées, Galeries...)
  # =========================================================================
  - name: "arts"
    label: "🎨 Arts & Culture"
    folder: "data/arts"
    create: true
    slug: "{{fields.artId}}"
    format: "json"
    fields:
      # L'identifiant doit correspondre au 'id' de ton fichier de structure (ex: musee-ysl)
      - { label: "ID Unique (artId)", name: "artId", widget: "string" }
      
      # 🎯 LE LIEN AVEC LA CATÉGORIE : Correspond aux ID de tes ART_CATEGORIES
      - label: "Catégorie"
        name: "categoryId"
        widget: "select"
        options:
          - { label: "Museums & Galleries", value: "museums-galleries" }

      - label: "🇫🇷 Version Française"
        name: "fr"
        widget: "object"
        fields:
          - { label: "Nom court", name: "name", widget: "string" }
          - { label: "Nom Long", name: "longName", widget: "string" }
          - { label: "Description", name: "description", widget: "text" }
          - { label: "Le Saviez-vous ?", name: "didYouKnow", widget: "text", required: false }
          - { label: "Pourquoi visiter ?", name: "whyVisit", widget: "list", field: { name: "item", widget: "string" } }
          - { label: "À voir absolument", name: "mustSee", widget: "list", field: { name: "item", widget: "string" } }
          - { label: "Conseils Pratiques", name: "practicalTips", widget: "list", field: { name: "item", widget: "string" } }
          - label: "Détails"
            name: "details"
            widget: "object"
            fields:
              - { label: "Adresse", name: "address", widget: "string" }
              - { label: "Contact", name: "contact", widget: "string", required: false }
              - { label: "E-mail", name: "email", widget: "string", required: false }
              - { label: "Site Web", name: "website", widget: "string", required: false }
              - { label: "Horaires", name: "hours", widget: "string" }
              - { label: "Prix", name: "price", widget: "string" }
              - { label: "Durée", name: "duration", widget: "string", required: false }
              - { label: "Transport", name: "transport", widget: "string", required: false }
              - { label: "Note", name: "note", widget: "string", required: false }
          - { label: "Tags", name: "tags", widget: "list", field: { name: "tag", widget: "string" } }
          
      - label: "🇬🇧 English Version"
        name: "en"
        widget: "object"
        fields:
          - { label: "Short Name", name: "name", widget: "string" }
          - { label: "Long Name", name: "longName", widget: "string" }
          - { label: "Description", name: "description", widget: "text" }
          - { label: "Did You Know?", name: "didYouKnow", widget: "text", required: false }
          - { label: "Why Visit?", name: "whyVisit", widget: "list", field: { name: "item", widget: "string" } }
          - { label: "Must See", name: "mustSee", widget: "list", field: { name: "item", widget: "string" } }
          - { label: "Practical Tips", name: "practicalTips", widget: "list", field: { name: "item", widget: "string" } }
          - label: "Details"
            name: "details"
            widget: "object"
            fields:
              - { label: "Address", name: "address", widget: "string" }
              - { label: "Contact", name: "contact", widget: "string", required: false }
              - { label: "Email", name: "email", widget: "string", required: false }
              - { label: "Website", name: "website", widget: "string", required: false }
              - { label: "Hours", name: "hours", widget: "string" }
              - { label: "Price", name: "price", widget: "string" }
              - { label: "Duration", name: "duration", widget: "string", required: false }
              - { label: "Transport", name: "transport", widget: "string", required: false }
              - { label: "Note", name: "note", widget: "string", required: false }
          - { label: "Tags", name: "tags", widget: "list", field: { name: "tag", widget: "string" } }

  # =========================================================================
  # 3. ATTRACTIONS (Monuments, Parcs, Places...)
  # =========================================================================
  - name: "attractions"
    label: "🏛️ Attractions"
    folder: "data/attractions"
    create: true
    slug: "{{fields.attractionId}}"
    format: "json"
    fields:
      - { label: "Attraction id", name: "attractionId", widget: "string" }
      
      - label: "Category id"
        name: "categoryId"
        widget: "select"
        options:
          - { label: "Monuments & Heritage", value: "monuments-heritage" }
          - { label: "Gardens & Parks", value: "gardens-parks" }
          - { label: "Markets & Shopping", value: "markets-shopping" }

      # 🇫🇷 Version Française
      - label: "🇫🇷 Version Française"
        name: "fr"
        widget: "object"
        fields:
          - { label: "Name", name: "name", widget: "string" }
          - { label: "Long name", name: "longName", widget: "string", required: false }
          - { label: "Description", name: "description", widget: "text" }
          - { label: "Did you know", name: "didYouKnow", widget: "text", required: false }
          - { label: "Why visit", name: "whyVisit", widget: "list", field: { name: "item", widget: "string" }, required: false }
          - { label: "Must see", name: "mustSee", widget: "list", field: { name: "item", widget: "string" }, required: false }
          - { label: "Practical tips", name: "practicalTips", widget: "list", field: { name: "item", widget: "string" }, required: false }
          - label: "Details"
            name: "details"
            widget: "object"
            fields:
              - { label: "Address", name: "address", widget: "string", required: false }
              - { label: "Contact", name: "contact", widget: "string", required: false }
              - { label: "Website", name: "website", widget: "string", required: false }
              - { label: "Transport", name: "transport", widget: "string", required: false }
              - { label: "Hours", name: "hours", widget: "string", required: false }
              - { label: "Price", name: "price", widget: "string", required: false }
              - { label: "Duration", name: "duration", widget: "string", required: false }
              - { label: "Note", name: "note", widget: "text", required: false }
          - { label: "Tags", name: "tags", widget: "list", field: { name: "tag", widget: "string" }, required: false }
          
      # 🇬🇧 English Version
      - label: "🇬🇧 English Version"
        name: "en"
        widget: "object"
        fields:
          - { label: "Name", name: "name", widget: "string" }
          - { label: "Long name", name: "longName", widget: "string", required: false }
          - { label: "Description", name: "description", widget: "text" }
          - { label: "Did you know", name: "didYouKnow", widget: "text", required: false }
          - { label: "Why visit", name: "whyVisit", widget: "list", field: { name: "item", widget: "string" }, required: false }
          - { label: "Must see", name: "mustSee", widget: "list", field: { name: "item", widget: "string" }, required: false }
          - { label: "Practical tips", name: "practicalTips", widget: "list", field: { name: "item", widget: "string" }, required: false }
          - label: "Details"
            name: "details"
            widget: "object"
            fields:
              - { label: "Address", name: "address", widget: "string", required: false }
              - { label: "Contact", name: "contact", widget: "string", required: false }
              - { label: "Website", name: "website", widget: "string", required: false }
              - { label: "Transport", name: "transport", widget: "string", required: false }
              - { label: "Hours", name: "hours", widget: "string", required: false }
              - { label: "Price", name: "price", widget: "string", required: false }
              - { label: "Duration", name: "duration", widget: "string", required: false }
              - { label: "Note", name: "note", widget: "text", required: false }
          - { label: "Tags", name: "tags", widget: "list", field: { name: "tag", widget: "string" }, required: false }

  # =========================================================================
  # 4. EVENTS (Agenda de la ville avec filtres)
  # =========================================================================
  - name: "events"
    label: "📅 Événements & Agenda"
    folder: "data/events"
    create: true
    slug: "{{fields.eventId}}"
    format: "json"
    fields:
      # 🔑 Données structurelles globales (communes aux deux langues)
      - { label: "ID Unique (eventId)", name: "eventId", widget: "string" }
      - label: "Type d'événement (Filtre)"
        name: "type"
        widget: "select"
        options: ["CULTURE", "FESTIVAL", "SPORT", "MUSIQUE", "FOOD", "LOISIRS", "PARENTALITÉ", "SHOPPING"]
      - { label: "Date de Début", name: "startDate", widget: "datetime", format: "YYYY-MM-DD", date_format: "YYYY-MM-DD", time_format: false }
      - { label: "Date de Fin", name: "endDate", widget: "datetime", format: "YYYY-MM-DD", date_format: "YYYY-MM-DD", time_format: false }
      - { label: "Image d'illustration", name: "imageUrl", widget: "image" }

      # 🇫🇷 Contenu Traduit - Français
      - label: "🇫🇷 Version Française"
        name: "fr"
        widget: "object"
        fields:
          - { label: "Nom de l'événement", name: "name", widget: "string" }
          - { label: "Lieu précis", name: "location", widget: "string" }
          - { label: "Description", name: "description", widget: "text" }
          - label: "Détails"
            name: "details"
            widget: "object"
            fields:
              - { label: "Prix", name: "price", widget: "string" }
              - { label: "Organisateur", name: "organizer", widget: "string" }
              - { label: "Site Web", name: "website", widget: "string" }
              - { label: "Capacité", name: "capacity", widget: "string", required: false }
          - { label: "Tags", name: "tags", widget: "list", field: { name: "tag", widget: "string" } }

      # 🇬🇧 Contenu Traduit - Anglais
      - label: "🇬🇧 English Version"
        name: "en"
        widget: "object"
        fields:
          - { label: "Event Name", name: "name", widget: "string" }
          - { label: "Location", name: "location", widget: "string" }
          - { label: "Description", name: "description", widget: "text" }
          - label: "Details"
            name: "details"
            widget: "object"
            fields:
              - { label: "Price", name: "price", widget: "string" }
              - { label: "Organizer", name: "organizer", widget: "string" }
              - { label: "Website", name: "website", widget: "string" }
              - { label: "Capacity", name: "capacity", widget: "string", required: false }
          - { label: "Tags", name: "tags", widget: "list", field: { name: "tag", widget: "string" } }

  # =========================================================================
  # 5. HOTELS (Riads, Kasbah...)
  # =========================================================================
  - name: "hotels"
    label: "🏨 Hôtels & Riads"
    folder: "data/hotels"
    create: true
    slug: "{{fields.hotelId}}"
    format: "json"
    fields:
      # L'identifiant doit correspondre au 'id' de ton fichier de structure (ex: les-jardins-de-la-medina)
      - { label: "ID Unique (hotelId)", name: "hotelId", widget: "string" }
     
      # 🎯 LE LIEN AVEC LA CATÉGORIE : Correspond aux ID de tes HOTEL_CATEGORIES
      - label: "Catégorie"
        name: "categoryId"
        widget: "select"
        options:
          - { label: "Luxe & Prestige", value: "luxe-prestige" }
          - { label: "Riads Authentiques de la Médina", value: "riads-authentiques-medina" }
          - { label: "Hôtels de Charme & Bon Rapport Qualité-Prix", value: "hotels-charme-rapport-qualite" }
          - { label: "Évasion Campagne & Design Urbain", value: "evasion-campagne-design" }

      - label: "🇫🇷 Version Française"
        name: "fr"
        widget: "object"
        fields:
          - { label: "Nom", name: "name", widget: "string" }
          - { label: "Description", name: "description", widget: "text" }
          - label: "Détails"
            name: "details"
            widget: "object"
            fields:
              - { label: "Adresse", name: "address", widget: "string", required: false }
              - { label: "Contact", name: "contact", widget: "string", required: false }
              - { label: "Site Web", name: "website", widget: "string", required: false }
              - { label: "Prix", name: "price", widget: "string", required: false }
              - { label: "Capacité", name: "capacity", widget: "string", required: false }
              - { label: "Services", name: "services", widget: "string", required: false }
          - { label: "Tags", name: "tags", widget: "list", field: { name: "tag", widget: "string" } }
         
      - label: "🇬🇧 English Version"
        name: "en"
        widget: "object"
        fields:
          - { label: "Name", name: "name", widget: "string" }
          - { label: "Description", name: "description", widget: "text" }
          - label: "Details"
            name: "details"
            widget: "object"
            fields:
              - { label: "Address", name: "address", widget: "string", required: false }
              - { label: "Contact", name: "contact", widget: "string", required: false }
              - { label: "Website", name: "website", widget: "string", required: false }
              - { label: "Price", name: "price", widget: "string", required: false }
              - { label: "Capacity", name: "capacity", widget: "string", required: false }
              - { label: "Services", name: "services", widget: "string", required: false }
          - { label: "Tags", name: "tags", widget: "list", field: { name: "tag", widget: "string" } }

  # =========================================================================
  # 6. INFOS (Articles pratiques, Vivre l'authentique...)
  # =========================================================================
  - name: "infos"
    label: "ℹ️ Infos Pratiques"
    folder: "data/infos"
    create: true
    slug: "{{fields.infoId}}"
    format: "json"
    fields:
      # 🔑 L'identifiant relationnel unique pour l'URL et la structure
      - { label: "ID Unique (infoId)", name: "infoId", widget: "string" }

      # 🇫🇷 Version Française
      - label: "🇫🇷 Version Française"
        name: "fr"
        widget: "object"
        fields:
          - { label: "Titre de l'article", name: "name", widget: "string" }
          - { label: "Corps de l'article (HTML)", name: "fullText", widget: "text" }
          - { label: "Image Bureau", name: "imageDesktop", widget: "image" }
          - { label: "Image Mobile", name: "imageMobile", widget: "image" }
          - { label: "Badge Principal", name: "tag", widget: "string" }
          - { label: "Tags secondaires", name: "tags", widget: "list", field: { name: "tag", widget: "string" } }

      # 🇬🇧 English Version
      - label: "🇬🇧 English Version"
        name: "en"
        widget: "object"
        fields:
          - { label: "Article Title", name: "name", widget: "string" }
          - { label: "Article Body (HTML)", name: "fullText", widget: "text" }
          - { label: "Desktop Image", name: "imageDesktop", widget: "image" }
          - { label: "Mobile Image", name: "imageMobile", widget: "image" }
          - { label: "Main Badge", name: "tag", widget: "string" }
          - { label: "Secondary Tags", name: "tags", widget: "list", field: { name: "tag", widget: "string" } }

  # =========================================================================
  # 7. MAGAZINE (Articles de Blog, Actus...)
  # =========================================================================
  - name: "magazine"
    label: "📰 Magazine & Blog"
    folder: "data/magazine"
    create: true
    slug: "{{fields.articleId}}"
    format: "json"
    fields:
      # 🔑 Identifiant unique
      - { label: "ID Unique (articleId)", name: "articleId", widget: "string" }
      
      # 🎯 GESTION DES SECTIONS DE LA PAGE : Détermine où l'article s'affiche
      - label: "Mise en avant (Section)"
        name: "layoutType"
        widget: "select"
        default: "latest"
        options:
          - { label: "⭐ À la une (Star / Top article)", value: "star" }
          - { label: "📐 Sélection de la rédaction (Grid / Featured)", value: "featured" }
          - { label: "⏱️ Flux standard (Latest)", value: "latest" }

      # 📅 Date de publication globale (génère un format ISO propre, à formater côté front)
      - { label: "Date de publication", name: "date", widget: "datetime", format: "YYYY-MM-DD", date_format: "YYYY-MM-DD", time_format: false }

      # 🖼️ Médias globaux (sortis à la racine pour éviter la double saisie)
      - { label: "Image Bureau", name: "imageDesktop", widget: "image" }
      - { label: "Image Mobile", name: "imageMobile", widget: "image" }

      # 🇫🇷 Contenu Traduit - Français
      - label: "🇫🇷 Version Française"
        name: "fr"
        widget: "object"
        fields:
          - { label: "Titre", name: "name", widget: "string" }
          - { label: "Accroche / Teaser", name: "teaser", widget: "text" }
          - { label: "Texte complet (HTML)", name: "fullText", widget: "text" }
          - { label: "Tags secondaires", name: "tags", widget: "list", field: { name: "tag", widget: "string" } }

      # 🇬🇧 Contenu Traduit - Anglais
      - label: "🇬🇧 English Version"
        name: "en"
        widget: "object"
        fields:
          - { label: "Title", name: "name", widget: "string" }
          - { label: "Teaser / Excerpt", name: "teaser", widget: "text" }
          - { label: "Full Text (HTML)", name: "fullText", widget: "text" }
          - { label: "Main Badge", name: "tag", widget: "string" }
          - { label: "Secondary Tags", name: "tags", widget: "list", field: { name: "tag", widget: "string" } }

  # =========================================================================
  # 8. RESTAURANTS
  # =========================================================================
  - name: "restaurants"
    label: "🍴 Restaurants & Cafés"
    folder: "data/restaurants"
    create: true
    slug: "{{fields.restaurantId}}"
    format: "json"
    fields:
      # 🔑 L'identifiant doit correspondre au 'id' de ta structure (ex: dar-cherifa)
      - { label: "ID Unique (restaurantId)", name: "restaurantId", widget: "string" }
      
      # 🎯 LE LIEN AVEC LA CATÉGORIE : Mappe les IDs de ton fichier RESTAURANT_CATEGORIES
      - label: "Catégorie"
        name: "categoryId"
        widget: "select"
        options:
          - { label: "Rooftops & Terrasses avec Vue", value: "rooftops-terrasses-vue" }
          - { label: "Riads & Cadres Historiques", value: "riads-cadres-historiques" }
          - { label: "Jardins & Oases de Paix", value: "jardins-oases-paix" }
          - { label: "Gastronomique & Prestige", value: "gastronomique-prestige" }
          - { label: "Adresses Tendance & Branchées", value: "adresses-tendance-branchees" }
          - { label: "Tables Authentiques & de Quartier", value: "tables-authentiques-quartier" }
          - { label: "Cafés, Salons de Thé & Gourmandises", value: "cafes-salons-the-gourmandises" }

      # 🇫🇷 Contenu Traduit - Français
      - label: "🇫🇷 Version Française"
        name: "fr"
        widget: "object"
        fields:
          - { label: "Nom du Restaurant", name: "name", widget: "string" }
          - { label: "Description", name: "description", widget: "text" }
          - label: "Détails"
            name: "details"
            widget: "object"
            fields:
              - { label: "Adresse", name: "address", widget: "string" }
              - { label: "Contact", name: "contact", widget: "string" }
              - { label: "Site Web", name: "website", widget: "string" }
              - { label: "Horaires", name: "hours", widget: "string" }
              - { label: "Gamme de prix", name: "price", widget: "string" }
              - { label: "Note / Spécificité", name: "note", widget: "string" }
          - { label: "Tags", name: "tags", widget: "list", field: { name: "tag", widget: "string" } }

      # 🇬🇧 Contenu Traduit - Anglais
      - label: "🇬🇧 English Version"
        name: "en"
        widget: "object"
        fields:
          - { label: "Restaurant Name", name: "name", widget: "string" }
          - { label: "Description", name: "description", widget: "text" }
          - label: "Details"
            name: "details"
            widget: "object"
            fields:
              - { label: "Address", name: "address", widget: "string" }
              - { label: "Contact", name: "contact", widget: "string" }
              - { label: "Website", name: "website", widget: "string" }
              - { label: "Hours", name: "hours", widget: "string" }
              - { label: "Price Range", name: "price", widget: "string" }
              - { label: "Note / Specificity", name: "note", widget: "string" }
          - { label: "Tags", name: "tags", widget: "list", field: { name: "tag", widget: "string" } }

  # =========================================================================
  # 9. ROADTRIPS (Vallée de l'Ourika, excursions...)
  # =========================================================================
  - name: "roadtrips"
    label: "🚗 Roadtrips & Excursions"
    folder: "data/roadtrips"
    create: true
    slug: "{{fields.roadtripId}}"
    format: "json"
    fields:
      # 🔑 L'identifiant unique doit mapper le 'id' de ta structure TS (ex: vallee-ourika)
      - { label: "ID Unique (roadtripId)", name: "roadtripId", widget: "string" }
      
      # 🎯 LE LIEN AVEC LA CATÉGORIE : Correspond aux clés de ton ROADTRIP_CATEGORIES
      - label: "Catégorie d'excursion"
        name: "categoryId"
        widget: "select"
        options:
          - { label: "Vallées Vertes de l'Atlas", value: "vallees-vertes-atlas" }
          - { label: "Villages & Culture Berbère", value: "villages-proximite-culture" }
          - { label: "Patrimoine & Grandes Aventures", value: "patrimoine-aventure-montagne" }

      # 🇫🇷 Version Française
      - label: "🇫🇷 Version Française"
        name: "fr"
        widget: "object"
        fields:
          - { label: "Titre de l'excursion", name: "name", widget: "string" }
          - { label: "Description intro", name: "description", widget: "text" }
          - { label: "Pourquoi y aller ?", name: "whyVisit", widget: "text" }
          # 📜 Liste simple de chaînes de caractères pour les points incontournables
          - label: "Les incontournables (Points clés)"
            name: "mustSee"
            widget: "list"
            field: { label: "Point clé", name: "item", widget: "string" }
          - label: "Détails"
            name: "details"
            widget: "object"
            fields:
              - { label: "Points forts", name: "highlights", widget: "text" }
              - { label: "Logistique / Transport", name: "logistics", widget: "text" }
              - { label: "Expérience sur place", name: "experience", widget: "text" }
              - { label: "Conseil ultime", name: "tip", widget: "text" }
          - { label: "Tags", name: "tags", widget: "list", field: { name: "tag", widget: "string" } }

      # 🇬🇧 English Version
      - label: "🇬🇧 English Version"
        name: "en"
        widget: "object"
        fields:
          - { label: "Excursion Title", name: "name", widget: "string" }
          - { label: "Intro Description", name: "description", widget: "text" }
          - { label: "Why Visit?", name: "whyVisit", widget: "text" }
          # 📜 Liste équivalente pour la version anglaise
          - label: "Must-See (Key Points)"
            name: "mustSee"
            widget: "list"
            field: { label: "Key point", name: "item", widget: "string" }
          - label: "Details"
            name: "details"
            widget: "object"
            fields:
              - { label: "Highlights", name: "highlights", widget: "text" }
              - { label: "Logistics / Transport", name: "logistics", widget: "text" }
              - { label: "On-site Experience", name: "experience", widget: "text" }
              - { label: "Ultimate Tip", name: "tip", widget: "text" }
          - { label: "Tags", name: "tags", widget: "list", field: { name: "tag", widget: "string" } }

  # =========================================================================
  # 10. SHOPPING (Concept stores, Souks...)
  # =========================================================================
  - name: "shopping"
    label: "🛍️ Shopping & Boutiques"
    folder: "data/shopping"
    create: true
    slug: "{{fields.shoppingId}}"
    format: "json"
    fields:
      # 🔑 Identifiant unique mappant l'id de ta structure TS (ex: 33-rue-majorelle)
      - { label: "ID Unique (shoppingId)", name: "shoppingId", widget: "string" }
      
      # 🎯 LE LIEN AVEC LA CATÉGORIE : Correspond aux clés de ton SHOPPING_CATEGORIES
      - label: "Catégorie de Shopping"
        name: "categoryId"
        widget: "select"
        options:
          - { label: "Concept Stores & Créateurs", value: "concept-stores" }
          - { label: "Mode & Accessoires", value: "fashion-accessories" }
          - { label: "Artisanat & Décoration", value: "craft-decoration" }
          - { label: "Beauté & Bien-être", value: "beauty-wellness" }
          - { label: "Marchés & Quartiers Shopping", value: "markets-districts" }

      # 🇫🇷 Version Française
      - label: "🇫🇷 Version Française"
        name: "fr"
        widget: "object"
        fields:
          - { label: "Nom du magasin", name: "name", widget: "string" }
          - { label: "Description", name: "description", widget: "text" }
          - label: "Détails"
            name: "details"
            widget: "object"
            fields:
              - { label: "Adresse", name: "address", widget: "string" }
              - { label: "Contact", name: "contact", widget: "string" }
              - { label: "Site Web", name: "website", widget: "string" }
              - { label: "Horaires", name: "hours", widget: "string" }
          - { label: "Tags", name: "tags", widget: "list", field: { name: "tag", widget: "string" } }

      # 🇬🇧 English Version
      - label: "🇬🇧 English Version"
        name: "en"
        widget: "object"
        fields:
          - { label: "Shop Name", name: "name", widget: "string" }
          - { label: "Description", name: "description", widget: "text" }
          - label: "Details"
            name: "details"
            widget: "object"
            fields:
              - { label: "Address", name: "address", widget: "string" }
              - { label: "Contact", name: "contact", widget: "string" }
              - { label: "Website", name: "website", widget: "string" }
              - { label: "Hours", name: "hours", widget: "string" }
          - { label: "Tags", name: "tags", widget: "list", field: { name: "tag", widget: "string" } }

  # =========================================================================
  # 11. SPAS (Hammams, Bien-être...)
  # =========================================================================
  - name: "spas"
    label: "💆 Hammams & Spas"
    folder: "data/spas"
    create: true
    slug: "{{fields.spaId}}"
    format: "json"
    fields:
      # 🔑 Identifiant unique mappant l'id de ta structure TS (ex: hammam-mouassine)
      - { label: "ID Unique (spaId)", name: "spaId", widget: "string" }
      
      # 🎯 LE LIEN AVEC LA CATÉGORIE : Prêt pour l'évolution de ta structure
      - label: "Catégorie de Bien-être"
        name: "categoryId"
        widget: "select"
        options:
          - { label: "Hammams & Spas", value: "hammams-spas" }

      # 🇫🇷 Version Française
      - label: "🇫🇷 Version Française"
        name: "fr"
        widget: "object"
        fields:
          - { label: "Nom du Spa", name: "name", widget: "string" }
          - { label: "Description", name: "description", widget: "text" }
          - label: "Détails"
            name: "details"
            widget: "object"
            fields:
              - { label: "Adresse", name: "address", widget: "string" }
              - { label: "Contact", name: "contact", widget: "string" }
              - { label: "Site Web", name: "website", widget: "string" }
              - { label: "Horaires", name: "hours", widget: "string" }
              - { label: "Tarifs", name: "price", widget: "string" }
              - { label: "Prestations", name: "services", widget: "string" }
              - { label: "Note d'organisation", name: "note", widget: "string" }
          - { label: "Tags", name: "tags", widget: "list", field: { name: "tag", widget: "string" } }

      # 🇬🇧 English Version
      - label: "🇬🇧 English Version"
        name: "en"
        widget: "object"
        fields:
          - { label: "Spa Name", name: "name", widget: "string" }
          - { label: "Description", name: "description", widget: "text" }
          - label: "Details"
            name: "details"
            widget: "object"
            fields:
              - { label: "Address", name: "address", widget: "string" }
              - { label: "Contact", name: "contact", widget: "string" }
              - { label: "Website", name: "website", widget: "string" }
              - { label: "Hours", name: "hours", widget: "string" }
              - { label: "Prices", name: "price", widget: "string" }
              - { label: "Services", name: "services", widget: "string" }
              - { label: "Organization Note", name: "note", widget: "string" }
          - { label: "Tags", name: "tags", widget: "list", field: { name: "tag", widget: "string" } }