{% extends 'base.twig' %}

{% block title %}Hébergement et Infos Techniques - Ludikevent{% endblock %}

{% block body %}
    <div id="hosting" class="container mx-auto px-4 py-12">

        {# --- NOUVEAU BLOC EN-TÊTE --- #}
        <div class="max-w-5xl mx-auto mb-12 text-center">
            <img class="h-20 w-auto mx-auto mb-6" src="{{ asset('provider/images/logo.png') }}" alt="Ludikevent">
            <h1 class="text-4xl font-extrabold text-gray-900 mb-2 esrgaa-voice">
                Informations Légales et d'Hébergement
            </h1>
            <p class="text-gray-500 italic text-sm">Transparence technique et conformité infrastructure</p>
            <div class="h-1 w-24 bg-indigo-600 mx-auto mt-4 rounded-full"></div>
        </div>
        {# --- FIN DU BLOC EN-TÊTE --- #}

        <div class="max-w-6xl mx-auto space-y-8">

            <section class="bg-white p-6 md:p-8 rounded-xl shadow-lg border border-gray-100">
                <h2 class="text-2xl font-bold text-indigo-700 mb-6 flex items-center esrgaa-voice">
                    <svg xmlns="http://www.w3.org/2000/svg" class="h-7 w-7 mr-3 text-indigo-500" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
                        <path stroke-linecap="round" stroke-linejoin="round" d="M4 7v10M20 7v10M7 4h10M7 20h10M5 9h14M5 15h14M12 4v16"></path>
                    </svg>
                    Responsabilités - Éditeur et Opérateur Technique
                </h2>

                <div class="grid grid-cols-1 md:grid-cols-3 gap-6">
                    <div class="p-6 border border-gray-300 rounded-lg bg-gray-50 shadow-sm">
                        <h3 class="text-xl font-semibold text-gray-900 mb-4 flex items-center esrgaa-voice">
                            <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-2 text-indigo-600" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
                                <path stroke-linecap="round" stroke-linejoin="round" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 8h2m-7 0h2"></path>
                            </svg>
                            Responsabilité Technique
                        </h3>
                        <div class="bg-white p-4 border border-gray-200 rounded-lg space-y-1 text-xs">
                            <p class="font-semibold text-base text-gray-800 esrgaa-voice">SARL SITECONSEIL</p>
                            <p>27 RUE LE SERURIER, 02100 ST-QUENTIN</p>
                            <p>SIRET : 41866405800025</p>
                            <p>Contact : <a href="mailto:s.com@siteconseil.fr" class="text-indigo-600 hover:text-indigo-800">s.com@siteconseil.fr</a></p>
                        </div>
                    </div>

                    <div class="p-6 border border-blue-300 rounded-lg bg-blue-50 shadow-sm text-xs">
                        <h3 class="text-xl font-semibold text-gray-900 mb-4 flex items-center esrgaa-voice text-base">Infrastructure Cloud</h3>
                        <p class="mb-2 font-medium text-blue-800">Empreinte carbone : <strong>0,017 tCO₂e / mois</strong></p>
                        <div class="bg-white p-4 border border-blue-200 rounded-lg space-y-1">
                            <p class="font-semibold text-gray-800">Localisation : Pays-Bas</p>
                            <p>Région Google Cloud : eu-west4</p>
                        </div>
                    </div>

                    <div class="p-6 border border-indigo-300 rounded-lg bg-indigo-50 shadow-sm text-xs">
                        <h3 class="text-xl font-semibold text-gray-900 mb-4 flex items-center esrgaa-voice text-base">Éditeur du Site</h3>
                        <div class="bg-white p-4 border border-indigo-200 rounded-lg space-y-2">
                            <p class="font-semibold text-base text-gray-800 esrgaa-voice">LUDIKEVENT</p>
                            <p>SIRET : 930 488 408 00012</p>
                            <p>6, rue du Château 02800 Danizy</p>
                            <p><a href="mailto:lilian@ludikevent.fr" class="text-indigo-600 font-bold">lilian@ludikevent.fr</a></p>
                        </div>
                    </div>
                </div>
            </section>

            <h2 class="text-3xl font-bold text-gray-900 mb-4 mt-12 border-b pb-2 esrgaa-voice">
                Services Techniques et Prestataires
            </h2>

            <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">

                <section class="bg-white p-6 rounded-xl shadow-lg border border-gray-100 flex flex-col h-full">
                    <h3 class="text-lg font-bold text-indigo-700 mb-4">Gestion Sous-domaines</h3>
                    <div class="bg-green-50 p-4 border border-green-200 rounded-lg flex-grow">
                        <ul class="space-y-1 text-gray-700 text-xs font-mono">
                            <li>s3.esy-web.dev</li>
                            <li>sentry.esy-web.dev</li>
                            <li>mail.esy-web.dev</li>
                        </ul>
                    </div>
                </section>

                <section class="bg-white p-6 rounded-xl shadow-lg border border-gray-100 flex flex-col h-full">
                    <h3 class="text-lg font-bold text-indigo-700 mb-4">Cloudflare</h3>
                    <p class="text-xs text-gray-600 mb-4">Protection Anti-DDoS et Proxy DNS géré par SARL SITECONSEIL.</p>
                    <div class="bg-yellow-50 p-4 border border-yellow-200 rounded-lg">
                        <p class="text-xs font-bold text-yellow-800">Sécurité & CDN</p>
                    </div>
                </section>

                <section class="bg-white p-6 rounded-xl shadow-lg border border-gray-100 flex flex-col h-full">
                    <h3 class="text-lg font-bold text-indigo-700 mb-4">Monitoring (Sentry)</h3>
                    <p class="text-xs text-gray-600 mb-4">Analyse d'erreurs en temps réel pour garantir la disponibilité du service.</p>
                    <div class="bg-red-50 p-4 border border-red-200 rounded-lg">
                        <p class="text-xs font-bold text-red-800 font-mono">AUTO-HÉBERGÉ</p>
                    </div>
                </section>

                <section class="bg-white p-6 rounded-xl shadow-lg border border-gray-100 flex flex-col h-full">
                    <h3 class="text-lg font-bold text-indigo-700 mb-4">Noms de Domaine</h3>
                    <p class="text-xs text-gray-600 mb-4">Gestion des domaines et enregistrements DNS.</p>
                    <div class="bg-purple-50 p-4 border border-purple-200 rounded-lg text-xs">
                        <p>• OVH SAS</p>
                        <p>• Cloudflare Inc.</p>
                    </div>
                </section>

                <section class="bg-white p-6 rounded-xl shadow-lg border border-gray-100 md:col-span-2 lg:col-span-4 border-l-4 border-pink-500">
                    <h3 class="text-xl font-bold text-pink-700 mb-4 flex items-center">
                        <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path d="M3 8l7.842 5.234a1 1 0 001.034 0L21 8m-2 4v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4"></path></svg>
                        Esy Mail (Envoi d'E-mails)
                    </h3>
                    <div class="grid md:grid-cols-2 gap-6">
                        <div class="text-sm text-gray-700">
                            <p><strong>Serveur interne :</strong> mail.esy-web.dev (Auto-hébergé).</p>
                            <p><strong>Relais externe :</strong> Amazon SES (Simple Email Service).</p>
                        </div>
                        <div class="bg-red-50 p-4 border border-red-200 rounded-lg text-xs text-red-700">
                            <strong>IMPORTANT :</strong> En raison de cette architecture, Amazon SES peut potentiellement accéder au contenu technique des e-mails envoyés pour assurer la délivrabilité.
                        </div>
                    </div>
                </section>
            </div>

            <section class="bg-gray-900 p-8 rounded-xl shadow-lg text-white">
                <h2 class="text-2xl font-bold text-indigo-400 mb-6 flex items-center">
                    <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 mr-3" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg>
                    Conformité Légale et Sécurité
                </h2>
                <div class="grid md:grid-cols-3 gap-8 text-sm text-gray-300">
                    <p><strong>Sécurité :</strong> Protection multicouche via GCP, Cloudflare et monitoring Sentry.</p>
                    <p><strong>RGPD :</strong> Données traitées exclusivement dans l'Union Européenne (Pays-Bas).</p>
                    <p><strong>Loi Française :</strong> Conformité à l'Art. 227-24 du Code Pénal (Contrôle d'âge).</p>
                </div>

                <div class="mt-8 pt-6 border-t border-gray-700 flex flex-col md:flex-row justify-between items-center gap-4">
                    <p class="text-gray-400 text-sm italic text-center md:text-left">
                        Hébergeur technique : SARL SITECONSEIL – Non responsable du contenu éditorial.
                    </p>
                    <a href="mailto:signalement@siteconseil.fr" class="bg-red-600 hover:bg-red-700 text-white px-6 py-2 rounded-full font-bold transition">
                        SIGNALER UNE INFRACTION
                    </a>
                </div>
            </section>

        </div>
    </div>
{% endblock %}
