/* ========================================== */
/* VARIABLES GLOBALES & RESET GENERAL         */
/* ========================================== */
:root {
    --primary-blue: #0B192C;
    --secondary-blue: #1E3E62;
    --accent-cyan: #0066da;
    --accent-gold: #F39C12;
    --accent-green: #2ECC71;
    --accent-orange: #E67E22;
    --danger-red: #DC2626;
    --purple: #9333EA;
    --purple-dark: #6B21A8;
    --text-dark: #212c3b;
    --text-muted: #1b1e22;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --black: #000000;
    --border-color: #E2E8F0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.228);
    --shadow-md: 0 6px 18px rgba(11, 25, 44, 0.08);
    --shadow-lg: 0 12px 32px rgba(11, 25, 44, 0.12);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --container-width: 1200px;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
}

i.fas, i.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
}
i.fab, i.fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================== */
/* BOUTONS ET CLASSES UTILITAIRES             */
/* ========================================== */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg { padding: 12px 22px; font-size: 1rem; }
.btn-xl { padding: 16px 34px; font-size: 1.1rem; }
.btn-block { width: 100%; }

.btn-primary { 
    background: var(--accent-orange); 
    color: var(--white); 
    border-radius: 8px; 
    font-weight: 700; 
}
.btn-primary:hover { 
    background: var(--accent-gold); 
    color: var(--primary-blue); 
    transform: translateY(-2px); 
    box-shadow: var(--shadow-md); 
}

.btn-secondary { 
    background: rgba(255, 255, 255, 0.12); 
    color: var(--white); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-radius: 8px; 
    font-weight: 700; 
}
.btn-secondary:hover { 
    background: rgba(255, 255, 255, 0.25); 
    color: var(--white); 
}

.btn-log { 
    background: var(--secondary-blue); 
    color: var(--white); 
    border-radius: 8px; 
    font-weight: 700; 
}
.btn-log:hover { 
    background: var(--accent-cyan); 
    color: var(--white); 
    transform: translateY(-2px); 
}

.btn-outline { 
    background: transparent; 
    color: var(--primary-blue); 
    border: 1.5px solid var(--primary-blue); 
    border-radius: 8px; 
    font-weight: 700; 
}
.btn-outline:hover { 
    background: var(--primary-blue); 
    color: var(--white); 
}

.btn-gold { 
    background: var(--accent-gold); 
    color: var(--primary-blue); 
}
.btn-gold:hover { 
    background: var(--accent-orange); 
    color: var(--white); 
    transform: translateY(-2px); 
}

.btn-outline-gold { 
    background: transparent; 
    color: var(--secondary-blue); 
    border: 1.5px solid var(--secondary-blue); 
    padding: 10px 20px; 
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 0.95rem; 
}
.btn-outline-gold:hover { 
    background: var(--accent-gold); 
    color: var(--primary-blue); 
    border-color: var(--accent-gold); 
}

.text-gradient {
    background-image: linear-gradient(90deg, #E67E22 0%, #F39C12 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.text-gold { color: var(--accent-gold); }
.text-success { color: var(--accent-green); }
.text-blue { color: var(--accent-cyan); }
.text-center { text-align: center; }

/* Micro Badges & Couleurs */
.badge-mini {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    margin-left: 6px;
    display: inline-block;
}
.badge-tag {
    background: var(--accent-gold);
    color: var(--primary-blue);
    font-weight: 800;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 4px;
    align-self: flex-start;
}
.bg-primary { background: red; color: white; }
.bg-success { background: red; color: white; }
.bg-blue { background: #2162ec; }
.bg-indigo { background: #4F46E5; }
.bg-cyan { background: #047dce; }
.bg-orange { background: #EA580C; }
.bg-purple { background: #9333EA; }
.bg-purple-dark { background: #6B21A8; }
.bg-green { background: #16A34A; }
.bg-teal { background: #0D9488; }
.bg-dark { background: #000000; }
.bg-red { background: #DC2626; }
.bg-red-dark { background: #991B1B; }
.bg-gold { background: var(--accent-gold); }

/* ========================================== */
/* PRELOADER KIESBIPAY                        */
/* ========================================== */
#kiesbipay-preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--primary-blue);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#kiesbipay-preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}
.preloader-content {
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}
.preloader-logo {
    width: 140px;
    height: auto;
    margin: 0 auto 20px;
    animation: pulse 1.5s infinite alternate;
}
.preloader-spinner {
    width: 42px; height: 42px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-gold);
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 0.8s linear infinite;
}
.preloader-text {
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #94A3B8;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { from { transform: scale(0.95); } to { transform: scale(1.05); } }

/* ========================================== */
/* EN-TÊTE PRINCIPAL (HEADER & NAVBAR)        */
/* ========================================== */
.kiesbi-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}
.navbar {
    padding: 12px 0;
    position: relative;
}
.navbar-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand-logo {
    height: 48px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 22px;
    margin: 0; padding: 0;
}
.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 8px 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-cyan);
}
.caret-icon { font-size: 0.75rem; transition: var(--transition); }
.nav-item:hover .caret-icon { transform: rotate(180deg); }

/* Commutateur de Langue */
.nav-lang-switcher {
    display: flex;
    align-items: center;
}
.lang-switcher {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}
.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 6px;
    transition: var(--transition);
}
.lang-btn.active, .lang-btn:hover { color: var(--accent-cyan); }
.lang-divider { color: var(--border-color); font-size: 0.75rem; }

/* Mega Menu (12 Solutions) */
.mega-dropdown-item { position: static; }
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-top: 3px solid var(--accent-cyan);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
    padding: 30px 0;
    z-index: 990;
}
.mega-dropdown-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mega-menu-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr) 280px;
    gap: 25px;
}
.mega-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.mega-links { list-style: none; padding: 0; margin: 0; }
.mega-links li { margin-bottom: 8px; }
.mega-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition);
}
.mega-item:hover { background: var(--bg-light); }
.mega-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 0.95rem;
    flex-shrink: 0;
}
.mega-text strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.88rem;
}
.mega-text span {
    font-size: 0.76rem;
    color: var(--text-muted);
    line-height: 1.2;
    display: block;
}

.mega-banner-card {
    background: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    padding: 20px;
    border-radius: 12px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.mega-banner-card h3 { font-size: 1.05rem; margin: 10px 0; line-height: 1.3; }
.mega-banner-card p { font-size: 0.8rem; color: #CBD5E1; margin-bottom: 15px; }

/* Dropdown Standard */
.dropdown-item { position: relative; }
.dropdown-menu {
    position: absolute;
    top: 100%; left: 0;
    width: 230px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 10px 0;
    list-style: none;
    opacity: 0; visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 990;
}
.dropdown-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 18px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}
.dropdown-menu a:hover { background: var(--bg-light); color: var(--accent-cyan); }

/* Header Actions & Mobile Toggle */
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.signup-dropdown { position: relative; }
.dropdown-toggle-signup {
    padding: 8px 16px;
}

.signup-menu {
    position: absolute; right: 0; top: 100%;
    width: 280px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 10px;
    padding: 5px;
    display: none;
    z-index: 1000;
    border: 1px solid var(--border-color);
}

.signup-dropdown:hover .signup-menu { display: block; }
.signup-option {
    display: flex; align-items: center; gap: 6px;
    padding: 5px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}

.signup-option:hover { background: var(--accent-gold); }
.signup-option i { font-size: 1.25rem; }
.signup-option strong { display: block; font-size: 0.85rem; }
.signup-option small { color: var(--text-muted); font-size: 0.65rem; margin-top: -3px; display: block; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 0;
}
.mobile-toggle span {
    width: 100%;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: var(--transition);
}
.mobile-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ========================================== */
/* SECTION HERO & SIMULATEUR INTERACTIF      */
/* ========================================== */
.hero-section {
    background: linear-gradient(135deg, #0B192C 0%, #1E3E62 100%);
    color: var(--white);
    padding: 70px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 141, 218, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.badge-pulse {
    width: 10px;
    height: 10px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(243, 156, 18, 0.4);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(243, 156, 18, 0); }
    100% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0); }
}

.badge-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: #E2E8F0;
}

.hero-title {
    font-size: 2.75rem;
    line-height: 1.18;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: 1.05rem;
    color: #CBD5E1;
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 540px;
}

.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 35px;
}

.signup-main-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-mini-features {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.mini-feat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: #E2E8F0;
}

/* Simulateur Interactif Mockup */
.interactive-simulator-card {
    background: var(--white);
    color: var(--text-dark);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.simulator-header {
    background: #111827;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.simulator-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }

.simulator-title {
    color: #9CA3AF;
    font-size: 0.78rem;
    font-weight: 600;
}

.sim-badge-live {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
}

.simulator-body {
    padding: 24px;
}

.sim-merchant-info {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-light);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.sim-avatar {
    width: 38px;
    height: 38px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.sim-merchant-info h5 {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.sim-merchant-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sim-amount {
    margin-left: auto;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.sim-form-group {
    margin-bottom: 18px;
}

.sim-form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.sim-operator-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.sim-op-btn {
    background: var(--white);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.sim-op-btn img {
    height: 22px;
    width: auto;
    object-fit: contain;
}

.sim-op-btn span {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-dark);
}

.sim-op-btn.active, .sim-op-btn:hover {
    border-color: var(--accent-cyan);
    background: rgba(0, 141, 218, 0.05);
}

.sim-phone-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
}

.flag-prefix {
    background: var(--bg-light);
    padding: 10px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    border-right: 1px solid var(--border-color);
    color: var(--text-dark);
}

.flag-prefix img {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
}

.sim-phone-input-wrap input {
    width: 100%;
    border: none;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    outline: none;
}

/* Console d'état dynamique du simulateur */
.sim-status-box {
    margin-top: 15px;
    background: #F1F5F9;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.78rem;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.sim-status-step {
    display: none;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.sim-status-step.active {
    display: flex;
}

.simulator-footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.fee-notice { font-weight: 700; color: var(--accent-cyan); }

/* ========================================== */
/* SECTION LOGOS DES OPÉRATEURS              */
/* ========================================== */
.operators-bar-section {
    background: var(--white);
    padding: 30px 0;
    border-bottom: 1px solid var(--border-color);
}

.operators-title {
    text-align: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 20px;
}

.payments-operators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.payments-operators img {
    height: 36px;
    width: auto;
    object-fit: contain;
    filter: grayscale(20%);
    opacity: 0.85;
    transition: var(--transition);
}

.payments-operators img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-2px);
}

/* ========================================== */
/* COMPTEURS STATISTIQUES DYNAMIQUES          */
/* ========================================== */
.stats-counter-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--white);
    padding: 24px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-cyan);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(0, 141, 218, 0.1);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto 15px;
}

.stat-number-wrap {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    font-family: var(--font-heading);
    margin-bottom: 8px;
    line-height: 1;
}

.stat-number-text {
    font-size: 1.8rem;
    font-weight: 800;
}

.stat-symbol { color: var(--accent-gold); }

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ========================================== */
/* APERÇU DES 12 SOLUTIONS KIESBIPAY         */
/* ========================================== */
.solutions-overview-section {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    max-width: 720px;
    margin: 0 auto 50px;
}

.section-subtitle {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-cyan);
    letter-spacing: 1.5px;
    display: inline-block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.1rem;
    color: var(--primary-blue);
    margin-bottom: 14px;
}

.section-description {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.solution-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 141, 218, 0.3);
}

.solution-image-box {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bg-light);
}

.solution-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.solution-card:hover .solution-img {
    transform: scale(1.05);
}

.solution-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.solution-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.solution-title {
    font-size: 1.15rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.solution-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    line-height: 1.5;
}

.solution-bullets {
    list-style: none;
    margin-bottom: 22px;
    margin-top: auto;
}

.solution-bullets li {
    font-size: 0.82rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.solution-bullets i {
    color: var(--accent-green);
    font-size: 0.75rem;
    margin-top: 3px;
}

.solution-link {
    color: var(--accent-cyan);
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.solution-link i {
    transition: transform 0.3s ease;
}

.solution-link:hover i {
    transform: translateX(4px);
}

/* ========================================== */
/* SECTION TARIFS & COUVERTURE DES 12 PAYS   */
/* ========================================== */
.pricing-countries-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.pricing-box-wrapper {
    background: var(--white);
    border-radius: 20px;
    padding: 45px 35px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.pricing-header {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-header h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.pricing-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.countries-rate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.country-rate-card {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: var(--transition);
}

.country-rate-card:hover {
    border-color: var(--accent-cyan);
    background: var(--white);
}

.country-rate-card.featured-benin {
    background: linear-gradient(180deg, #FFFFFF 0%, #FFFBEB 100%);
    border: 2px solid var(--accent-gold);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.15);
}

.badge-featured {
    position: absolute;
    top: -12px;
    right: 15px;
    background: var(--accent-gold);
    color: var(--primary-blue);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
}

.country-flag-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.country-flag-title img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.country-flag-title h3 {
    font-size: 1.05rem;
    color: var(--primary-blue);
}

.rate-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 4px;
    font-family: var(--font-heading);
}

.rate-operators {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.payout-delay {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    gap: 5px;
}

.pricing-footer-note {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.pricing-footer-note p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

/* ========================================== */
/* POURQUOI CHOISIR KIESBIPAY (AVANTAGES)     */
/* ========================================== */
.why-us-section {
    padding: 80px 0;
    background: var(--white);
}

.features-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-box {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 30px 24px;
    text-align: center;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-cyan);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--white);
    margin: 0 auto 20px;
}

.feature-box h3 {
    font-size: 1.15rem;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.feature-box p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========================================== */
/* TEMOIGNAGES CLIENTS & AVIS                */
/* ========================================== */
.testimonials-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.testimonial-card {
    background: var(--white);
    border-radius: 14px;
    padding: 28px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-cyan);
}

.stars {
    color: var(--accent-gold);
    font-size: 0.85rem;
    margin-bottom: 15px;
    display: flex;
    gap: 3px;
}

.testimonial-text {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-user h4 {
    font-size: 0.92rem;
    color: var(--primary-blue);
}

.testimonial-user p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ========================================== */
/* BANDEAU DE SÉCURITÉ & CONFORMITÉ           */
/* ========================================== */
.security-banner-section {
    padding: 70px 0;
    background: linear-gradient(135deg, #0B192C 0%, #102A43 100%);
    color: var(--white);
}

.security-banner-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.sec-tag {
    color: var(--accent-gold);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
}

.security-text-side h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.security-text-side p {
    color: #CBD5E1;
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.security-badges-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sec-badge-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sec-badge-item i {
    font-size: 1.3rem;
}

.sec-badge-item strong {
    display: block;
    font-size: 0.88rem;
    color: var(--white);
}

.sec-badge-item small {
    color: #94A3B8;
    font-size: 0.75rem;
}

.security-visual-side {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.large-sec-badge {
    height: 110px;
    width: auto;
    object-fit: contain;
}

.isecurity-visual-side img{
    height: 80%;
    width: 100%;
    border-radius: 50px;
    align-items: center;
    justify-content: center;
}


/* ========================================== */
/* SECTION CALL TO ACTION FINAL              */
/* ========================================== */
.final-cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
}

.final-cta-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.final-cta-desc {
    font-size: 1.05rem;
    color: #CBD5E1;
    max-width: 650px;
    margin: 0 auto 35px;
}

.final-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ========================================== */
/* MODALE UNIVERSELLE KIESBIPAY               */
/* ========================================== */
.kiesbi-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 25, 44, 0.75);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.kiesbi-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.kiesbi-modal-card {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 460px;
    padding: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    text-align: center;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.kiesbi-modal-overlay.active .kiesbi-modal-card {
    transform: translateY(0) scale(1);
}

.kiesbi-modal-close {
    position: absolute;
    top: 15px;
    right: 18px;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.kiesbi-modal-close:hover {
    color: var(--danger-red);
}

.kiesbi-modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 141, 218, 0.12);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 18px;
}

.kiesbi-modal-icon.success {
    background: rgba(46, 204, 113, 0.12);
    color: var(--accent-green);
}

.kiesbi-modal-icon.error {
    background: rgba(220, 38, 38, 0.12);
    color: var(--danger-red);
}

.kiesbi-modal-icon.warning {
    background: rgba(243, 156, 18, 0.12);
    color: var(--accent-gold);
}

.kiesbi-modal-title {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.kiesbi-modal-body {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.kiesbi-modal-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* ========================================== */
/* PIED DE PAGE INSTITUTIONNEL (FOOTER)      */
/* ========================================== */
.kiesbi-footer {
    background: var(--primary-blue);
    color: var(--white);
    padding-top: 60px;
    font-size: 0.88rem;
}

.footer-top {
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: flex-start;
}

.footer-logo {
    height: 48px;
    width: auto;
    margin-bottom: 15px;
}

.footer-tagline {
    color: #CBD5E1;
    font-size: 0.88rem;
    margin-bottom: 20px;
    max-width: 480px;
}

.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact-link {
    color: #E2E8F0;
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-link:hover {
    color: var(--accent-cyan);
}

.footer-contact-link.whatsapp-color {
    color: #25D366;
    font-weight: 600;
}

.footer-payments-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
}

.payments-title {
    font-size: 0.8rem;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

.payments-grid {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.payments-grid img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.footer-main {
    padding: 50px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-col-title {
    font-size: 0.95rem;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-gold);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 0.84rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    transform: translateX(3px);
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--accent-cyan);
}

.flags-desc {
    font-size: 0.8rem;
    color: #94A3B8;
    margin-bottom: 10px;
}

.flags-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.flags-grid span {
    font-size: 0.72rem;
    color: #CBD5E1;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 6px;
    border-radius: 4px;
}

.flags-grid img {
    width: 16px;
    height: 11px;
    object-fit: cover;
    border-radius: 1px;
}

.footer-security-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sec-badge {
    height: 38px;
    width: auto;
}

.pci-compliance-text {
    font-size: 0.72rem;
    color: #94A3B8;
    line-height: 1.4;
}

.footer-bottom {
    padding: 20px 0;
    background: #07101C;
}

.footer-bottom-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright-text {
    font-size: 0.8rem;
    color: #94A3B8;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: #94A3B8;
}

.footer-legal-links a {
    color: #94A3B8;
}

.footer-legal-links a:hover {
    color: var(--white);
}

.back-to-top-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.back-to-top-btn:hover {
    background: var(--accent-cyan);
    transform: translateY(-3px);
}

/* ========================================== */
/* RESPONSIVE DESIGN FOR ALL BREAKPOINTS      */
/* ========================================== */

/* 1. MEDIA QUERY : <= 1200PX (Laptops & Tablettes horizontales) */
@media (max-width: 1200px) {
    :root {
        --container-width: 960px;
    }
    
    .hero-title { font-size: 2.3rem; }
    .solutions-grid { gap: 20px; }
    .mega-menu-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .mega-banner { display: none; }
    .countries-rate-grid { grid-template-columns: repeat(3, 1fr); }

    .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    }

    .stat-card {
        background: var(--white);
        padding: 16px 12px;
        border-radius: 12px;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
        text-align: center;
        transition: var(--transition);
    }
}

/* 2. MEDIA QUERY : <= 992PX (Tablettes en mode portrait) */
@media (max-width: 992px) {
    :root {
        --container-width: 720px;
    }

    /* Activation Menu Mobile */
    .mobile-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 72px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 72px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 25px;
        overflow-y: auto;
        transition: left 0.3s ease;
        gap: 15px;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.active { left: 0; }
    .nav-item { width: 100%; }
    .nav-link { width: 100%; justify-content: space-between; font-size: 1rem; }
    
    /* Mega Menu Accordion Mobile */
    .mega-dropdown-item { position: relative; }
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        padding: 10px 0;
        display: none;
    }
    .mega-dropdown-item.active .mega-menu { display: block; }
    .mega-menu-container {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        display: none;
        padding-left: 15px;
    }
    .dropdown-item.active .dropdown-menu { display: block; }

    /* Layout Grids Adaptation */
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-content { text-align: center; }
    .hero-description { margin-left: auto; margin-right: auto; }
    .hero-cta-group { align-items: center; }
    .signup-main-cta { justify-content: center; }
    .hero-mini-features { justify-content: center; }

    .solutions-grid { grid-template-columns: repeat(2, 1fr); }
    .countries-rate-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .security-banner-wrapper { grid-template-columns: 1fr; text-align: center; }
    .sec-badge-item { text-align: left; }
    
    .footer-top-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 3. MEDIA QUERY : <= 720PX (Smartphones larges / Phablettes) */
@media (max-width: 720px) {
    :root {
        --container-width: 500px;
    }

    .hero-title { font-size: 2rem; }
    .solutions-grid { grid-template-columns: 1fr; }
    .countries-rate-grid { grid-template-columns: 1fr; }
    .features-grid-3 { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }

    .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    }

    .stat-card {
        background: var(--white);
        padding: 16px 12px;
        border-radius: 12px;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
        text-align: center;
        transition: var(--transition);
    }

    .sim-operator-grid { grid-template-columns: repeat(2, 1fr); }
    
    .pricing-box-wrapper { padding: 30px 20px; }
    .pricing-header h2 { font-size: 1.6rem; }
    .rate-amount { font-size: 1.6rem; }

    .final-cta-title { font-size: 1.7rem; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* 4. MEDIA QUERY : <= 520PX (Smartphones Standards) */
@media (max-width: 520px) {
    .hero-section { padding: 45px 0 60px; }
    .hero-title { font-size: 1.75rem; }
    .hero-description { font-size: 0.92rem; }

    .signup-main-cta {
        flex-direction: column;
        width: 100%;
    }
    .signup-main-cta .btn {
        width: 100%;
    }

    .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    }

    .stat-card {
        background: var(--white);
        padding: 16px 12px;
        border-radius: 12px;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
        text-align: center;
        transition: var(--transition);
    }
    
    .sim-merchant-info {
        flex-wrap: wrap;
    }
    .sim-amount {
        width: 100%;
        margin-left: 0;
        margin-top: 5px;
        text-align: right;
    }

    .final-cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    .final-cta-buttons .btn {
        width: 100%;
    }

    .footer-bottom-wrapper {
        flex-direction: column;
        text-align: center;
    }
}

/* 5. MEDIA QUERY : <= 480PX (Petits Smartphones) */
@media (max-width: 480px) {
    .container { padding: 0 15px; }

    .brand-logo { height: 40px; }
    .navbar-actions .btn-outline { display: none; }

    .hero-badge {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    .badge-text { font-size: 0.75rem; }

    .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    }

    .stat-card {
        background: var(--white);
        padding: 14px 10px;
        border-radius: 12px;
        border: 1px solid var(--border-color);
        box-shadow: var(--shadow-sm);
        text-align: center;
        transition: var(--transition);
    }

    .simulator-body { padding: 16px; }
    
    .flags-grid { grid-template-columns: repeat(2, 1fr); }

    .kiesbi-modal-card {
        padding: 22px 16px;
    }
    .kiesbi-modal-title { font-size: 1.15rem; }
    .kiesbi-modal-body { font-size: 0.85rem; }
}

/* 6. MEDIA QUERY : <= 360PX (Smartphones très étroits: iPhone SE, Galaxy Fold plié) */
@media (max-width: 360px) {
    html { font-size: 14px; }
    .container { padding: 0 10px; }

    .brand-logo { height: 35px; }
    .hero-title { font-size: 1.55rem; }
    .hero-description { font-size: 0.85rem; }

    .btn { padding: 8px 14px; font-size: 0.85rem; }
    .btn-lg { padding: 10px 16px; font-size: 0.9rem; }
    .btn-xl { padding: 12px 20px; font-size: 0.95rem; }

    .sim-op-btn { padding: 6px; }
    .sim-op-btn img { height: 18px; }
    .sim-op-btn span { font-size: 0.65rem; }

    .flag-prefix { padding: 8px; font-size: 0.75rem; }
    .sim-phone-input-wrap input { padding: 8px; font-size: 0.8rem; }

    .stat-number-wrap { font-size: 1.7rem; }
    .section-title { font-size: 1.6rem; }
    .solution-content { padding: 16px; }

    .footer-contact-link { font-size: 0.78rem; word-break: break-all; }
    .country-flag-title h3 { font-size: 0.95rem; }
    .rate-amount { font-size: 1.4rem; }
}
