/* ===== CLIENTFLOW AFRICA — Styles partagés du tunnel de vente ===== */
/* Chat IA liste d'attente, popup lead magnet, tripwire/bump/upsell, bandeau cookies */
/* Reprend la palette/typo de index.html : orange #e8722a, Space Grotesk / DM Sans */

/* ===== Chat widget liste d'attente ===== */
.cfa-chat{max-width:560px;margin:0 auto;background:#fff;border:1.5px solid #e2e8f0;border-radius:20px;box-shadow:0 20px 60px rgba(15,23,42,.08);overflow:hidden;display:flex;flex-direction:column;height:520px}
.cfa-chat-header{background:#0f172a;color:#fff;padding:16px 20px;display:flex;align-items:center;gap:10px;font-family:'Space Grotesk',sans-serif;font-weight:700;font-size:15px;flex-shrink:0}
.cfa-chat-header .dot{width:8px;height:8px;border-radius:50%;background:#25d366;animation:cfPulse 2s infinite}
@keyframes cfPulse{0%,100%{box-shadow:0 0 0 0 rgba(37,211,102,.5)}50%{box-shadow:0 0 0 6px rgba(37,211,102,0)}}
.chat-messages{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:12px;scroll-behavior:smooth}
.chat-msg{max-width:82%;padding:12px 16px;border-radius:14px;font-size:14.5px;line-height:1.55;opacity:0;transform:translateY(8px);animation:chatIn .35s ease forwards}
@keyframes chatIn{to{opacity:1;transform:translateY(0)}}
.chat-msg.bot{align-self:flex-start;background:#f8fafc;border:1px solid #e2e8f0;color:#0f172a;border-bottom-left-radius:4px}
.chat-msg.user{align-self:flex-end;background:#e8722a;color:#fff;border-bottom-right-radius:4px}
.chat-typing{align-self:flex-start;display:flex;gap:4px;padding:14px 16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;border-bottom-left-radius:4px}
.chat-typing span{width:6px;height:6px;border-radius:50%;background:#94a3b8;animation:typingBounce 1.2s infinite}
.chat-typing span:nth-child(2){animation-delay:.15s}
.chat-typing span:nth-child(3){animation-delay:.3s}
@keyframes typingBounce{0%,60%,100%{transform:translateY(0);opacity:.5}30%{transform:translateY(-4px);opacity:1}}
.chat-choices{display:flex;flex-wrap:wrap;gap:8px;align-self:flex-start;max-width:100%}
.chat-choice-btn{background:#fff;border:1.5px solid #e8722a;color:#e8722a;border-radius:100px;padding:9px 16px;font-size:13.5px;font-weight:600;cursor:pointer;transition:.2s;font-family:'DM Sans',sans-serif}
.chat-choice-btn:hover{background:#e8722a;color:#fff}
.chat-choice-btn.selected{background:#e8722a;color:#fff}
.chat-input-row{display:flex;gap:10px;padding:14px 16px;border-top:1.5px solid #e2e8f0;flex-shrink:0;background:#fff}
.chat-input{flex:1;padding:12px 16px;border:1.5px solid #e2e8f0;border-radius:100px;font-size:14px;font-family:inherit;outline:none;transition:border-color .2s}
.chat-input:focus{border-color:#e8722a}
.chat-send{background:#e8722a;color:#fff;width:44px;height:44px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:.2s;border:none;cursor:pointer}
.chat-send:hover{background:#c96120;transform:scale(1.05)}
.chat-send:disabled{opacity:.4;cursor:not-allowed}
.chat-final-cta{align-self:flex-start;text-decoration:none}

/* ===== Popup lead magnet ===== */
.cf-popup-overlay{position:fixed;inset:0;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;z-index:2000;padding:20px;opacity:0;pointer-events:none;transition:opacity .3s}
.cf-popup-overlay.show{opacity:1;pointer-events:auto}
.cf-popup{background:#fff;border-radius:20px;padding:40px;max-width:440px;width:100%;position:relative;text-align:center;transform:translateY(16px);transition:transform .3s}
.cf-popup-overlay.show .cf-popup{transform:translateY(0)}
.cf-popup-close{position:absolute;top:16px;right:16px;width:32px;height:32px;border-radius:50%;background:#f1f5f9;display:flex;align-items:center;justify-content:center;color:#64748b;border:none;cursor:pointer;font-size:16px}
.cf-popup-close:hover{background:#e2e8f0}

/* ===== Bandeau cookies ===== */
#cf-cookie-banner{position:fixed;bottom:0;left:0;right:0;z-index:1500;background:#0f172a;color:#e2e8f0;padding:18px 24px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;box-shadow:0 -8px 30px rgba(0,0,0,.15)}
#cf-cookie-banner p{font-size:13.5px;line-height:1.5;max-width:640px;margin:0}
#cf-cookie-banner a{color:#e8722a;font-weight:600}
.cf-cookie-actions{display:flex;gap:10px;flex-shrink:0}
.cf-cookie-decline,.cf-cookie-accept{border-radius:8px;padding:10px 18px;font-weight:600;font-size:13.5px;cursor:pointer;font-family:'DM Sans',sans-serif}
.cf-cookie-decline{background:transparent;border:1.5px solid #475569;color:#e2e8f0}
.cf-cookie-decline:hover{border-color:#94a3b8}
.cf-cookie-accept{background:#e8722a;border:none;color:#fff}
.cf-cookie-accept:hover{background:#c96120}

/* ===== Tripwire / bump / upsell (merci.html) ===== */
.tripwire-box{background:#fff;border:2px solid rgba(232,114,42,.5);border-radius:20px;padding:36px;box-shadow:0 20px 60px rgba(232,114,42,.12);position:relative;overflow:hidden}
.tripwire-urgency{display:inline-flex;align-items:center;gap:8px;background:rgba(232,114,42,.1);border:1px solid rgba(232,114,42,.3);border-radius:100px;padding:6px 14px;font-size:12px;font-weight:700;color:#e8722a;text-transform:uppercase;letter-spacing:.06em;margin-bottom:18px}
.tripwire-price-row{display:flex;align-items:baseline;gap:14px;margin:18px 0;flex-wrap:wrap}
.tripwire-anchor{font-size:20px;color:#94a3b8;text-decoration:line-through;font-weight:700}
.tripwire-price{font-family:'Space Grotesk',sans-serif;font-size:44px;font-weight:800;color:#e8722a}
.tripwire-bullets{display:flex;flex-direction:column;gap:12px;margin:24px 0;padding:0}
.tripwire-bullets li{display:flex;gap:10px;align-items:flex-start;font-size:15px;color:#0f172a;list-style:none}
.bump-offer{display:flex;align-items:flex-start;gap:12px;background:#f8fafc;border:1.5px dashed #e8722a;border-radius:14px;padding:16px 18px;margin:24px 0;cursor:pointer}
.bump-offer input{margin-top:3px;width:18px;height:18px;accent-color:#e8722a;flex-shrink:0}
.bump-offer span{font-size:14.5px;color:#0f172a;line-height:1.5}
.upsell-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:20px;margin-top:20px}
.upsell-card{background:#fff;border:1px solid #e2e8f0;border-radius:16px;padding:28px;transition:.3s}
.upsell-card:hover{transform:translateY(-4px);border-color:rgba(232,114,42,.4);box-shadow:0 16px 40px rgba(232,114,42,.1)}

@media(max-width:640px){
  .cfa-chat{height:460px}
  #cf-cookie-banner{flex-direction:column;align-items:stretch;text-align:center}
  .cf-cookie-actions{justify-content:center}
  .tripwire-price{font-size:36px}
}
