@php
    $emailPrimary = \App\Models\Setting::get('primary_color', '#b66420');
@endphp
<!DOCTYPE html>
<html lang="fr">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: #334155; margin: 0; padding: 24px; background: #f8fafc; }
        .card { background: #fff; border-radius: 12px; padding: 24px; max-width: 560px; margin: 0 auto; box-shadow: 0 1px 3px rgba(0,0,0,0.08); border-top: 4px solid {{ $emailPrimary }}; }
        h1 { color: {{ $emailPrimary }}; font-size: 18px; margin: 0 0 12px 0; }
        .muted { color: #64748b; font-size: 14px; }
    </style>
</head>
<body>
    <div class="card">
        <h1>E-mail de test</h1>
        <p>Si vous lisez ce message, la configuration SMTP de votre site fonctionne correctement.</p>
        <p class="muted">Envoyé le {{ now()->format('d/m/Y \à H:i') }} (fuseau : {{ config('app.timezone', 'UTC') }}).</p>
    </div>
</body>
</html>
