locale: 'fr'
backend:
  name: git-gateway
  branch: main
local_backend: true
media_folder: 'public/uploads'
public_folder: '/uploads'
collections:
  - name: 'events'
    label: 'évènements'
    label_singular: 'évènement'
    folder: 'src/content/events'
    create: true
    extension: 'json'
    format: 'json'
    date_field: start_date
    slug: '{{year}}-{{month}}-{{day}}_{{slug}}'
    fields:
      - { label: 'Titre', name: 'title', widget: 'string' }

      # --- NOUVEAUX CHAMPS SPÉCIFIQUES LATINO ---
      - {
          label: "Type d'évènement",
          name: 'type',
          widget: 'select',
          multiple: true,
          options: ['Soirée', 'Initiation', 'Stage', 'Festival'],
          default: 'Soirée',
        }
      - {
          label: 'Styles de danse',
          name: 'styles',
          widget: 'select',
          multiple: true,
          options:
            [
              'Salsa',
              'Bachata',
              'Kizomba',
              'West Coast Swing',
              'Zumba',
              'Reggaeton',
              'Rock',
              'Généraliste',
            ],
        }
      - {
          label: 'Niveau requis',
          name: 'level',
          widget: 'select',
          options: ['Tous niveaux', 'Débutant', 'Intermédiaire', 'Avancé'],
          required: false,
        }
      - {
          label: 'Tarif',
          name: 'price',
          widget: 'string',
          required: false,
          hint: 'Ex: 10€ avec conso, Gratuit...',
        }
      - {
          label: 'Artistes / DJs / Profs',
          name: 'artists',
          widget: 'list',
          required: false,
          hint: 'Ajoute les noms des intervenants',
          field: { name: 'artiste', widget: 'string' },
        }

      # --- DATES ---
      - { label: "Date de début de l'évènement", name: 'start_date', widget: 'datetime' }
      - {
          label: "Date de fin de l'évènement",
          name: 'end_date',
          widget: 'datetime',
          required: false,
        }

      # --- INFORMATIONS GÉNÉRALES ---
      - { label: 'Emplacement', name: 'lieu', widget: 'string' }
      - { label: 'Image mise en avant', name: 'thumbnail', widget: 'image', required: false }
      - {
          label: "Lien d'inscription",
          name: 'registration_url',
          widget: 'string',
          required: false,
          hint: "URL de la page d'inscription (ex: https://...)",
        }
      - { label: 'Description', name: 'body', widget: 'markdown' }
