{#
/**
 * @file
 * Default theme implementation to display a single page.
 *
 * The doctype, html, head and body tags are not in this template. Instead they
 * can be found in the html.html.twig template in this directory.
 *
 * Available variables:
 *
 * General utility variables:
 * - base_path: The base URL path of the Drupal installation. Will usually be
 *   "/" unless you have installed Drupal in a sub-directory.
 * - is_front: A flag indicating if the current page is the front page.
 * - logged_in: A flag indicating if the user is registered and signed in.
 * - is_admin: A flag indicating if the user has permission to access
 *   administration pages.
 *
 * Site identity:
 * - front_page: The URL of the front page. Use this instead of base_path when
 *   linking to the front page. This includes the language domain or prefix.
 *
 * Page content (in order of occurrence in the default page.html.twig):
 * - messages: Status and error messages. Should be displayed prominently.
 * - node: Fully loaded node, if there is an automatically-loaded node
 *   associated with the page and the node ID is the second argument in the
 *   page's path (e.g. node/12345 and node/12345/revisions, but not
 *   comment/reply/12345).
 *
 * Regions:
 * - page.header: Items for the header region.
 * - page.content: The main content of the current page.
 * - page.sidebar_first: Items for the first sidebar.
 * - page.sidebar_second: Items for the second sidebar.
 * - page.footer: Items for the footer region.
 *
 * @see template_preprocess_page()
 * @see html.html.twig
 *
 * @ingroup themeable
 */
#}
<div class="layout-container">
  {{ pattern('skiplinks', {
    label: 'Skip links'|t|render,
    items: [
      pattern('link', {
        label: 'Content'|t,
        url: '#main-content'
      }),
      pattern('link', {
        label: 'Menu'|t,
        url: '#page-header--menu'
      }),
      pattern('link', {
        label: 'Footer'|t,
        url: '#footer'
      })
    ]
  }) }}

  {{ pattern('header', {
    logo_text: logo_text,
    home_url: path('<front>'),
    operator_logo: page.header_operator_logo,
    service_title: site_name,
    service_tagline: site_slogan,
    tools_links: page.header_tools_links,
    tools_search: page.header_tools_search,
    navbar: page.header_navbar,
    header_id: 'page-header'
  }) }}
  {{ page.top }}
  <main role="main" class="{{ container }} fr-mb-4w fr-mt-4w" id="main-content">
    <div class="fr-grid-row fr-grid-row--gutters">
      <div class="fr-col" style="order: 2">
        {{ page.content }}
      </div>

      {% if page.sidebar_first %}
        <aside class="fr-col" role="complementary" style="order: 1">
          {{ page.sidebar_first }}
        </aside>
      {% endif %}

      {% if page.sidebar_second %}
        <aside class="fr-col" role="complementary" style="order: 3">
          {{ page.sidebar_second }}
        </aside>
      {% endif %}
    </div>

  </main>
  {{ page.bottom }}
  {{ pattern('footer', {
    logo_text: logo_text,
    home_url: path('<front>'),
    top: footer_top,
    operator_logo: page.footer_operator_logo,
    content: page.footer_content,
    content_desc: page.footer_content_desc,
    partners: page.footer_partners,
    bottom: page.footer_bottom,
    bottom_copy: page.footer_bottom_copy,
    service_title: site_name
  }) }}
</div>
