/* ============================================================
   MICROFINANCE IMUHIRA S.A — style.css
   Thème : bleu #1012A1 + rouge #D32A2C
   Layout 100% FLUID : contenu sur toute la largeur disponible,
   grilles auto-adaptatives (auto-fit / minmax) pour tous les écrans.
   ============================================================ */

:root {
    --primary: #1012A1;
    --primary-dark: #0B0D75;
    --primary-light: #E7E7FD;
    --accent: #D32A2C;
    --accent-light: #FEE5E5;
    --secondary: #555B6B;
    --secondary-light: #8A91A3;
    --bg: #F8F9FC;
    --surface: #FFFFFF;
    --text: #111318;
    --text-secondary: #555B6B;
    --text-tertiary: #8A91A3;
    --border: #E1E4EC;
    --success: #16A34A;
    --success-light: #DCFCE7;
    --error: #D32A2C;
    --error-light: #FEE2E2;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(16, 18, 161, 0.14);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --gradient-primary: linear-gradient(135deg, #1012A1 0%, #0B0D75 60%, #1A1DB8 100%);
    --gradient-accent: linear-gradient(135deg, #D32A2C 0%, #B51F25 100%);
    --gradient-brand: linear-gradient(120deg, #1012A1 0%, #D32A2C 100%);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    /* Marge latérale fluide : s'adapte à la largeur de l'écran */
    --page-padding: clamp(16px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
::selection { background: var(--primary); color: #fff; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gradient-brand); border-radius: 10px; }

/* ---------- CONTENEUR PLEINE LARGEUR (sans centrage) ---------- */
.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
}

.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===================== BOUTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
    font-family: var(--font-main);
    white-space: nowrap;
}
.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 18, 161, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16, 18, 161, 0.45); }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-light {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
}
.btn-light:hover { background: #fff; color: var(--primary); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-full { width: 100%; }

/* ===================== LIGNE 1 : TOPBAR (pleine largeur) ===================== */
.topbar {
    background: var(--gradient-primary);
    color: #fff;
    font-size: 13.5px;
    padding-top: 8px;
    padding-bottom: 8px;
    position: relative;
    z-index: 60;
}
.topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}
.topbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.topbar-brand i { color: #FFD166; }
.topbar-contact {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.topbar-contact a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.92);
    transition: var(--transition);
}
.topbar-contact a:hover { color: #fff; transform: translateY(-1px); }
.topbar-contact i { color: #FFD166; }
.topbar-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, 0.35); }

/* ===================== LIGNE 2 : HEADER (pleine largeur) ===================== */
.header {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: var(--transition);
}
.header.scrolled { box-shadow: 0 4px 20px rgba(16, 18, 161, 0.12); }
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 12px;
    padding-bottom: 12px;
    width: 100%;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--primary-light);
    padding: 4px;
}
.logo-name {
    font-weight: 800;
    font-size: clamp(13px, 1.4vw, 15px);
    letter-spacing: 0.4px;
    color: var(--primary);
    line-height: 1.2;
}
.navbar { display: flex; justify-content: center; flex: 1; }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-link {
    position: relative;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 15px;
    color: var(--secondary);
    border-radius: 50px;
    transition: var(--transition);
}
.nav-link:hover { color: var(--primary); background: var(--primary-light); }
.nav-link.active { color: #fff; background: var(--gradient-primary); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-toggle {
    display: none;
    background: var(--primary-light);
    border: none;
    color: var(--primary);
    font-size: 20px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

/* ===================== HERO (pleine largeur) ===================== */
.hero {
    position: relative;
    background: var(--gradient-primary);
    color: #fff;
    padding-top: 90px;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.hero-slider {
    position: absolute;
    inset: 0;
    display: flex;
    width: 400%;
    height: 100%;
    will-change: transform;
    animation: heroSlide 30s linear infinite;
}
.hero-slide {
    flex: 0 0 25%;
    width: 25%;
    height: 100%;
    background-size: cover;
    background-position: center;
    will-change: transform;
    animation: heroZoom 10s ease-in-out infinite alternate;
}
/* Voile premium : images visibles, texte parfaitement lisible */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px 300px at 15% 20%, rgba(211, 42, 44, 0.30), transparent 60%),
        radial-gradient(700px 350px at 85% 15%, rgba(255, 255, 255, 0.08), transparent 60%),
        radial-gradient(500px 300px at 50% 90%, rgba(255, 209, 102, 0.10), transparent 60%),
        linear-gradient(90deg, rgba(8, 10, 80, 0.88) 0%, rgba(11, 13, 117, 0.78) 40%, rgba(11, 13, 117, 0.42) 100%),
        linear-gradient(0deg, rgba(8, 10, 80, 0.55) 0%, rgba(8, 10, 80, 0.15) 50%, transparent 100%);
    pointer-events: none;
}
@keyframes heroSlide {
    0% { transform: translateX(0); }
    26.67% { transform: translateX(0); }
    40% { transform: translateX(-25%); }
    53.33% { transform: translateX(-25%); }
    66.67% { transform: translateX(-50%); }
    80% { transform: translateX(-50%); }
    100% { transform: translateX(-75%); }
}
@keyframes heroZoom {
    from { transform: scale(1.02); }
    to { transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slider, .hero-slide { animation: none; }
}
.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    padding-bottom: 110px;
    width: 100%;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
    backdrop-filter: blur(6px);
}
.hero-badge i { color: #FFD166; }
.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -1px;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 640px;
    margin-bottom: 32px;
    line-height: 1.7;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }
.trust-item {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}
.trust-item i { color: #FFD166; font-size: 17px; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 320px; }
.hero-logo-card {
    width: clamp(220px, 22vw, 300px);
    height: clamp(220px, 22vw, 300px);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    border: 2px solid rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    animation: float 6s ease-in-out infinite;
}
.hero-logo-card img { width: 55%; height: 55%; object-fit: contain; }
.hero-logo-label {
    text-align: center;
    font-weight: 800;
    font-size: clamp(12px, 1.3vw, 15px);
    letter-spacing: 1.5px;
    line-height: 1.5;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--text);
    padding: 12px 18px;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    font-size: 13px;
    animation: float 5s ease-in-out infinite;
}
.floating-card i { font-size: 20px; }
.floating-card strong { display: block; font-size: 14px; }
.floating-card span { color: var(--text-tertiary); font-size: 12px; }
.fc-1 { top: 6%; left: 0; animation-delay: 0.6s; }
.fc-1 i { color: var(--primary); }
.fc-2 { bottom: 22%; right: 0; animation-delay: 1.4s; }
.fc-2 i { color: var(--accent); }
.fc-3 { bottom: -2%; left: 8%; animation-delay: 2.2s; }
.fc-3 i { color: var(--primary); }
.hero-wave { display: flex; line-height: 0; margin-top: -1px; }
.hero-wave svg { width: 100%; height: 70px; }

/* ===================== STATISTIQUES (grille fluide) ===================== */
.stats { padding: 56px 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
}
.stat-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.stat-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.stat-item > i {
    font-size: 26px;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
}
.stat-number {
    display: inline-block;
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}
.stat-suffix { font-size: 26px; font-weight: 800; color: var(--accent); }
.stat-label { margin-top: 8px; font-size: 14px; color: var(--text-secondary); font-weight: 500; }

/* ===================== SECTIONS (pleine largeur) ===================== */
.section { padding: 90px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: none; margin: 0 0 56px; text-align: left; }
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
}
.section-head h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}
.section-head p { color: var(--text-secondary); font-size: 16.5px; line-height: 1.7; max-width: 900px; }

/* ===================== À PROPOS (grille fluide) ===================== */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 22px;
    margin-bottom: 44px;
    width: 100%;
}
.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.about-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.about-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
}
.about-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.about-card p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.7; }
.values-strip {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    flex-wrap: wrap;
}
.value-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-light);
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
    padding: 10px 22px;
    border-radius: 50px;
}
.value-item i { color: var(--success); }

/* ===================== SERVICES (grille premium) ===================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}
@media (max-width: 1200px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; }
}
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 26px 24px;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
    z-index: 2;
}
.service-card::after {
    content: '';
    position: absolute;
    right: -60px;
    bottom: -60px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 44px rgba(16, 18, 161, 0.16); border-color: var(--primary-light); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 0.9; }
.service-num {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.85;
}
.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 10px 22px rgba(16, 18, 161, 0.28);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}
.si-blue { background: var(--gradient-primary); }
.si-red { background: var(--gradient-accent); }
.service-card:hover .service-icon { transform: scale(1.06) rotate(-4deg); }
.service-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 10px; color: var(--text); letter-spacing: -0.2px; position: relative; z-index: 1; }
.service-card p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; flex: 1; position: relative; z-index: 1; }
.service-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: relative;
    z-index: 1;
}
.service-route {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 50px;
    font-family: monospace;
}
.service-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
    white-space: nowrap;
}
.service-more i { font-size: 11px; transition: var(--transition); }
.service-more:hover { color: var(--accent); }
.service-more:hover i { transform: translateX(4px); }

/* ===================== PRODUITS : fond image douce ===================== */
.products-section {
    position: relative;
    overflow: hidden;
}
.products-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/imuhira_commercante_HD_16x9.png');
    background-size: cover;
    background-position: center;
    will-change: transform;
    animation: productsBgZoom 24s ease-in-out infinite alternate;
    pointer-events: none;
}
/* Voile clair : l'image reste visible en douceur, les textes parfaitement lisibles */
.products-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(248, 249, 252, 0.95) 0%, rgba(248, 249, 252, 0.90) 55%, rgba(231, 231, 253, 0.85) 100%);
    pointer-events: none;
}
.products-section .container { position: relative; z-index: 1; }
@keyframes productsBgZoom {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
    .products-bg { animation: none; }
}

/* ===================== PRODUITS (grille fluide) ===================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    align-items: stretch;
    width: 100%;
}
.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.product-featured {
    border: 2px solid var(--primary);
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--surface) 40%);
}
.product-badge {
    position: absolute;
    top: -13px;
    right: 20px;
    background: var(--gradient-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 5px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(211, 42, 44, 0.4);
}
.product-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.product-head h3 { font-size: 18px; font-weight: 800; color: var(--primary); }
.product-code {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-tertiary);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: monospace;
    white-space: nowrap;
}
.product-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 18px; }
.product-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; flex: 1; }
.product-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.product-list li i { color: var(--accent); width: 16px; text-align: center; }
.product-card .btn { align-self: flex-start; }

/* ===================== POURQUOI NOUS (pillars premium) ===================== */
.why-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
    width: 100%;
    align-items: stretch;
}
.why-pillar {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 26px 26px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.why-pillar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.why-pillar:hover { transform: translateY(-8px); box-shadow: 0 20px 48px rgba(16, 18, 161, 0.18); border-color: var(--primary-light); }
.why-pillar:hover::before { transform: scaleX(1); }
.why-pillar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}
.why-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    color: #fff;
    box-shadow: 0 10px 24px rgba(16, 18, 161, 0.30);
}
.wi-blue { background: var(--gradient-primary); }
.wi-red { background: var(--gradient-accent); }
.why-num {
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.why-pillar h3 { font-size: 19px; font-weight: 800; color: var(--text); margin-bottom: 10px; letter-spacing: -0.2px; }
.why-pillar > p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 20px; }

/* --- 01 · Crédits : tableau des prêts --- */
.why-loan-table { display: flex; flex-direction: column; gap: 9px; margin-bottom: 20px; flex: 1; }
.why-loan-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 15px;
    transition: var(--transition);
}
.why-loan-row:hover { border-color: var(--primary); background: var(--primary-light); transform: translateX(4px); }
.why-loan-name { display: block; font-size: 13.5px; font-weight: 700; color: var(--text); }
.why-loan-code { display: block; font-size: 10.5px; font-weight: 700; color: var(--text-tertiary); font-family: monospace; letter-spacing: 0.4px; }
.why-loan-val { font-size: 12.5px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.why-loan-rate {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-light);
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

/* --- 02 · Services : mini-grille --- */
.why-app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-bottom: 20px;
    flex: 1;
}
.why-app-grid li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.8px;
    font-weight: 600;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 12px;
    transition: var(--transition);
}
.why-app-grid li:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.why-app-grid li i { color: var(--primary); width: 15px; text-align: center; font-size: 13px; }

/* --- 03 · Agents : flux Cash In / Cash Out --- */
.why-flow { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; flex: 1; }
.why-flow-box {
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--surface) 0%, var(--primary-light) 170%);
    transition: var(--transition);
}
.why-flow-box:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.why-flow-box + .why-flow-box {
    border-left-color: var(--accent);
    background: linear-gradient(135deg, var(--surface) 0%, var(--accent-light) 170%);
}
.why-flow-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary);
    margin-bottom: 6px;
}
.why-flow-box + .why-flow-box .why-flow-title { color: var(--accent); }
.why-flow-box p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.why-flow-box strong { color: var(--text); }

/* --- 04 · RTP Marchand : étapes --- */
.why-steps { display: flex; flex-direction: column; gap: 13px; margin-bottom: 20px; flex: 1; }
.why-step { display: flex; gap: 12px; align-items: flex-start; }
.why-step-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(211, 42, 44, 0.35);
}
.why-step p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.65; padding-top: 2px; }
.why-step strong { color: var(--text); }

/* --- Pastille de stat --- */
.why-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    margin-top: auto;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid rgba(16, 18, 161, 0.18);
    padding: 8px 15px;
    border-radius: 50px;
}
.why-chip i { color: var(--accent); }

/* --- Bande chiffres clés (premium dark) --- */
.why-band {
    position: relative;
    margin-top: 36px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 26px;
    overflow: hidden;
    box-shadow: 0 18px 44px rgba(11, 13, 117, 0.35);
}
.why-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(520px 250px at 88% 0%, rgba(211, 42, 44, 0.35), transparent 60%),
        radial-gradient(420px 240px at 0% 100%, rgba(255, 255, 255, 0.08), transparent 60%);
    pointer-events: none;
}
.why-band-item { position: relative; text-align: center; }
.why-band-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -13px;
    top: 12%;
    bottom: 12%;
    width: 1px;
    background: rgba(255, 255, 255, 0.22);
}
.why-band-value {
    display: block;
    font-size: clamp(30px, 3.4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    background: linear-gradient(120deg, #ffffff 25%, #FFD166 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.why-band-label {
    display: block;
    margin-top: 7px;
    font-size: 12.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
    text-transform: uppercase;
    letter-spacing: 0.9px;
}

/* ===================== CONTACT (grille fluide) ===================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    align-items: start;
    width: 100%;
}
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
    display: flex;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.contact-card:hover { transform: translateX(6px); border-color: var(--primary-light); box-shadow: var(--shadow-lg); }
.contact-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    background: var(--gradient-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.contact-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--primary); }
.contact-card p { font-size: 14.5px; color: var(--text-secondary); line-height: 1.7; }
.contact-card p a { color: var(--primary); font-weight: 600; }
.contact-card p a:hover { text-decoration: underline; }
.contact-form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
}
.contact-form-card h3 { font-size: 19px; font-weight: 800; color: var(--primary); margin-bottom: 20px; }
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-family: var(--font-main);
    font-size: 14.5px;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px var(--primary-light);
}
.form-group textarea { resize: vertical; }
.form-status { margin-top: 12px; font-size: 14px; font-weight: 600; min-height: 20px; }
.form-status.error { color: var(--error); }
.form-status.success { color: var(--success); }

/* ===================== FOOTER (pleine largeur, grille fluide) ===================== */
.footer {
    background: #0A0C5E;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 48px;
    width: 100%;
}
.footer-logo { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.footer-logo img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    padding: 6px;
}
.footer-logo-name {
    display: block;
    font-weight: 800;
    font-size: 15px;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1.3;
    margin-bottom: 6px;
}
.footer-logo-sub { font-size: 13.5px; color: rgba(255, 255, 255, 0.65); line-height: 1.6; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); transform: translateY(-3px); }
.footer-col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: var(--gradient-brand);
    border-radius: 3px;
}
.footer-links li,
.footer-contact li {
    margin-bottom: 11px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.footer-links a,
.footer-contact a { color: rgba(255, 255, 255, 0.78); transition: var(--transition); }
.footer-links a:hover,
.footer-contact a:hover { color: #FFD166; padding-left: 4px; }
.footer-links i,
.footer-contact i { color: var(--accent); font-size: 11px; margin-top: 4px; }
.footer-contact i { min-width: 14px; text-align: center; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 22px;
    padding-bottom: 22px;
}
.footer-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}
.footer-bottom p { font-size: 13.5px; color: rgba(255, 255, 255, 0.65); }
.footer-bottom strong { color: #fff; }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal a {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition);
}
.footer-legal a:hover { color: #FFD166; }

/* ===================== MODALES ===================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 94, 0.65);
    backdrop-filter: blur(6px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal.active { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 34px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-modal {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 28px;
    color: var(--text-tertiary);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}
.close-modal:hover { color: var(--accent); transform: rotate(90deg); }
.modal-head { text-align: center; margin-bottom: 22px; }
.modal-head img { width: 74px; height: 74px; object-fit: contain; margin: 0 auto 12px; }
.modal-head h2 { font-size: 22px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.modal-head p { font-size: 14px; color: var(--text-secondary); }
.modal-hint { text-align: center; font-size: 12.5px; color: var(--text-tertiary); margin-top: 14px; }

/* ===================== TOAST ===================== */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    font-size: 14.5px;
    padding: 14px 28px;
    border-radius: 50px;
    box-shadow: 0 12px 30px rgba(16, 18, 161, 0.4);
    z-index: 200;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-width: 90vw;
    text-align: center;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast-success { background: var(--gradient-primary); }

/* ===================== RESPONSIVE : tous les écrans ===================== */
/* Tablettes et grands phones (paysage) */
@media (max-width: 1080px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 36px;
        padding-bottom: 80px;
    }
    .hero-subtitle { margin-left: auto; margin-right: auto; max-width: 640px; }
    .hero-buttons, .hero-trust { justify-content: center; }
    .hero-visual { min-height: 280px; }
    .values-strip { justify-content: center; }
}

/* Phones et petites tablettes */
@media (max-width: 860px) {
    .topbar-content { justify-content: center; text-align: center; }
    .topbar-brand { width: 100%; justify-content: center; }
    .topbar-contact { justify-content: center; }
    .nav-toggle { display: flex; align-items: center; justify-content: center; }
    .navbar {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.10);
        padding: 14px 24px 18px;
    }
    .navbar.open { display: block; }
    .nav-menu { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav-link { display: block; text-align: center; border-radius: 12px; }
    .nav-actions .btn { padding: 8px 12px; font-size: 13px; }
    .nav-actions .btn i { display: none; }
    .section { padding: 64px 0; }
    .section-head { margin-bottom: 40px; }
    .contact-grid { gap: 22px; }
    .contact-card:hover { transform: none; }
}

/* Petits phones */
@media (max-width: 560px) {
    :root { --page-padding: 16px; }
    .hero { padding-top: 56px; }
    .hero-content { padding-bottom: 60px; gap: 28px; }
    .hero-badge { font-size: 12px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { width: 100%; }
    .floating-card { display: none; }
    .hero-visual { min-height: 240px; }
    .hero-logo-card { width: 210px; height: 210px; }
    .stats { padding: 40px 0; }
    .stat-item { padding: 22px 14px; }
    .about-card, .service-card, .product-card, .why-pillar, .contact-card { padding: 22px 18px; }
    .service-num { font-size: 24px; top: 16px; right: 18px; }
    .service-icon { width: 56px; height: 56px; font-size: 22px; border-radius: 14px; }
    .contact-form-card { padding: 22px 18px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { gap: 32px; padding-top: 48px; padding-bottom: 36px; }
    .footer-bottom-content { justify-content: center; text-align: center; }
    .modal-content { padding: 26px 20px; }
    .section-head p { font-size: 15px; }
    .why-pillar { padding: 22px 18px; }
    .why-num { font-size: 34px; }
    .why-icon { width: 52px; height: 52px; font-size: 22px; border-radius: 14px; }
    .why-app-grid { grid-template-columns: 1fr; }
    .why-loan-row { display: flex; flex-wrap: wrap; gap: 8px; }
    .why-loan-val { white-space: normal; }
    .why-band { gap: 18px; padding: 26px 18px; }
    .why-band-item:not(:last-child)::after { display: none; }
}

/* Très grands écrans : le contenu s'étire naturellement sur toute la largeur */
@media (min-width: 1920px) {
    :root { --page-padding: clamp(48px, 8vw, 160px); }
    .section-head p { max-width: 1100px; }
    .hero-subtitle { max-width: 760px; }
}

/* ===================== DOWNLOAD APP ===================== */
.download-section {
    position: relative;
    background: var(--gradient-primary);
    color: #fff;
    padding: 100px 0;
    overflow: hidden;
}
.download-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(700px 350px at 85% 15%, rgba(211, 42, 44, 0.30), transparent 60%),
        radial-gradient(600px 300px at 10% 85%, rgba(255, 209, 102, 0.12), transparent 60%);
    pointer-events: none;
}
.download-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    align-items: center;
}
.download-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(8px);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 20px;
}
.download-tag i { color: #FFD166; }
.download-text h2 {
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 900;
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin-bottom: 16px;
}
.download-sub {
    font-size: clamp(0.98rem, 1.5vw, 1.1rem);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 8px;
}
.download-sub strong { color: #fff; }
.download-features { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; }
.download-features li { display: flex; gap: 15px; align-items: flex-start; }
.df-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #FFD166;
}
.download-features strong { display: block; font-size: 15.5px; margin-bottom: 3px; }
.download-features li span:not(.df-icon) { font-size: 13.5px; color: rgba(255, 255, 255, 0.78); line-height: 1.55; }

.phones-stage { position: relative; min-height: 600px; }
.phone {
    position: absolute;
    top: 30px;
    width: 252px;
    height: 512px;
    background: #0A0C5E;
    border-radius: 46px;
    border: 7px solid #2A2C7A;
    box-shadow: 0 34px 70px rgba(0, 0, 0, 0.45), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 22px;
    background: #0A0C5E;
    border-radius: 20px;
    z-index: 5;
}
.phone-screen {
    position: absolute;
    inset: 0;
    background: #F8F9FC;
    display: flex;
    flex-direction: column;
    padding: 44px 16px 16px;
    gap: 12px;
}
.phone-1 { left: 0; transform: rotate(-7deg); z-index: 1; }
.phone-2 { left: 50%; margin-left: -126px; z-index: 3; top: 0; }
.phone-3 { right: 0; transform: rotate(7deg); z-index: 2; }

.app-bar { display: flex; align-items: center; gap: 8px; }
.app-dot {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-title { font-size: 11px; font-weight: 800; color: #1012A1; flex: 1; letter-spacing: 0.4px; }
.app-bar i { color: #8A91A3; font-size: 14px; }

.app-balance {
    background: var(--gradient-primary);
    border-radius: 18px;
    padding: 16px;
    color: #fff;
    position: relative;
    box-shadow: 0 10px 24px rgba(16, 18, 161, 0.35);
}
.app-balance > span { font-size: 10.5px; color: rgba(255, 255, 255, 0.75); display: block; margin-bottom: 4px; }
.app-balance strong { font-size: 20px; font-weight: 800; letter-spacing: 0.3px; }
.app-balance .eye { position: absolute; top: 14px; right: 14px; color: rgba(255, 255, 255, 0.85); font-size: 13px; }
.app-balance .chip { position: absolute; bottom: 12px; right: 14px; font-size: 9px; background: rgba(255, 255, 255, 0.2); padding: 3px 8px; border-radius: 20px; }

.app-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.app-action { background: #fff; border: 1px solid #E1E4EC; border-radius: 14px; padding: 10px 4px; text-align: center; }
.app-action i { display: block; color: #1012A1; font-size: 15px; margin-bottom: 5px; }
.app-action span { font-size: 9px; color: #555B6B; font-weight: 600; }

.app-txns { display: flex; flex-direction: column; gap: 8px; }
.app-txn { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #E1E4EC; border-radius: 14px; padding: 10px 12px; }
.app-txn > i { width: 32px; height: 32px; min-width: 32px; border-radius: 10px; background: #E7E7FD; color: #1012A1; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.app-txn strong { display: block; font-size: 11px; color: #111318; }
.app-txn small { font-size: 9px; color: #8A91A3; }
.app-txn em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; }
.app-txn em.plus { color: #16A34A; }
.app-txn em.minus { color: #D32A2C; }

.app-qr-title { text-align: center; font-size: 12.5px; font-weight: 800; color: #111318; }
.app-qr-sub { text-align: center; font-size: 9.5px; color: #8A91A3; margin-top: -8px; }
.app-qr-wrap { background: #fff; border-radius: 20px; padding: 14px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06); margin: 4px 8px; }
.app-qr { display: grid; grid-template-columns: repeat(21, 1fr); background: #fff; }
.app-qr-img { width: 100%; height: auto; display: block; border-radius: 10px; }
.qr-cell { aspect-ratio: 1/1; background: #fff; }
.qr-cell.on { background: #1012A1; }
.app-qr-amount { text-align: center; margin-top: 10px; }
.app-qr-amount strong { font-size: 18px; font-weight: 800; color: #1012A1; }
.app-qr-amount span { display: block; font-size: 9px; color: #8A91A3; margin-top: 2px; }
.app-qr-btn { margin: 10px 8px 0; background: var(--gradient-primary); color: #fff; border-radius: 14px; text-align: center; padding: 11px; font-size: 11px; font-weight: 700; }

.app-map {
    position: relative;
    height: 150px;
    border-radius: 18px;
    background: linear-gradient(135deg, #E7E7FD 0%, #DCFCE7 55%, #E7E7FD 100%);
    overflow: hidden;
}
.app-map::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg, transparent 0 18px, rgba(16, 18, 161, 0.07) 18px 19px),
        repeating-linear-gradient(90deg, transparent 0 18px, rgba(16, 18, 161, 0.07) 18px 19px);
}
.map-pin {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50% 50% 50% 4px;
    transform: rotate(-45deg);
    background: var(--gradient-accent);
    border: 2px solid #fff;
    box-shadow: 0 4px 10px rgba(211, 42, 44, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.map-pin i { transform: rotate(45deg); color: #fff; font-size: 9px; }
.map-pin.p1 { top: 22px; left: 30px; }
.map-pin.p2 { top: 58px; right: 36px; }
.map-pin.p3 { bottom: 18px; left: 44%; }

.app-nearby { display: flex; flex-direction: column; gap: 8px; }
.app-near-item { display: flex; gap: 10px; background: #fff; border: 1px solid #E1E4EC; border-radius: 14px; padding: 10px 12px; align-items: center; }
.app-near-item > i { color: #D32A2C; font-size: 14px; }
.app-near-item strong { display: block; font-size: 11px; }
.app-near-item small { font-size: 9px; color: #8A91A3; }
.app-near-item em { margin-left: auto; font-style: normal; font-size: 9px; font-weight: 700; color: #1012A1; background: #E7E7FD; padding: 3px 8px; border-radius: 20px; }

.phone-label {
    position: absolute;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 10;
}
.label-1 { bottom: 6px; left: 10%; }
.label-2 { bottom: -20px; left: 50%; transform: translateX(-50%); }
.label-3 { bottom: 6px; right: 10%; }

.download-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 32px; }
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #0A0C5E;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    padding: 10px 20px;
    transition: var(--transition);
}
.store-badge:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); border-color: #FFD166; }
.store-badge i { font-size: 26px; }
.store-badge small { display: block; font-size: 10px; color: rgba(255, 255, 255, 0.7); line-height: 1.25; }
.store-badge strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; }

.qr-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    color: var(--text);
    border-radius: 20px;
    padding: 14px 20px 14px 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}
.qr-card .app-qr-wrap { margin: 0; padding: 8px; box-shadow: none; width: 160px; flex-shrink: 0; }
.qr-card p { font-size: 12.5px; font-weight: 700; color: var(--text); line-height: 1.5; }
.qr-card p span { display: block; font-weight: 500; color: var(--text-tertiary); font-size: 11px; }

.version-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}
.version-chip i { color: #FFD166; }

@media (max-width: 1080px) {
    .download-grid { grid-template-columns: 1fr; gap: 48px; }
    .phones-stage { min-height: 560px; max-width: 760px; margin: 0 auto; width: 100%; }
    .download-sub { max-width: none; }
}
@media (max-width: 640px) {
    .download-section { padding: 72px 0 80px; }
    .phone { width: 196px; height: 400px; border-radius: 36px; border-width: 6px; }
    .phone-2 { margin-left: -98px; }
    .phones-stage { min-height: 470px; }
    .phone-1 { transform: rotate(-5deg) translateY(16px); }
    .phone-3 { transform: rotate(5deg) translateY(16px); }
    .app-balance strong { font-size: 16px; }
    .app-balance { padding: 12px; }
    .app-txn { padding: 8px 10px; }
    .app-map { height: 120px; }
    .download-cta { flex-direction: column; align-items: stretch; }
    .store-badge { justify-content: center; }
    .qr-card { flex-direction: column; text-align: center; padding: 18px; }
    .label-1 { left: 2%; }
    .label-3 { right: 2%; }
}

/* ===================== PREMIUM MOTION (animations & survols) ===================== */
/* Soulignement fluide des liens de navigation */
.nav-link { position: relative; transition: color 0.3s ease; }
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* Reflet balayant sur les boutons */
.btn-primary, .btn-outline, .btn-light { position: relative; overflow: hidden; }
.btn-primary::after, .btn-outline::after, .btn-light::after {
    content: '';
    position: absolute;
    top: 0; left: -70%;
    width: 45%; height: 100%;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    transform: skewX(-20deg);
    transition: left 0.65s ease;
    pointer-events: none;
}
.btn-primary:hover::after, .btn-outline:hover::after, .btn-light:hover::after { left: 130%; }

/* Texte gradient : reflet animé */
.gradient-text { background-size: 200% auto; animation: gradientShine 5s linear infinite; }
@keyframes gradientShine { to { background-position: 200% center; } }

/* Tag de section : survol doux */
.section-tag { transition: var(--transition); }
.section-tag:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16, 18, 161, 0.25); }

/* Badge du hero : halo pulsant */
.hero-badge { animation: badgePulse 3.2s ease-in-out infinite; }
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 4px 14px rgba(255, 255, 255, 0.15); }
    50% { box-shadow: 0 4px 26px rgba(255, 255, 255, 0.38); }
}

/* Icônes : petit rebond au survol des cartes */
.about-card:hover .about-icon i,
.contact-card:hover .contact-icon i,
.why-pillar:hover .why-icon i { animation: iconWiggle 0.5s ease; }
@keyframes iconWiggle {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-9deg) scale(1.12); }
    75% { transform: rotate(9deg) scale(1.12); }
}

/* Statistiques : survol doux */
.stat-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stat-item:hover > i { animation: iconPop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes iconPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* Valeurs : survol */
.value-item { transition: var(--transition); }
.value-item:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 10px 24px rgba(211, 42, 44, 0.22); }
.value-item:hover i { animation: iconPop 0.45s ease; }

/* Liens du footer : chevron glissant */
.footer-links a { transition: var(--transition); }
.footer-links a i { transition: var(--transition); }
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-links a:hover i { transform: translateX(5px); color: var(--accent); }

/* Réseaux sociaux : envol au survol */
.footer-social a:hover { background: var(--gradient-brand); transform: translateY(-4px) rotate(8deg); }

/* Contact : icône qui respire au survol */
.contact-card:hover .contact-icon { transform: scale(1.08) rotate(-5deg); }

/* Apparition douce au scroll (le JS ajoute .reveal puis .reveal-visible) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.reveal-visible { opacity: 1; transform: translateY(0); }
.reveal.reveal-visible:hover { transition: var(--transition); }

/* Accessibilité : mouvement réduit */
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .gradient-text, .hero-badge { animation: none; }
}
