{% extends 'pdf/_base.html.twig' %}

{% block title %}Attestation RGPD - Suppression des donnees{% endblock %}
{% block font_size %}11px{% endblock %}
{% block info_grid_mb %}16px{% endblock %}
{% block info_cell_px %}12px{% endblock %}

{% block extra_styles %}
        .info-cell { border-left: 3px solid #dc2626; }
        .doc-type { background: #dc2626; }
        .attestation-box { border: 1px solid #ddd;  margin: 12px 0; }
        .attestation-header { background: #dc2626; color: #fff; padding: 6px 16px; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
        .attestation-body { padding: 14px 16px; background: #fef2f2; }
        .attestation-body p { line-height: 1.6; margin: 4px 0; font-size: 11px; }
        .badge { display: inline-block; padding: 2px 8px; background: #111827; color: #fabf04; font-weight: 700; text-transform: uppercase; font-size: 7px; letter-spacing: 1px; margin-bottom: 6px; }
        .warning { padding: 8px 12px; background: #fef2f2; border-left: 3px solid #dc2626; margin: 8px 0; font-size: 10px; font-weight: 700; }
{% endblock %}

{% block content %}
        <span class="doc-type">Suppression definitive</span>
        <h1>Attestation de suppression des donnees</h1>
        <div class="subtitle">RGPD &mdash; Article 17</div>
        <div class="info-grid">
            <div class="info-row">
                <div class="info-cell" style="width: 33%;"><span class="info-label">Reference</span><span class="info-value">{{ attestation.reference }}</span></div>
                <div class="info-cell" style="width: 33%;"><span class="info-label">Date</span><span class="info-value">{{ date|date('d/m/Y a H:i') }}</span></div>
                <div class="info-cell" style="width: 33%;"><span class="info-label">Adresse IP</span><span class="info-value">{{ ip }}</span></div>
            </div>
        </div>
        <div class="attestation-box">
            <div class="attestation-header">Attestation de suppression</div>
            <div class="attestation-body">
                <span class="badge">Action irreversible</span>
                <p><strong>La Association E-Cosplay atteste par la presente que :</strong></p>
                <p>Toutes les donnees de navigation associees a l'adresse IP <strong>{{ ip }}</strong> ont ete <strong>definitivement supprimees</strong> de nos systemes le <strong>{{ date|date('d/m/Y') }}</strong> a <strong>{{ date|date('H:i') }}</strong>, conformement a l'<strong>article 17</strong> du RGPD (Reglement UE 2016/679).</p>
                <p>Donnees supprimees : identifiants de session, evenements de navigation, informations techniques.</p>
            </div>
        </div>
        <div class="warning">Cette suppression est irreversible. Aucune donnee relative a cette adresse IP ne subsiste dans nos bases de donnees.</div>
{% endblock %}

