{% if page.template == 'home' %}
  <div class="gal">
    {% for feature in page.header.buttons %}
      {% set gal = feature.header.a_file %}
        <div class="content_gal">
          <div class="title_gal">
            <p>{{ feature.text }}</p>
          </div>
          <img src="user/pages/01.home/{{gal}}" alt="{{ feature.text }}">
        </div>
    {% endfor %}
  </div>

  {% if header.entete.text == true %}
    <div class="entete">
      <div class="entete_c">
        <h1>{{page.title}}</h1>
        <p>{{ header.entete.text }}</p>
      </div>
    </div>
  {% endif %}

{% else %}

  {% set image = page.media.images|first %}
    {% if image %}
    <div class="bandeau">
      <div class="img">
        {% if header.txtimg.text == true %}
          {{ image.html('',header.txtimg.text) }}
        {% endif %}
        {% if header.txtimg.text == false %}
          {{ image.html('',page.title) }}
        {% endif %}
    </div>
      {% if header.txtimg.text %}
      <div class="title_gal">
        <p>{{header.txtimg.text}}</p>
      </div>
      {% endif %}
    </div>

    {% if header.entete.text == true %}
      <div class="entete">
        <div class="entete_c">
          <h1>{{page.title}}</h1>
          <p>{{ header.entete.text }}</p>
        </div>
      </div>
    {% endif %}
  {% endif %}

{% endif %}
