<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
<header class="saas-header">
    <div class="header-content">
        
        <div class="business-info">
            <div data-i18n="certif_badge" class="certif-badge">
                🛡️ Normes Google Maps 2026
            </div>
            
            <h1 id="companyNameDisplay">
                <?php echo esc_html( $atts['company_name'] ); ?>
            </h1>
            
            <div data-i18n="premium_badge" class="premium-badge">
                💎 Premium Partner
            </div>
        </div>

        <div class="email-widget-card">
            <div data-i18n="save_audit" class="widget-title">
                💾 Save my Audit
            </div>
            <div data-i18n="save_desc" class="widget-desc">
                Enter your email to receive your unique access link and 72h safety alerts.
            </div>
            <div class="email-row" id="emailInputRow" style="display:flex; gap:10px;">
                <input type="email" id="userEmailInput" class="email-input" placeholder="email@example.com">
                <button data-i18n="send_btn" class="email-btn" onclick="AvisionDashboard.saveAudit()">Send</button>
            </div>
            <div class="secured-account" id="securedAccountRow" style="display:none; color:#d1fae5; font-weight:600; align-items:center; gap:10px;">
                <span>✅</span> <span id="userEmailDisplay">Connected</span>
            </div>
            <div data-i18n="secured_by" style="margin-top: 15px; font-size: 0.75rem; opacity: 0.5; text-align: center; color:white;">
                🔒 Secured by Avision Cloud Strategy
            </div>
        </div>
    </div>
</header>
