Cotation Assurance Auto - Standalone
⚠️ Information importante
Veuillez fournir des informations exactes concernant votre véhicule. Toute fausse déclaration constitue une fraude.
💰 Décompte des primes
🎁 Paiement en ligne • Livraison de votre contrat offerte
ℹ️ Information
Seules les catégories 1, 2 et 3 sont supportées.
📄 Documents requis
- Carte grise ou certificat de vente
- Permis de conduire ou CNI
- Coordonnées complètes
📞 Contact
📱WhatsApp : +237 6 53 41 46 80
📧Email : contact@cotationauto.online
`;
if (mdr > 0) h += `
DR${mdr.toLocaleString()} F
`;
if (miac > 0) h += `
IAC${miac.toLocaleString()} F
`;
h += `
Prime Nette${pn.toLocaleString()} F
`;
h += `
Accessoires${acc.toLocaleString()} F
`;
h += `
ASAC${asac.toLocaleString()} F
`;
h += `
TVA (19,25%)${tva.toLocaleString()} F
`;
h += `
Carte Rose${cr.toLocaleString()} F
`;
if (vign > 0) h += `
Vignette${vign.toLocaleString()} F
`;
h += `
Prime Totale${tot.toLocaleString()} F
`;
document.getElementById('details').innerHTML = h;
let rec = `
• Catégorie ${cat}
`;
rec += `
• Zone ${z}
`;
rec += `
• ${ch} chevaux (${carb})
`;
rec += `
• Période : ${{'2':'2 mois','4':'4 mois','6':'6 mois','12':'1 an'}[p]}
`;
if (p === "12") rec += `
✓ Réduction 10% appliquée
`;
document.getElementById('recap').innerHTML = rec;
document.getElementById('resultat').classList.remove('hidden');
document.getElementById('resultat').scrollIntoView({ behavior: 'smooth' });
} catch (error) {
alert('Une erreur est survenue lors du calcul. Veuillez réessayer.');
} finally {
btnText.innerHTML = originalText;
this.classList.remove('loading');
}
}, 500);
});
document.getElementById('btn-whatsapp').addEventListener('click', function() {
if (!R) return;
const m = `Bonjour, je souhaite souscrire à une assurance auto.%0APrime totale: ${R.tot.toLocaleString()} FCFA`;
window.open(`https://wa.me/237653414680?text=${m}`, '_blank');
});
document.getElementById('btn-agency').addEventListener('click', function() {
window.open('https://maps.app.goo.gl/zBA2pLYb3YxgARq29', '_blank');
});