<!DOCTYPE html>
<html lang="{{ lang|default:'fr' }}">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ page_title }}</title>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
            line-height: 1.6;
            color: #333;
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
            background-color: #f5f5f5;
        }
        .container {
            background-color: #ffffff;
            border-radius: 8px;
            padding: 30px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            text-align: center;
        }
        .icon {
            font-size: 48px;
            margin-bottom: 16px;
        }
        h1 {
            color: {{ header_color }};
            font-size: 24px;
            margin: 0 0 16px;
        }
        .message {
            font-size: 16px;
            color: #555;
            margin-bottom: 24px;
        }
        .event-title {
            font-size: 18px;
            font-weight: bold;
            color: #333;
            margin: 16px 0;
        }
        .event-date {
            color: #666;
            margin-bottom: 24px;
        }
        .error-container {
            background-color: #ffffff;
            border-radius: 8px;
            padding: 30px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            text-align: center;
        }
    </style>
</head>
<body>
    <div class="container">
        {% if error %}
        <div class="icon">&#10060;</div>
        <h1 style="color: #dc2626;">{{ error_title }}</h1>
        <p class="message">{{ error }}</p>
        {% else %}
        <div class="icon">{{ status_icon|safe }}</div>
        <h1>{{ heading }}</h1>
        {% if event_summary %}
        <div class="event-title">{{ event_summary }}</div>
        {% endif %}
        {% if event_date %}
        <div class="event-date">{{ event_date }}</div>
        {% endif %}
        <p class="message">{{ message }}</p>
        {% endif %}
    </div>
</body>
</html>
