{% extends 'base.html.twig' %}
{% block metadata %}
  {# ============================
   METADATA / SEO
   ============================ #}

  {% set meta_title = meta_title is defined
    ? meta_title
    : 'Spectacles vivants et artisanat au service des collectivités'
  %}
  {% set meta_description = meta_description is defined
    ? meta_description
    : 'Découvrez des spectacles vivants et des fabrications artisanales conçus pour les collectivités, écoles et lieux culturels, alliant création, transmission et savoir-faire.'
  %}
  {% set meta_image = meta_image is defined
    ? meta_image
    : asset('images/logo.jpg')
  %}
  {% set meta_url = meta_url is defined ? meta_url : app.request.uri %}
  {% set meta_site_name = meta_site_name is defined
    ? meta_site_name
    : 'Nom du site'
  %}
  {% set meta_type = meta_type is defined ? meta_type : 'website' %}

  <title>
    {{ meta_title }}
  </title>

  <meta name="description" content="{{ meta_description }}" />
  <meta name="robots" content="index, follow" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <meta charset="utf-8" />

  <link rel="canonical" href="{{ meta_url }}" />

  {# ============================
   OPEN GRAPH (Facebook, LinkedIn…)
   ============================ #}

  <meta property="og:title" content="{{ meta_title }}" />
  <meta property="og:description" content="{{ meta_description }}" />
  <meta property="og:type" content="{{ meta_type }}" />
  <meta property="og:url" content="{{ meta_url }}" />
  <meta property="og:image" content="{{ meta_image }}" />
  <meta property="og:site_name" content="{{ meta_site_name }}" />
  <meta property="og:locale" content="fr_FR" />

  {# Optionnel mais recommandé #}
  <meta property="og:image:width" content="1200" />
  <meta property="og:image:height" content="630" />

  {# ============================
   TWITTER CARDS
   ============================ #}

  <meta name="twitter:card" content="summary_large_image" />
  <meta name="twitter:title" content="{{ meta_title }}" />
  <meta name="twitter:description" content="{{ meta_description }}" />
  <meta name="twitter:image" content="{{ meta_image }}" />
{% endblock %}
{% block body %}
  <!-- Header -->

  <main class="isolate py-15">
    <!-- Hero section -->
    <div class="relative pt-14">
      <div
        aria-hidden="true"
        class="absolute inset-x-0 -top-40 -z-10 transform-gpu overflow-hidden blur-3xl sm:-top-80"
      >
        <div
          style="clip-path: polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"
          class="relative left-[calc(50%-11rem)] aspect-1155/678 w-144.5 -translate-x-1/2 rotate-30 bg-linear-to-tr from-[#ff80b5] to-[#F59E0B] opacity-30 sm:left-[calc(50%-30rem)] sm:w-288.75"
        ></div>
      </div>
      <div class="py-5 sm:py-6 lg:pb-7">
        <div class="mx-auto max-w-7xl px-6 lg:px-8">
          <div class="mx-auto max-w-2xl text-center">
            <h1
              class="text-5xl font-semibold tracking-tight text-balance text-gray-900 sm:text-7xl"
            >
              Spectacles vivants et fabrications artisanales
            </h1>
            <p
              class="mt-8 text-lg font-medium text-pretty text-gray-500 sm:text-xl/8"
            >
              Les voyages, les projets de classe font partie de nos bons
              souvenirs d’école.

              Alors poursuivons et proposons aux plus jeunes de vivre <strong>
                des projets artistiques
              </strong> !
            </p>
            <div class="mt-10 flex items-center justify-center gap-x-6">
              <a
                href="{{ path('show') }}"
                class="rounded-md bg-amber-600 px-3.5 py-2.5 text-sm font-semibold text-white shadow-xs hover:bg-amber-500 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-amber-600"
              >
                Mes spectacles
              </a>
              <a
                href="{{ path('about') }}"
                class="text-sm/6 font-semibold text-gray-900"
              >
                Me connaître <span aria-hidden="true">→</span>
              </a>
            </div>
          </div>
        </div>
      </div>
      <div
        aria-hidden="true"
        class="absolute inset-x-0 top-[calc(100%-13rem)] -z-10 transform-gpu overflow-hidden blur-3xl sm:top-[calc(100%-30rem)]"
      >
        <div
          style="clip-path: polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"
          class="relative left-[calc(50%+3rem)] aspect-1155/678 w-144.5 -translate-x-1/2 bg-linear-to-tr from-[#ff80b5] to-[#F59E0B] opacity-30 sm:left-[calc(50%+36rem)] sm:w-288.75"
        ></div>
      </div>
    </div>

    <!-- Testimonial section -->
    <div class="mx-auto mt-6 max-w-7xl sm:mt-12 sm:px-6 lg:px-8">
      <div
        class="relative overflow-hidden bg-gray-900 px-6 py-20 shadow-xl sm:rounded-3xl sm:px-10 sm:py-24 md:px-12 lg:px-20"
      >
        <img
          src="images/mp-photo-affiche-gros-plan.jpg"
          alt=""
          class="absolute inset-0 size-full object-cover brightness-150 saturate-0"
        />
        <div class="absolute inset-0 bg-gray-900/90 mix-blend-multiply"></div>
        <div
          aria-hidden="true"
          class="absolute -top-56 -left-80 transform-gpu blur-3xl"
        >
          <div
            style="clip-path: polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"
            class="aspect-1097/845 w-274.25 bg-linear-to-r from-[#ff4694] to-[#F59E0B] opacity-[0.45]"
          ></div>
        </div>
        <div
          aria-hidden="true"
          class="hidden md:absolute md:bottom-16 md:left-200 md:block md:transform-gpu md:blur-3xl"
        >
          <div
            style="clip-path: polygon(74.1% 44.1%, 100% 61.6%, 97.5% 26.9%, 85.5% 0.1%, 80.7% 2%, 72.5% 32.5%, 60.2% 62.4%, 52.4% 68.1%, 47.5% 58.3%, 45.2% 34.5%, 27.5% 76.7%, 0.1% 64.9%, 17.9% 100%, 27.6% 76.8%, 76.1% 97.7%, 74.1% 44.1%)"
            class="aspect-1097/845 w-274.25 bg-linear-to-r from-[#ff4694] to-[#F59E0B] opacity-25"
          ></div>
        </div>
        <div class="relative mx-auto max-w-2xl lg:mx-0">
          <figure>
            <blockquote
              class="mt-6 text-lg font-semibold text-white sm:text-xl/8"
            >
              <p>
                “Dans un monde de plus en plus technologique, au rythme
                précipité, laissons de la place à l’imaginaire et la créativité.
                Acceptons de se donner des bulles suspendues de création et
                d’évasion Mettons en valeur et en commun nos savoir-faire, nos
                savoir-être Retrouvons de l’humanité, de l’écoute, du partage,
                de la cohésion ”
              </p>
            </blockquote>
            <figcaption class="mt-6 text-base text-white">
              <div class="font-semibold">
                Marie-Pierre NAUCHE
              </div>
              <div class="mt-1">
                Fondatrice de Arts-ticule
              </div>
            </figcaption>
          </figure>
        </div>
      </div>
    </div>
  </main>
{% endblock %}
