{{ define "main" }}
<section class="couverture">

  <h1 class="title">Nos vertiges</h1>
  <h2 class="sutitle">Échelles, formats, mesures et démesure</h2>
  <p class="date">22–27 août 2026</p>
  <p class="rencontres">74<sup>o</sup> rencontres internationales de Lure</p>

</section>

<section class="edito">
  {{ range where .Site.RegularPages "Type" "edito" }}
  <h2>{{ .Title }}</h2>
  <div class="edito-content">
    {{ .Content }}
  </div>
  {{ end }}
</section>

{{ $pages := where .Site.RegularPages "Section" "people" }}
{{ $days := slice "lundi" "mardi" "mercredi" "jeudi" "vendredi" "samedi" "dimanche" }}

{{ range $days }}
{{ $day := . }}
{{ $dayPages := where $pages "Params.day" $day }}

{{ if $dayPages }}
<section class="day" id="section-{{ $day }}">
  <h2 class="day-title">{{ $day }}</h2>

  {{ range sort $dayPages "Params.order" }}
  <article class="person" id="{{ .File.BaseFileName }}">

    <figure><img src="/images/{{ .Params.imgCover }}"></figure>

    <h3 class="title">{{ .Title | markdownify }}</h3>
    <h4 class="subtitle">{{ .Params.subtitle | markdownify }}</h4>

    <div class="type-tags-group">
      <p class="type">{{ .Params.type }}</p>
      <ul class="tags">
        {{ range .Params.tags }}<li class="tag">{{ . }}</li>{{ end }}
      </ul>
    </div>

    <div class="content">
      {{ .Content }}
    </div>

    <figure><img src="/images/{{ .Params.imgBio }}"></figure>

    <div class="biographie">
      <p>{{ .Params.biographie | markdownify }}</p>
    </div>

    {{ with .Params.website }}
      <p class="website"><a href="https://{{ . }}" target="_blank">{{ . }}</a></p>
    {{ end }}

  </article>
  {{ end }}
</section>
{{ end }}
{{ end }}


<div class="4e-couverture">

  <h2>Remerciments et colophon</h2>

  <div class="remerciement">
    <p>
      Les rencontres internationales de Lure remercient...
    </p>
    <p>
      Merci à ...
    </p>
  </div>

</div>

{{ end }}