<!DOCTYPE html>
<html lang="fr">
  <head><meta charset="UTF-8"></head>
  <body style="font-family: Arial, sans-serif; background: #f1f5f9; margin: 0; padding: 32px 16px;">
    <div style="max-width: 480px; margin: 0 auto; background: white; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.12);">
      <div style="background: #0a0f1e; padding: 28px 32px; text-align: center;">
        <div style="display: inline-flex; align-items: center; gap: 10px;">
          <div style="width: 36px; height: 36px; background: #21409A; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center;">
            <svg width="22" height="22" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
              <rect x="2" y="6" width="20" height="12" rx="2" stroke="white" stroke-width="2"/>
              <path d="M6 12h2M10 12h8" stroke="white" stroke-width="2" stroke-linecap="round"/>
            </svg>
          </div>
          <span style="font-size: 22px; font-weight: 700; color: white; letter-spacing: -0.5px;">
            Scan Inventaire
          </span>
        </div>
      </div>
      <div style="padding: 40px 32px;">
        <h2 style="color: #0a0f1e; margin: 0 0 12px; font-size: 20px; font-weight: 700;">
          Votre code de connexion
        </h2>
        <p style="color: #475569; margin: 0 0 28px; font-size: 15px; line-height: 1.5;">
          Pour vous connecter à Scan Inventaire, entrez le code ci-dessous dans l'application :
        </p>
        <div style="background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 12px; padding: 28px; text-align: center; margin: 0 0 24px;">
          <span style="font-size: 40px; font-weight: 800; letter-spacing: 14px; color: #0a0f1e; font-family: 'Courier New', monospace;">
            {{ code }}
          </span>
        </div>
        <div style="background: #fef2f2; border-radius: 8px; padding: 12px 16px; margin-bottom: 24px;">
          <p style="color: #991b1b; margin: 0; font-size: 13px; font-weight: 500;">
            ⏱ Ce code expire dans <strong>{{ ttlMinutes }} minutes</strong>.
          </p>
        </div>
        <p style="color: #94a3b8; font-size: 12px; margin: 0; line-height: 1.6;">
          Si vous n'avez pas demandé ce code, ignorez cet email. Votre compte reste sécurisé.
        </p>
      </div>
      <div style="background: #f8fafc; padding: 16px 32px; text-align: center; border-top: 1px solid #e2e8f0;">
        <p style="color: #94a3b8; font-size: 11px; margin: 0;">
          Scan Inventaire — Emil Frey France
        </p>
      </div>
    </div>
  </body>
</html>
