---
title: 'Contacter un membre'
pagination:
  data: collections.members
  size: 1
  alias: member
permalink: '/members/{{ member.fileSlug }}/contact/'
---

{% extends 'layouts/base.njk' %}

{% set memberData = member.data %}
{% set title = ["Écrire à ",memberData.name] | join %}

{% block content %}
  <main id="main-content" tabindex="-1">
    <section class="[ wrapper member ]">
      <article>
        <h1>{{ title }}</h1>
        <p class="position">{{ memberData.position }}</p>
        {% if memberData.positionInternal %}
          <p>{{ memberData.positionInternal }}</p>
        {% endif %}
        <div class="[ member__wrapper ]">
          <div class="member__info">
            <img src="{{ memberData.profile }}" alt="photo de {{ memberData.name }}">
          </div>
          <div class="member__bio member-contact">
            {% if memberData.emailSlug %}
              {% set contactMember = memberData.emailSlug %}
            {% else %}
              {% set contactMember = member.fileSlug | replace("-",".") %}
            {% endif %}
            {% set removeWave = true %}
            {% include "partials/components/contact-form.njk" %}
          </div>
        </div>
      </article>
      <a class="return-link" href="/equipe">Voir tous les membres</a>
    </section>
  </main>
{% endblock %}