<!DOCTYPE html>
<html lang="en">

  <head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">

    <title> MaPagePerso </title>

    <!-- Bootstrap core CSS -->
    <link href="static/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom fonts for this template -->
    <link href="https://fonts.googleapis.com/css?family=Raleway:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css?family=Lora:400,400i,700,700i" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="static/css/business-casual.css" rel="stylesheet">

  </head>

  <body>

  <h1 class="site-heading text-center text-white d-none d-lg-block">
    <span class="site-heading-upper text-primary mb-3">{{ mesinfos.texte_acceuil }}</span>
    <span class="site-heading-lower">{{ mesinfos.nom }}</span>
  </h1>


  <!-- Navigation -->
  <nav class="navbar navbar-expand-lg navbar-dark py-lg-4" id="mainNav">
    <div class="container">
      <a class="navbar-brand text-uppercase text-expanded font-weight-bold d-lg-none" href="#">{{ mesinfos.nom }}</a>
      <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
      </button>

      <div class="collapse navbar-collapse" id="navbarResponsive">
        <ul class="navbar-nav mx-auto">
          <li class="nav-item px-lg-4">
            <a class="nav-link text-uppercase text-expanded" href="#about">A propos</a>
          </li>

          <li class="nav-item px-lg-4">
            <a class="nav-link text-uppercase text-expanded" href="#produits">Produits</a>
          </li>

          <li class="nav-item px-lg-4">
            <a class="nav-link text-uppercase text-expanded" href="#contact">Contact</a>
          </li>
        </ul>
      </div>
    </div>
  </nav>


  <!-- Introduction -->
  <section class="page-section clearfix" id="about" >
    <div class="container">
      <div class="intro">
        <img class="intro-img img-fluid mb-3 mb-lg-0 rounded" src="static/img/header.jpg" alt="">
        <div class="intro-text left-0 text-center bg-faded p-5 rounded">
          <h2 class="section-heading mb-4">
            <span class="section-heading-upper">{{ mesinfos.nom }}</span>
            <span class="section-heading-lower">{{ mesinfos.titre_description}}</span>
          </h2>
          <p class="mb-3"> {{ mesinfos.description }} </p>

          <div class="intro-button mx-auto">
            <a class="btn btn-primary btn-xl" href="#produits">{{ mesinfos.bouton_presentation }}</a>
          </div>
        </div>
      </div>
    </div>
  </section>


<!-- Galerie -->
  <section class="page-section" id="produits">
    <div id="myCarousel" class="carousel slide" data-ride="carousel">

      <div class="carousel-inner">
        {% for image in mesimages.values() %}
        {% if image['nom_fichier'] == "1.jpg" %}
        <div class="carousel-item active">
          <div class="container">
            <div class="carousel-caption">
              <div class="product-item">
                <div class="product-item-title d-flex">
                  <div class="bg-faded p-5 d-flex mr-auto rounded">
                    <h2 class="section-heading mb-0">
                      <span class="section-heading-upper text-primary">{{ image.titre }}</span>
                      <span class="section-heading-lower">{{ image.sous_titre }}</span>
                    </h2>
                  </div>
                </div>
                <img class="product-item-img mx-auto d-flex rounded img-fluid mb-5 mb-lg-0" src="/static/img/portfolio/fullsize/{{ image.nom_fichier }}" aalt="">
  				      <div class="product-item-description d-flex ml-auto">
                  <div class="bg-faded p-5 rounded">
                    <p class="mb-0 text-paragraph"> {{ image.description }} </p>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>

        {% else %}

        <div class="carousel-item">
          <div class="container">
            <div class="carousel-caption">
              <div class="product-item">
                <div class="product-item-title d-flex">
                  <div class="bg-faded p-5 d-flex mr-auto rounded">
                    <h2 class="section-heading mb-0">
                      <span class="section-heading-upper text-primary">{{ image.titre }}</span>
                      <span class="section-heading-lower"> {{ image.sous_titre }}</span>
                    </h2>
                  </div>
                </div>
                <img class="product-item-img mx-auto d-flex rounded img-fluid mb-3 mb-lg-0" src="/static/img/portfolio/fullsize/{{ image.nom_fichier }}" alt=""/	>
                <div class="product-item-description d-flex ml-auto">
                  <div class="bg-faded p-5 rounded">
                    <p class="mb-0"> {{ image.description }}</p>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        {% endif %}
        {% endfor %}
      </div>
        <a class="carousel-control-prev" href="#myCarousel" role="button" data-slide="prev">
          <span class="carousel-control-prev-icon" aria-hidden="true"></span>
          <span class="sr-only">Précédent</span>
        </a>
        <a class="carousel-control-next" href="#myCarousel" role="button" data-slide="next">
          <span class="carousel-control-next-icon" aria-hidden="true"></span>
          <span class="sr-only">Suivant</span>
        </a>
      </div>
    </section>


  <section class="page-section cta" id="contact" >
    <div class="container">
      <div class="row">
        <div class="col-xl-9 mx-auto">
          <div class="cta-inner text-center rounded">
            <h2 class="section-heading mb-5">
              <span class="section-heading-upper">{{ mesinfos.titre_contact }}</span>
            </h2>

            <ul class="list-unstyled list-hours mb-5 text-left mx-auto">
              <li class="list-unstyled-item list-hours-item d-flex">
                {{ mesinfos.texte_contact }}
                <span class="ml-auto">{{ mesinfos.horraires }} </span>
              </li>
            </ul>
            <p class="address mb-5">
              <em>
                <strong>{{ mesinfos.adresse }}</strong>
                <br>
                {{ mesinfos.code_postal }}, {{ mesinfos.ville }}
              </em>
            </p>

            <p class="mb-0">
              <small>
                <em>Téléphone</em>
              </small>
              <br>
              {{ mesinfos.phone }}
            </p>
          </div>
        </div>
      </div>
    </div>
  </section>



  <footer class="footer text-faded text-center py-5">
    <div class="container">
      <p class="m-0 small">Copyright &copy; {{ mesinfos.nom }} 2018</p>
    </div>
  </footer>

  <!-- Bootstrap core JavaScript -->
  <script src="static/vendor/jquery/jquery.min.js"></script>
  <script src="static/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>

  </body>

</html>
