<?php
session_start();
include 'includes/header.php';
include 'includes/nav.php';
?>
<!DOCTYPE html>
<html lang="fr">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Gestion Paroissiale | Nom de la page</title>

    <!-- Favicon -->
    <link rel="icon" href="assets/img/favicon.ico" type="image/x-icon">

    <!-- CSS -->
    <link rel="stylesheet" href="assets/css/index.css">

    <!-- Font Awesome (optionnel) -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">

    <!-- Google Fonts (optionnel) -->
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet">

    <style>
        /* Import police Google Fonts si nécessaire */
        @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Roboto', sans-serif;
            background: linear-gradient(135deg, #e0f7fa, #fff);
            color: #333;
            line-height: 1.6;
        }

        /* Section hero */
        .hero {
            height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('../img/church-bg.jpg') center/cover no-repeat;
            color: white;
            padding: 20px;
        }

        .hero h2 {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 15px;
        }

        .hero p {
            font-size: 1.2rem;
            max-width: 600px;
            margin-bottom: 30px;
        }

        /* Boutons d'authentification */
        .auth-buttons {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .btn {
            background: #ff9800;
            color: white;
            padding: 12px 25px;
            border-radius: 25px;
            text-decoration: none;
            font-size: 1rem;
            font-weight: 500;
            transition: all 0.3s ease;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
        }

        .btn:hover {
            background: #e68900;
            transform: translateY(-3px);
        }

        /* Responsive */
        @media (max-width: 768px) {
            .hero h2 {
                font-size: 2rem;
            }

            .hero p {
                font-size: 1rem;
            }

            .auth-buttons {
                flex-direction: column;
                gap: 15px;
            }
        }
    </style>

</head>

<body>

    <section class="hero">
        <h2>Bienvenue dans notre système de gestion paroissiale</h2>
        <p>Gérez vos informations et participez à la vie de la paroisse.</p>
        <?php if (!isset($_SESSION['num_chretien_catho'])): ?>
            <div class="auth-buttons">
                <a href="login.php" class="btn">Se connecter</a>
                <a href="register.php" class="btn">S'inscrire</a>
            </div>
        <?php else: ?>
            <a href="dashboard.php" class="btn">Accéder à mon tableau de bord</a>
        <?php endif; ?>
    </section>
</body>

</html>
<?php include 'includes/footer.php'; ?>