<!DOCTYPE html>
<html <?php language_attributes(); ?>>

<head>
	<meta charset="<?php bloginfo('charset'); ?>">
	<meta name="viewport" content="width=device-width">
	<link rel="profile" href="http://gmpg.org/xfn/11">
	<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
	<?php wp_head(); ?>
</head>
<?php $currentLanguage = apply_filters('wpml_current_language', null); ?>

<?php
switch_to_blog(1);
?>

<body <?php body_class("homegrade-frontend-page ") ?> current-language="<?php echo $currentLanguage ?? ""  ?>">
	<?php
	do_action('tailpress_site_before');
	global $post;
	?>
	<div id="page-<?php echo $post->post_name ?? "" ?>" class="min-h-screen flex flex-col ">

		<div class="skiplinks" aria-label="<?php echo __('Accès rapide', 'homegrade-theme__texte-fonctionnel') ?>">
			<a href="#content" class="skiplinks__link"><?php echo __('Contenu', 'homegrade-theme__texte-fonctionnel') ?></a>
		</div>
		<ul class="skiplinks">
			<li></li>
		</ul>

		<?php do_action('tailpress_header'); ?>

		<header id="main-header">
			<!-- MENU MOBILE -->
			<?php get_template_part('template-components/header/mobile-brand'); ?>

			<!-- MENU HOMEGRADE -->
			<?php get_template_part('template-components/header/menu-homegrade'); ?>
			<?php get_template_part('template-components/header/menu-renovateur'); ?>


			<!-- SEARCH MODULE -->
			<?php get_template_part('template-components/header/search-module'); ?>
		</header>

		<?php do_action('tailpress_content_start'); ?>

		<main id="content" class="site-content flex-grow">
			<?php
			restore_current_blog();
			?>