<?php
/* Template Name: Contact */
get_header();

?>



<!-- MAIN -->
<section id="main" role="main" class="pleinelargeur">
  <div class="wrapper">
    <article>
      <div class="content">

        <?php if (have_posts()) : ?>
          <?php while (have_posts()) : the_post(); ?>
            <div id="contact">
              <div class="row">
                <div class="col-left">
                  <img <?php acf_responsive_image(get_field('image')['id'], 'large', '600px') ?> alt="" />
                </div>
                <div class="col-right">
                  <h1 class="section-title leading-normal"><?php echo get_field('titre') ?></h1>
                  <div class="section-subtitle">
                    <?php the_field('adresse') ?>
                  </div>
                  <div class="material-form">
                    <?php echo do_shortcode(get_field('shortcode')) ?>
                    <div class="legal"><?php echo get_field('mandatory') ?></div>
                  </div>
                </div>
              </div>

              <div class="section-footer">
                <div class="footer-left">
                  <img <?php acf_responsive_image(get_field('footer_image')['id'], 'medium', '100px') ?> alt="" />
                </div>
                <div class="footer-right">
                  <?php echo get_field('footer_texte') ?>
                </div>
              </div>
            </div>
          <?php endwhile; ?>
        <?php endif;
        wp_reset_query(); ?>

      </div>
    </article>
  </div>
</section>



<?php get_footer(); ?>