<?php
if (function_exists('sys_get_temp_dir')) {
    session_save_path(sys_get_temp_dir());
}
session_start();

define('LICENCE_OBLIGATOIRE', 31);
define('IBAN_ASSOCIATION', "FR76 1027 8060 9200 0592 8994 109"); 
define('BIC_ASSOCIATION', "CMCIFR2A");
define('BANQUE_ASSOCIATION', "Cr&eacute;dit Mutuel (CCM PAVILLONS-LIVRY)");
?>
<!DOCTYPE html>
<html lang="fr" class="scroll-smooth">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="robots" content="index, follow">

    <!-- BALISES META SEO DE BASE -->
    <title>SLGV Livry-Gargan &mdash; Gymnastique Volontaire, Pilates &amp; Fitness (93)</title>
    <meta name="description" content="Association sportive &amp; club de gymnastique volontaire &agrave; Livry-Gargan (93190). Cours de Pilates, QiGong, Fitness, Gym douce. Planning, tarifs et inscription en ligne 2026/2027.">
    <meta name="keywords" content="gymnastique volontaire, SLGV, Livry-Gargan, pilates, qigong, fitness, gym douce, association sportive 93, sport sante">
    <meta name="author" content="SLGV Livry-Gargan">

    <!-- BALISES OPEN GRAPH (Partage Facebook, WhatsApp, etc.) -->
    <meta property="og:type" content="website">
    <meta property="og:title" content="SLGV Livry-Gargan &mdash; Gymnastique Volontaire &amp; Fitness">
    <meta property="og:description" content="D&eacute;couvrez nos cours de fitness, Pilates, QiGong et Gym douce &agrave; Livry-Gargan. Consultez le planning et inscrivez-vous en ligne.">
    <meta property="og:url" content="http://s.l.g.v.free.fr/">
    <meta property="og:image" content="http://s.l.g.v.free.fr/logo-sport-vitalite.png">
    <meta property="og:locale" content="fr_FR">

    <!-- TAILWIND CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
</head>
<body class="bg-slate-100 text-slate-800 font-sans">

    <!-- En-t&ecirc;te Global avec Logo et Navigation Uniforme -->
    <header class="bg-teal-700 text-white shadow-md print:hidden">
        <div class="max-w-6xl mx-auto px-4 py-4 flex flex-col md:flex-row justify-between items-center gap-4">
            
            <!-- BLOC LOGO SEUL -->
            <div class="flex items-center justify-center md:justify-start">
                <a href="index.php">
                    <img src="logo-sport-vitalite.png" alt="Logo SLGV" class="h-16 w-auto bg-white p-1 rounded-xl shadow-sm object-contain flex-shrink-0 hover:opacity-90 transition">
                </a>
            </div>
            
            <!-- MENU DE NAVIGATION UNIFORME -->
            <nav class="flex flex-wrap gap-2 justify-center items-center">
                <a href="planning.php" class="bg-teal-800 hover:bg-teal-900 text-white font-bold text-xs px-3.5 py-2 rounded transition shadow-sm">
                    Planning
                </a>
                <a href="inscription.php" class="bg-teal-800 hover:bg-teal-900 text-white font-bold text-xs px-3.5 py-2 rounded transition shadow-sm">
                    Inscription en ligne
                </a>
                <a href="telechargements.php" class="bg-teal-800 hover:bg-teal-900 text-white font-bold text-xs px-3.5 py-2 rounded transition shadow-sm">
                    Documents PDF
                </a>
                <a href="galerie.php" class="bg-teal-800 hover:bg-teal-900 text-white font-bold text-xs px-3.5 py-2 rounded transition shadow-sm">
                    Galerie Photos/Vid&eacute;os
                </a>
                <a href="#section-articles" class="bg-teal-800 hover:bg-teal-900 text-white font-bold text-xs px-3.5 py-2 rounded transition shadow-sm flex items-center gap-1">
                    Articles &amp; Actus
                </a>
                <a href="contact.php" class="bg-teal-800 hover:bg-teal-900 text-white font-bold text-xs px-3.5 py-2 rounded transition shadow-sm">
                    Contact
                </a>

                <!-- SOUS-MENU D&Eacute;ROULANT ESPACE R&Eacute;SERV&Eacute; -->
                <div class="relative group inline-block text-left z-30">
                    <button type="button" class="bg-slate-900 hover:bg-slate-950 text-white font-bold text-xs px-3.5 py-2 rounded transition flex items-center gap-1.5 border border-slate-700 shadow">
                        Espace R&eacute;serv&eacute; <span class="text-[10px]">▼</span>
                    </button>
                    <div class="absolute right-0 mt-1 w-52 bg-white rounded-xl shadow-xl border border-slate-200 py-2 hidden group-hover:block group-focus-within:block text-slate-800 text-xs font-semibold z-50">
                        <a href="admin_popup.php" class="block px-4 py-2 hover:bg-slate-100 hover:text-teal-700 transition flex items-center gap-2">
                            Gestion des Popups
                        </a>
                        <a href="admin_articles.php" class="block px-4 py-2 hover:bg-slate-100 hover:text-teal-700 transition flex items-center gap-2">
                            Gestion des Articles
                        </a>
                        <a href="admin_galerie.php" class="block px-4 py-2 hover:bg-slate-100 hover:text-teal-700 transition flex items-center gap-2">
                            Gestion de la Galerie
                        </a>
                        <div class="border-t border-slate-100 my-1"></div>
                        <a href="acces_bulletins.php" target="_blank" class="block px-4 py-2 hover:bg-slate-100 hover:text-teal-700 transition flex items-center gap-2 font-bold text-slate-900">
                            Espace Bulletins
                        </a>
                    </div>
                </div>
            </nav>
        </div>
    </header>

    <main class="max-w-6xl mx-auto px-4 py-8 space-y-8">

        <!-- MESSAGE DE BIENVENUE & BOUTONS D'ACTION -->
        <section class="bg-gradient-to-r from-teal-800 to-teal-600 text-white rounded-2xl p-6 sm:p-8 shadow-xl flex flex-col md:flex-row items-center justify-between gap-6">
            <div class="space-y-3 text-center md:text-left">
                <span class="bg-amber-400 text-slate-900 text-xs font-black px-3 py-1 rounded-full uppercase tracking-wider">
                    Nouveaut&eacute; 2026/2027
                </span>
                <h1 class="text-2xl sm:text-3xl font-black leading-tight">
                    Bienvenue sur le nouveau site de la SLGV !
                </h1>
                <p class="text-xs sm:text-sm text-teal-50 max-w-2xl leading-relaxed">
                    Nous sommes ravis de vous accueillir sur notre nouvelle plateforme. Retrouvez en quelques clics le planning des cours, l'inscription en ligne instantan&eacute;e, les documents &agrave; t&eacute;l&eacute;charger ainsi que toute l'actualit&eacute; du club.
                </p>
            </div>
            <div class="flex flex-col sm:flex-row md:flex-col gap-3 w-full md:w-auto flex-shrink-0">
                <a href="inscription.php" class="block text-center bg-amber-500 hover:bg-amber-600 text-slate-900 font-black px-6 py-3.5 rounded-xl text-xs sm:text-sm shadow-lg transition transform hover:-translate-y-0.5">
                    S'inscrire pour la saison &rarr;
                </a>
                <a href="contact.php" class="block text-center bg-teal-900 hover:bg-teal-950 text-white font-bold px-6 py-3 rounded-xl text-xs shadow border border-teal-600 transition">
                    Contactez-nous
                </a>
            </div>
        </section>

        <!-- BLOCS DE PR&Eacute;SENTATION DE LA PAGE D'ACCUEIL -->
        <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
            
            <!-- BLOC 1 : PLANNING -->
            <div class="bg-white p-6 rounded-xl shadow-md border-t-4 border-teal-600 flex flex-col justify-between">
                <div>
                    <h2 class="text-base font-bold text-teal-800 mb-2">1. Horaires &amp; Salles</h2>
                    <p class="text-xs text-slate-600 leading-relaxed mb-4">
                        Consultez en un coup d'œil la grille compl&egrave;te de nos cours, r&eacute;partis du lundi au samedi avec les lieux et les animateurs.
                    </p>
                </div>
                <a href="planning.php" class="block text-center bg-teal-600 text-white text-xs font-bold py-2.5 rounded hover:bg-teal-700 transition shadow">
                    Consulter le planning
                </a>
            </div>

            <!-- BLOC 2 : INSCRIPTION -->
            <div class="bg-white p-6 rounded-xl shadow-md border-t-4 border-amber-500 flex flex-col justify-between">
                <div>
                    <h2 class="text-base font-bold text-amber-600 mb-2">2. Inscription en ligne</h2>
                    <p class="text-xs text-slate-600 leading-relaxed mb-4">
                        Gagnez du temps et remplissez votre fiche d'adh&eacute;sion directement sur notre interface s&eacute;curis&eacute;e.
                    </p>
                </div>
                <a href="inscription.php" class="block text-center bg-amber-500 text-slate-900 text-xs font-bold py-2.5 rounded hover:bg-amber-600 transition shadow">
                    Acc&eacute;der au formulaire
                </a>
            </div>

            <!-- BLOC 3 : DOCUMENTS PDF -->
            <div class="bg-white p-6 rounded-xl shadow-md border-t-4 border-sky-500 flex flex-col justify-between">
                <div>
                    <h2 class="text-base font-bold text-sky-700 mb-2">3. Documents &amp; T&eacute;l&eacute;chargements</h2>
                    <p class="text-xs text-slate-600 leading-relaxed mb-4">
                        T&eacute;l&eacute;chargez au format PDF l'ensemble des pi&egrave;ces requises (RIB, questionnaire de sant&eacute;, bulletin papier...).
                    </p>
                </div>
                <a href="telechargements.php" class="block text-center bg-sky-600 text-white text-xs font-bold py-2.5 rounded hover:bg-sky-700 transition shadow">
                    Voir les t&eacute;l&eacute;chargements
                </a>
            </div>
        </div>

        <!-- BANNI&Egrave;RE D'INFORMATION -->
        <div class="bg-white p-6 rounded-xl shadow-md flex flex-col sm:flex-row items-center justify-between border-l-8 border-amber-500 gap-4">
            <div>
                <h2 class="text-xl font-black text-slate-800">Les inscriptions pour la saison 2026/2027 sont ouvertes !</h2>
                <p class="text-xs text-slate-600 mt-1">Compl&eacute;tez votre dossier directement en ligne et recevez instantan&eacute;ment vos pi&egrave;ces officielles par e-mail.</p>
            </div>
            <a href="inscription.php" class="mt-4 sm:mt-0 bg-amber-500 hover:bg-amber-600 text-slate-900 font-black px-6 py-3 rounded-lg text-sm shadow transition whitespace-nowrap">
                S'INSCRIRE EN LIGNE &rarr;
            </a>
        </div>

        <!-- SECTION DYNAMIQUE DES ARTICLES -->
        <div id="section-articles">
            <?php include_once 'articles.php'; ?>
        </div>

    </main>

    <!-- INCLUSION DYNAMIQUE DES POPUPS -->
    <?php include_once 'popups.php'; ?>

</body>
</html>