<?php
// Inclure le helper SEO
require_once __DIR__ . '/../seo-helper.php';

// Définir la page actuelle si pas déjà définie
if (!isset($current_page)) {
    $current_page = 'home'; // Page par défaut
}

// Définir les valeurs par défaut si pas déjà définies
$default_title = $page_title ?? 'SERVICES-AE - Services Informatiques Professionnels';
$default_description = $page_description ?? 'SERVICES-AE offre des services informatiques professionnels : réparation d\'ordinateurs, récupération de données, support technique et solutions réseau.';
?>
<!DOCTYPE html>
<html lang="fr">
<head>
    <!-- Basic Meta Tags -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    
    <!-- SEO Meta Tags -->
    <?php 
    if (isset($current_page) && function_exists('displaySEOTags')) {
        displaySEOTags(
            $current_page, 
            $default_title ?? 'SERVICES-AE - Services Informatiques Professionnels aux Émirats', 
            $default_description ?? 'SERVICES-AE offre des services informatiques professionnels aux Émirats Arabes Unis : réparation d\'ordinateurs, récupération de données, support technique et solutions réseau.'
        );
    }
    ?>
    
    <!-- Site Icons -->
    <link rel="icon" href="images/fevicon/fevicon.png" type="image/png" />
    <link rel="apple-touch-icon" href="images/fevicon/fevicon.png">
    
    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="css/bootstrap.min.css" />
    
    <!-- Site CSS -->
    <link rel="stylesheet" href="css/style.css" />
    <link rel="stylesheet" href="css/responsive.css" />
    <link rel="stylesheet" href="css/colors1.css" />
    <link rel="stylesheet" href="css/custom.css" />
    
    <!-- Animation CSS -->
    <link rel="stylesheet" href="css/animate.css" />
    
    <!-- Revolution Slider CSS -->
    <link rel="stylesheet" type="text/css" href="revolution/css/settings.css" />
    <link rel="stylesheet" type="text/css" href="revolution/css/layers.css" />
    <link rel="stylesheet" type="text/css" href="revolution/css/navigation.css" />
    
    <!-- Font Awesome -->
    <link rel="stylesheet" href="css/font-awesome.min.css" />
    
    <!-- Additional Page-Specific CSS -->
    <?php if (isset($additional_css) && is_array($additional_css)): ?>
        <?php foreach ($additional_css as $css): ?>
            <link rel="stylesheet" href="<?= htmlspecialchars($css) ?>" />
        <?php endforeach; ?>
    <?php endif; ?>
    
    <!-- Schema.org JSON-LD -->
    <script type="application/ld+json">
    {
        "@context": "https://schema.org",
        "@type": "Organization",
        "name": "SERVICES-AE",
        "description": "Services informatiques professionnels",
        "url": "https://services-ae.com",
        "logo": "https://services-ae.com/images/fevicon/fevicon.png",
        "contactPoint": {
            "@type": "ContactPoint",
            "telephone": "+971-XX-XXX-XXXX",
            "contactType": "Customer Service"
        },
        "address": {
            "@type": "PostalAddress",
            "addressCountry": "AE"
        }
    }
    </script>
    
    <?php if (isset($additional_head_content)): ?>
        <?= $additional_head_content ?>
    <?php endif; ?>
    <!-- SERVICES-AE Analytics Script -->
    <script src="js/analytics.js" async></script>
</head>