backend:
  name: gitea
  repo: front/kimoun.com
  branch: main
  base_url: https://git.kimoun.com
  api_root: https://git.kimoun.com/api/v1
  app_id: 87f50650-08af-4dbc-9628-31453ad70cba

media_folder: static/uploads
public_folder: /uploads

collections:
  # ========== BLOG FR ==========
  - name: blog_fr
    label: "📝 Blog (Français)"
    folder: content/blog
    create: true
    identifier_field: slug
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    preview_path: "/blog/{{slug}}/"
    fields:
      - label: "Clé de traduction"
        name: translationKey
        widget: string
        hint: "Ex: blog-001, blog-gbp-guide"
        required: true

      - label: "Titre (SEO + H1)"
        name: title
        widget: string
        required: true

      - label: "Titre du lien (court)"
        name: linkTitle
        widget: string
        hint: "Affiché dans les menus si différent du titre"
        required: false

      - label: "Date de publication"
        name: date
        widget: datetime
        date_format: "YYYY-MM-DD"
        time_format: false
        required: true

      - label: "Dernière modification"
        name: lastmod
        widget: datetime
        date_format: "YYYY-MM-DD"
        time_format: false
        required: false

      - label: "Slug (URL)"
        name: slug
        widget: string
        hint: "Autogénéré, éditable si besoin"
        required: true

      - label: "Description (SEO)"
        name: description
        widget: text
        hint: "Affichée dans les résultats de recherche"
        required: true

      - label: "Catégorie"
        name: category
        widget: select
        options: ["Analyses", "Bonnes pratiques", "Ressources", "Guides"]
        required: true

      - label: "Brouillon"
        name: draft
        widget: boolean
        default: false

      - label: "Image principale"
        name: image
        widget: image
        required: false

      - label: "FAQ (front matter)"
        name: faqs
        widget: list
        fields:
          - label: "Question"
            name: question
            widget: string
          - label: "Réponse"
            name: answer
            widget: text
        required: false

      - label: "Contenu"
        name: body
        widget: markdown
        required: true

  # ========== BLOG EN ==========
  - name: blog_en
    label: "📝 Blog (English)"
    folder: content/en/blog
    create: true
    identifier_field: slug
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}"
    preview_path: "/en/blog/{{slug}}/"
    fields:
      - label: "Translation key"
        name: translationKey
        widget: string
        hint: "Must match the French article (e.g., blog-001)"
        required: true

      - label: "Title (SEO + H1)"
        name: title
        widget: string
        required: true

      - label: "Link title (short)"
        name: linkTitle
        widget: string
        hint: "Shown in menus if different from title"
        required: false

      - label: "Publication date"
        name: date
        widget: datetime
        date_format: "YYYY-MM-DD"
        time_format: false
        required: true

      - label: "Last modified"
        name: lastmod
        widget: datetime
        date_format: "YYYY-MM-DD"
        time_format: false
        required: false

      - label: "Slug (URL)"
        name: slug
        widget: string
        required: true

      - label: "Description (SEO)"
        name: description
        widget: text
        hint: "Shown in search results"
        required: true

      - label: "Category"
        name: category
        widget: select
        options: ["Analysis", "Best practices", "Resources", "Guides"]
        required: true

      - label: "Draft"
        name: draft
        widget: boolean
        default: false

      - label: "Main image"
        name: image
        widget: image
        required: false

      - label: "FAQ (front matter)"
        name: faqs
        widget: list
        fields:
          - label: "Question"
            name: question
            widget: string
          - label: "Answer"
            name: answer
            widget: text
        required: false

      - label: "Content"
        name: body
        widget: markdown
        required: true

  # ========== LANDING PAGES FR ==========
  - name: landing_fr
    label: "🎯 Landing Pages (Français)"
    create: false
    identifier_field: slug
    files:
      - name: "gbp"
        label: "Google Business Profile Guadeloupe"
        file: "content/landing/google-business-profile-guadeloupe.md"
        fields:
          - label: "Clé de traduction"
            name: translationKey
            widget: string
            required: true
          - label: "Titre (SEO + H1)"
            name: title
            widget: string
            required: true
          - label: "Description (SEO)"
            name: description
            widget: text
            required: true
          - label: "Objectif de conversion"
            name: goal
            widget: string
            hint: "Description de l'action attendue"
            required: false
          - label: "Contenu Markdown"
            name: body
            widget: markdown
            required: false

      - name: "creation-site"
        label: "Création de site web Guadeloupe"
        file: "content/landing/creation-site-web-guadeloupe.md"
        fields:
          - label: "Clé de traduction"
            name: translationKey
            widget: string
            required: true
          - label: "Titre (SEO + H1)"
            name: title
            widget: string
            required: true
          - label: "Description (SEO)"
            name: description
            widget: text
            required: true
          - label: "Objectif de conversion"
            name: goal
            widget: string
            required: false
          - label: "Contenu Markdown"
            name: body
            widget: markdown
            required: false

      - name: "ia-automatisation"
        label: "IA & automatisation marketing Guadeloupe"
        file: "content/landing/ia-automatisation-marketing-guadeloupe.md"
        fields:
          - label: "Clé de traduction"
            name: translationKey
            widget: string
            required: true
          - label: "Titre (SEO + H1)"
            name: title
            widget: string
            required: true
          - label: "Description (SEO)"
            name: description
            widget: text
            required: true
          - label: "Objectif de conversion"
            name: goal
            widget: string
            required: false
          - label: "Contenu Markdown"
            name: body
            widget: markdown
            required: false

      - name: "imprimerie"
        label: "Impression numérique Guadeloupe"
        file: "content/landing/imprimerie-numerique-guadeloupe.md"
        fields:
          - label: "Clé de traduction"
            name: translationKey
            widget: string
            required: true
          - label: "Titre (SEO + H1)"
            name: title
            widget: string
            required: true
          - label: "Description (SEO)"
            name: description
            widget: text
            required: true
          - label: "Objectif de conversion"
            name: goal
            widget: string
            required: false
          - label: "Contenu Markdown"
            name: body
            widget: markdown
            required: false

      - name: "seo-geo"
        label: "SEO local Guadeloupe"
        file: "content/landing/seo-geo-guadeloupe.md"
        fields:
          - label: "Clé de traduction"
            name: translationKey
            widget: string
            required: true
          - label: "Titre (SEO + H1)"
            name: title
            widget: string
            required: true
          - label: "Description (SEO)"
            name: description
            widget: text
            required: true
          - label: "Objectif de conversion"
            name: goal
            widget: string
            required: false
          - label: "Contenu Markdown"
            name: body
            widget: markdown
            required: false

      - name: "audit-resilience"
        label: "Audit résilience numérique Guadeloupe"
        file: "content/landing/audit-resilience-numerique-guadeloupe.md"
        fields:
          - label: "Clé de traduction"
            name: translationKey
            widget: string
            required: true
          - label: "Titre (SEO + H1)"
            name: title
            widget: string
            required: true
          - label: "Description (SEO)"
            name: description
            widget: text
            required: true
          - label: "Objectif de conversion"
            name: goal
            widget: string
            required: false
          - label: "Contenu Markdown"
            name: body
            widget: markdown
            required: false

      - name: "tee-shirts"
        label: "Tee-shirts d'équipe Guadeloupe"
        file: "content/landing/tee-shirts-equipe-guadeloupe.md"
        fields:
          - label: "Clé de traduction"
            name: translationKey
            widget: string
            required: true
          - label: "Titre (SEO + H1)"
            name: title
            widget: string
            required: true
          - label: "Description (SEO)"
            name: description
            widget: text
            required: true
          - label: "Objectif de conversion"
            name: goal
            widget: string
            required: false
          - label: "Contenu Markdown"
            name: body
            widget: markdown
            required: false

      - name: "infogerance"
        label: "Infogérance & hébergement web Guadeloupe"
        file: "content/landing/infogerance-hebergement-web-guadeloupe.md"
        fields:
          - label: "Clé de traduction"
            name: translationKey
            widget: string
            required: true
          - label: "Titre (SEO + H1)"
            name: title
            widget: string
            required: true
          - label: "Description (SEO)"
            name: description
            widget: text
            required: true
          - label: "Objectif de conversion"
            name: goal
            widget: string
            required: false
          - label: "Contenu Markdown"
            name: body
            widget: markdown
            required: false

  # ========== LANDING PAGES EN ==========
  - name: landing_en
    label: "🎯 Landing Pages (English)"
    create: false
    identifier_field: slug
    files:
      - name: "gbp-en"
        label: "Google Business Profile Guadeloupe (EN)"
        file: "content/en/landing/google-business-profile-guadeloupe.md"
        fields:
          - label: "Translation key"
            name: translationKey
            widget: string
            required: true
          - label: "Title (SEO + H1)"
            name: title
            widget: string
            required: true
          - label: "Description (SEO)"
            name: description
            widget: text
            required: true
          - label: "Conversion goal"
            name: goal
            widget: string
            required: false
          - label: "Content"
            name: body
            widget: markdown
            required: false

      - name: "creation-site-en"
        label: "Website creation Guadeloupe (EN)"
        file: "content/en/landing/creation-site-web-guadeloupe.md"
        fields:
          - label: "Translation key"
            name: translationKey
            widget: string
            required: true
          - label: "Title (SEO + H1)"
            name: title
            widget: string
            required: true
          - label: "Description (SEO)"
            name: description
            widget: text
            required: true
          - label: "Conversion goal"
            name: goal
            widget: string
            required: false
          - label: "Content"
            name: body
            widget: markdown
            required: false

      - name: "ia-automatisation-en"
        label: "AI & marketing automation Guadeloupe (EN)"
        file: "content/en/landing/ia-automatisation-marketing-guadeloupe.md"
        fields:
          - label: "Translation key"
            name: translationKey
            widget: string
            required: true
          - label: "Title (SEO + H1)"
            name: title
            widget: string
            required: true
          - label: "Description (SEO)"
            name: description
            widget: text
            required: true
          - label: "Conversion goal"
            name: goal
            widget: string
            required: false
          - label: "Content"
            name: body
            widget: markdown
            required: false
