/* Afroly — thème bleu (visuel seulement : aucune fonction ni aucun lien ne change).
   Chargé en dernier : il redéfinit les couleurs, les arrondis et les ombres. */
:root {
  --af-ink: #0f1d3f;
  --af-ink-soft: #5c6b8a;
  --af-cream: #f4f7fd;
  --af-sand: #eaf1ff;
  --af-line: #dfe7f5;
  --af-gold: #1a5fe0;
  --af-gold-soft: #d6e4ff;
  --af-leaf: #22b573;
  --af-brand: #1a5fe0;
  --af-brand-dark: #1348b8;
  --af-grad: linear-gradient(135deg, #0b47d1 0%, #1a63ee 55%, #3b86ff 100%);
  --af-radius: 14px;
  --af-shadow: 0 6px 22px rgba(18, 60, 160, .08);
}
body.af-body { background: #f7f9fe; color: var(--af-ink); }

/* Barre d'annonce claire */
.af-topbar { background: #e4eeff; color: var(--af-ink); font-weight: 500; }
.af-topbar a { color: var(--af-brand) !important; background: #fff; border: 1px solid var(--af-brand); border-radius: 999px; padding: 3px 12px; text-decoration: none; margin-left: 10px; font-weight: 600; }
.af-header { background: rgba(255,255,255,.96); }
.af-header.is-stuck { border-bottom-color: var(--af-line); box-shadow: 0 2px 14px rgba(18,60,160,.06); }
.af-logo .af-mark, .af-footer .af-mark, .af-mark { color: var(--af-leaf); }
.af-nav a:hover { color: var(--af-brand) !important; }
.af-badge { background: var(--af-brand) !important; }

/* Boutons */
.af-btn, .af-body .btn { border-radius: 10px; }
.af-btn-dark { background: var(--af-brand); border-color: var(--af-brand); color: #fff !important; box-shadow: 0 4px 14px rgba(26,95,224,.25); }
.af-btn-dark:hover { background: var(--af-brand-dark); border-color: var(--af-brand-dark); }
.af-btn-outline { border-color: var(--af-brand); color: var(--af-brand) !important; background: #fff; }
.af-btn-outline:hover { background: var(--af-brand); color: #fff !important; }
.af-btn-gold { background: #fff; border-color: #fff; color: var(--af-brand) !important; }
.af-body .btn-primary, .af-body .btn-dark, .af-body .btn.btn-dark, .af-body .btn-success {
  background: var(--af-brand) !important; border-color: var(--af-brand) !important; color: #fff !important; }
.af-body .btn-primary:hover, .af-body .btn-dark:hover, .af-body .btn.btn-dark:hover { background: var(--af-brand-dark) !important; border-color: var(--af-brand-dark) !important; }
.af-body .btn-outline-primary, .af-body .btn-outline-dark, .af-body .btn.btn-outline-dark { color: var(--af-brand) !important; border-color: var(--af-brand) !important; background: #fff !important; }
.af-body .btn-outline-primary:hover, .af-body .btn-outline-dark:hover, .af-body .btn.btn-outline-dark:hover { background: var(--af-brand) !important; color: #fff !important; }

/* Blocs sombres → dégradé bleu */
.af-free, .af-ai, .af-body .bg-gradient-primary, .af-body .bg-primary, .af-body .hero-section,
.af-body .page-header, .af-body .gradient-bg, .af-body .card-header.bg-primary {
  background: var(--af-grad) !important; color: #fff !important; border-radius: 18px; }
.af-free, .af-ai { box-shadow: 0 14px 40px rgba(26,95,224,.22); }
.af-body .bg-dark, .af-body .table-dark, .af-body thead.table-dark th { background: #0f2a66 !important; }

/* Cartes, champs, puces */
.af-body .card, .af-body .modal-content, .af-body .dropdown-menu, .af-body .list-group { border-radius: var(--af-radius); }
.af-body .card { border-color: var(--af-line); box-shadow: var(--af-shadow); }
.af-body .form-control, .af-body .form-select, .af-searchbar input { border-radius: 10px; }
.af-body .badge { border-radius: 999px; }
.af-body .list-group-item.active, .af-body .nav-pills .nav-link.active, .af-body .page-item.active .page-link { background: var(--af-brand); border-color: var(--af-brand); }
.af-body .badge.bg-primary { background: var(--af-brand) !important; }
.af-body a:not(.btn):not(.af-btn):not(.nav-link):not(.dropdown-item) { text-decoration-color: rgba(26,95,224,.4); }

/* ───────── Espace vendeur (même thème, appliqué à toutes ses pages) ───────── */
body .dsb { background: linear-gradient(180deg, #0a3fc0 0%, #1558e0 58%, #2a74f5 100%) !important; }
body .dsb-logo-icon { background: #fff !important; color: #1a5fe0 !important; }
body .dsb-back, body .shop-sw { background: rgba(255,255,255,.12) !important; border-radius: 12px !important; }
body .nl { border-radius: 12px; }
body .nl.active { background: rgba(255,255,255,.2) !important; }
body .nl-badge { background: #fff !important; color: #1a5fe0 !important; border-radius: 999px !important; }
body .greet, body .comm-card { background: linear-gradient(120deg, #0b47d1 0%, #1a63ee 60%, #3b86ff 100%) !important; border-radius: 18px !important; box-shadow: 0 12px 32px rgba(26,95,224,.22); }
body .btn-gw { background: #fff !important; color: #1a5fe0 !important; border-radius: 10px !important; }
body .btn-gw:hover { color: #1348b8 !important; }
body .btn-go { border-radius: 10px !important; }
body .btn-wa { background: rgba(255,255,255,.22) !important; border: 1.5px solid rgba(255,255,255,.55) !important; border-radius: 10px !important; color: #fff !important; }
body .dc, body .kpi, body .kpi-mini { border-radius: 16px !important; box-shadow: 0 6px 22px rgba(18,60,160,.07) !important; border-color: #e3ebf9 !important; }
body .dsb-top { background: #fff; border-bottom-color: #e3ebf9; }
body .top-icon, body .nav-toggle-btn { background: #eaf1ff; color: #1a5fe0; }
body .top-av { background: #1a5fe0; }
body .btn-save, body .btn-cancel, body .flt-bar .flt-btn, body .flt-bar .flt-btn-outline, body .btn-upgrade-s { border-radius: 10px !important; }
body .btn-save, body .flt-bar .flt-btn { background: #1a5fe0 !important; }
body .btn-save:hover, body .flt-bar .flt-btn:hover { background: #1348b8 !important; }
body .sp { border-radius: 999px !important; }
body .act-btn { border-radius: 10px !important; }
body .act-btn:hover { background: #eaf1ff !important; }
body .kpi-mini-ico.g, body .kpi-ico.g { background: #e3edff !important; color: #1a5fe0 !important; }
body .fsec-title { color: #1a5fe0; }
body .form-control:focus, body .form-select:focus { border-color: #1a5fe0; box-shadow: 0 0 0 3px rgba(26,95,224,.14); }

/* ───────── Corrections de lisibilité ───────── */
.af-body h5.text-warning, .af-body h6.text-warning, .af-body h4.text-warning, .af-body .border-bottom.text-warning { color: #1a5fe0 !important; }
.af-body .text-warning { color: #d98a00 !important; }
.af-body .fa-star.text-warning, .af-body i.fas.fa-star.text-warning { color: #f5a623 !important; }
.af-body .bg-warning, .af-body .badge.bg-warning { background: #fde68a !important; color: #7a4a00 !important; }
.af-body .card-header.bg-success, .af-body .card-header.bg-info { background: var(--af-grad) !important; color: #fff !important; }
.af-body h5.text-success, .af-body h5 .text-success, .af-body h4.text-success { color: #1a5fe0 !important; }

/* ───────── Accueil : sections sous le hero (maquette bleue) ───────── */
.hm-strip{padding:6px 0 0}
.hm-strip-row{display:grid;grid-template-columns:repeat(4,1fr);background:#eef3fd;border-radius:14px;padding:6px 10px}
.hm-strip-row>div{display:flex;align-items:center;justify-content:center;gap:12px;padding:18px 10px;font-size:.84rem;font-weight:600;color:#0f1d3f;position:relative}
.hm-strip-row>div+div:before{content:"";position:absolute;left:0;top:26%;height:48%;width:1px;background:#d3dff5}
.hm-strip-row i{color:#1a5fe0;font-size:1.05rem}
.hm-sec{padding:34px 0}
.hm-h2{font-family:'Playfair Display',serif;font-weight:700;font-size:clamp(1.5rem,2.4vw,1.95rem);color:#0f1d3f;margin:0 0 20px}
.hm-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:6px}
.hm-head small{color:#5b6b8c;font-size:.8rem}
.hm-head a,.hm-link,.hm-ops a{color:#1a5fe0;font-weight:600;font-size:.8rem;text-decoration:none}
.hm-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.hm-card{display:block;background:#fff;border:1px solid #dfe7f5;border-radius:16px;overflow:hidden;text-decoration:none;color:#0f1d3f;box-shadow:0 6px 20px rgba(26,95,224,.07);transition:transform .2s,box-shadow .2s}
.hm-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(26,95,224,.14)}
.hm-card>img{width:100%;aspect-ratio:3/2;object-fit:cover;display:block}
.hm-card>div{padding:16px 18px 18px}
.hm-card h3{font-family:'DM Sans',sans-serif;font-weight:700;font-size:1.02rem;margin:0 0 6px;color:#0f1d3f}
.hm-card p{font-size:.82rem;color:#4b5b7c;margin:0 0 10px;line-height:1.5}
.hm-card span{color:#1a5fe0;font-weight:600;font-size:.82rem}
.hm-shop>.hm-shop-row{display:flex;align-items:center;gap:12px;padding:14px 16px}
.hm-shop .hm-shop-row h3{margin:0;font-size:.95rem}.hm-shop .hm-shop-row p{margin:2px 0 0;font-size:.75rem}
.hm-go{margin-left:auto;color:#1a5fe0;border:1px solid #dfe7f5;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;font-size:.7rem;flex:none}
.hm-ico{flex:none;width:44px;height:44px;border-radius:12px;background:#eaf1ff;color:#1a5fe0;display:grid;place-items:center;font-size:1.05rem}
.hm-steps{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:12px}
.hm-steps>div{display:flex;gap:14px;align-items:center;background:#fff;border:1px solid #dfe7f5;border-radius:14px;padding:18px}
.hm-steps h3{font-family:'DM Sans',sans-serif;font-size:.95rem;font-weight:700;margin:0 0 4px;color:#0f1d3f}.hm-steps p{margin:0;font-size:.78rem;color:#4b5b7c;line-height:1.45}
.hm-arr{color:#1a5fe0;font-size:.9rem}
.hm-create{display:grid;grid-template-columns:1.05fr 1fr;gap:40px;align-items:center;background:linear-gradient(120deg,#f4f8ff,#fff);border-radius:22px;overflow:hidden}
.hm-create-img img{width:100%;height:100%;min-height:300px;object-fit:cover;display:block;border-radius:22px}
.hm-create-copy{padding:20px 30px 20px 0}
.hm-create-copy h2{font-family:'Playfair Display',serif;font-weight:700;font-size:clamp(1.6rem,2.6vw,2.15rem);color:#0f1d3f;margin:0 0 18px;line-height:1.2}
.hm-create-copy ul{list-style:none;padding:0;margin:0 0 22px}.hm-create-copy li{margin:10px 0;font-size:.92rem;color:#0f1d3f}.hm-create-copy li i{color:#22b573;margin-right:8px}
.hm-btn{display:inline-block;background:#1a5fe0;color:#fff!important;border-radius:10px;padding:12px 22px;font-weight:700;font-size:.9rem;text-decoration:none;box-shadow:0 6px 16px rgba(26,95,224,.3)}
.hm-btn:hover{background:#1348b8}.hm-btn-white{background:#fff;color:#1a5fe0!important;box-shadow:none}
.hm-ai{background:linear-gradient(180deg,#eef4ff,#f7faff);border-radius:20px;border:1px solid #dfe7f5;overflow:hidden}
.hm-ai-top{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:26px;align-items:center;padding:30px 32px}
.hm-ai h2{font-family:'Playfair Display',serif;font-weight:700;font-size:clamp(1.4rem,2.2vw,1.8rem);color:#0f1d3f;margin:0 0 10px;line-height:1.2}
.hm-ai p{font-size:.84rem;color:#4b5b7c;margin:0 0 14px}
.hm-pills{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.hm-pills span{background:#fff;border:1px solid #dfe7f5;border-radius:10px;padding:7px 12px;font-size:.78rem;font-weight:600;color:#0f1d3f}
.hm-ai-list{list-style:none;margin:0;padding:0}.hm-ai-list li{display:flex;gap:12px;align-items:center;padding:12px 0;font-size:.84rem;color:#0f1d3f}.hm-ai-list i{color:#1a5fe0;width:22px;text-align:center}
.hm-mock{background:#fff;border:1px solid #dfe7f5;border-radius:12px;box-shadow:0 10px 26px rgba(26,95,224,.15);overflow:hidden}
.hm-mock-bar{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;border-bottom:1px solid #eef2fa}.hm-mock-bar b{font-family:'Playfair Display',serif;color:#0f1d3f;font-size:.8rem}.hm-mock-bar i{width:44px;height:10px;border-radius:5px;background:#1a5fe0}
.hm-mock-body{display:grid;grid-template-columns:84px 1fr;gap:10px;padding:10px}.hm-mock-side{background:#f4f7fd;border-radius:8px;padding:8px;display:grid;gap:6px;align-content:start}.hm-mock-side u{display:block;height:8px;border-radius:4px;background:#dfe7f5;text-decoration:none;font-size:.45rem;color:#1a5fe0;line-height:8px}
.hm-mock em{font-style:normal;font-size:.7rem;font-weight:700;color:#0f1d3f}.hm-mock-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:6px}.hm-mock-grid img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px}
.hm-ai-bot{display:flex;flex-wrap:wrap;gap:12px 18px;align-items:center;padding:14px 32px;background:#fff;border-top:1px solid #dfe7f5;font-size:.8rem;color:#0f1d3f;font-weight:600}
.hm-ai-bot b{font-weight:600;display:inline-flex;gap:6px;align-items:center}.hm-ai-bot .wa i{color:#25d366}.hm-ai-bot .fb i{color:#1877f2}.hm-ai-bot .ig i{color:#e1306c}.hm-ai-bot .tt i{color:#000}.hm-ai-bot .yt i{color:#f00}
.hm-ops{display:grid;grid-template-columns:auto 1fr;gap:30px;align-items:center}
.hm-ops h2{font-family:'Playfair Display',serif;font-weight:700;font-size:clamp(1.3rem,2vw,1.6rem);color:#0f1d3f;margin:0;max-width:300px}
.hm-ops-logos{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.hm-ops-logos span{background:#fff;border:1px solid #dfe7f5;border-radius:10px;padding:10px 16px;font-weight:800;font-size:.85rem;box-shadow:0 4px 12px rgba(26,95,224,.06)}
.hm-ops-logos .mtn{color:#111;border-left:6px solid #ffcc00}.hm-ops-logos .orange{color:#111;border-left:6px solid #ff7900}.hm-ops-logos .mpesa{color:#d71920}.hm-ops-logos .airtel{color:#e4002b}.hm-ops-logos .moov{color:#0a63d1}.hm-ops-logos .free{color:#e4002b;font-style:italic}
.hm-ops-logos a{flex-basis:100%}
.hm-cta{display:flex;justify-content:space-between;align-items:center;gap:20px;background:var(--af-grad);color:#fff;border-radius:18px;padding:28px 34px}
.hm-cta h2{font-family:'Playfair Display',serif;font-weight:700;font-size:clamp(1.3rem,2.2vw,1.7rem);color:#fff;margin:0 0 6px}.hm-cta p{margin:0;opacity:.92;font-size:.88rem}
@media(max-width:900px){
 .hm-strip-row{grid-template-columns:1fr 1fr}.hm-strip-row>div:nth-child(3):before{display:none}
 .hm-cards{grid-template-columns:1fr}.hm-steps{grid-template-columns:1fr}.hm-arr{transform:rotate(90deg);justify-self:center}
 .hm-create{grid-template-columns:1fr;gap:0}.hm-create-copy{padding:22px}
 .hm-ai-top{grid-template-columns:1fr;padding:22px}.hm-ai-bot{padding:14px 22px}
 .hm-ops{grid-template-columns:1fr}.hm-cta{flex-direction:column;align-items:flex-start}
}

/* ───────── Sélecteur de langue FR / EN ───────── */
.af-lang{display:inline-flex;gap:2px;background:#eef3fd;border:1px solid #dfe7f5;border-radius:999px;padding:2px;margin-right:6px;vertical-align:middle}
.af-lang a{font-size:.7rem;font-weight:700;color:#0f1d3f;text-decoration:none;padding:4px 9px;border-radius:999px;line-height:1.2;white-space:nowrap}
.af-lang a.on{background:#1a5fe0;color:#fff}
.af-lang a:not(.on):hover{background:#dfe9ff}
@media(max-width:480px){.af-lang a{padding:4px 7px}}
