/* --- RESET ET VARIABLES --- */
:root {
    /* PALETTE (Teal / Bleu Canard) */
    --primary-blue: #31708E; 
    --dark-blue: #245a72;
    --accent-gold: #FDB338;
    --accent-gold-hover: #e0a331;
    --accent-green: #2ECC71;
    
    --text-dark: #333;
    --text-grey: #555;
    --light-bg: #f8f9fc;
    --white: #ffffff;
    --border-color: #e5e7eb;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Utilitaires */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Boutons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 12px 24px; border-radius: 6px; font-weight: 600; cursor: pointer;
    transition: all 0.3s ease; text-align: center;
}
.btn-primary { background-color: var(--accent-gold); color: #222; border: none; }
.btn-primary:hover { background-color: var(--accent-gold-hover); }

.btn-outline-white { background-color: transparent; border: 2px solid rgba(255,255,255,0.3); color: var(--white); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-outline { background-color: transparent; border: 2px solid var(--border-color); color: var(--primary-blue); }
.btn-outline:hover { background-color: var(--light-bg); border-color: var(--primary-blue); }

.btn-outline-dark { border: 2px solid var(--primary-blue); color: var(--primary-blue); }

.section-padding { padding: 80px 0; }
.text-center { text-align: center; }

.section-title { font-size: 2.2rem; color: var(--dark-blue); margin-bottom: 15px; font-weight: 700; }
.section-subtitle { color: var(--text-grey); margin-bottom: 50px; font-size: 1rem; }


/* --- TOPBAR --- */
.topbar {
    background-color: var(--dark-blue);
    color: rgba(255,255,255,0.85);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    z-index: 1100;
}
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.topbar-left {
    display: flex;
    align-items: center;
    gap: 18px;
}
.topbar-left span {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.topbar-left i { color: var(--accent-gold); font-size: 0.75rem; }
.topbar-right { display: flex; align-items: center; position: relative; }
/* Topbar lang button overrides */
.topbar .lang-switcher { position: relative; }
.topbar .lang-btn {
    color: #fff;
    border-color: rgba(255,255,255,0.35);
    font-size: 0.78rem;
    padding: 4px 10px;
    background: rgba(255,255,255,0.08);
}
.topbar .lang-btn:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.6); }
.topbar .lang-dropdown {
    top: calc(100% + 4px);
    right: 0;
    left: auto;
    z-index: 9999;
}
/* Flag images in lang switcher */
.lang-btn img, .lang-dropdown img {
    border-radius: 2px;
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .topbar-left { gap: 10px; }
    .topbar-left span:last-child { display: none; }
}

/* --- HEADER --- */
header { background-color: var(--white); padding: 15px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 900; }
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary-blue); display: flex; align-items: center; gap: 10px; z-index: 1001; }
.logo i { color: var(--accent-gold); }
.nav-links { display: flex; gap: 30px; font-weight: 500; color: var(--text-grey); }
.nav-links a:hover { color: var(--primary-blue); }

.mobile-menu-btn { display: none; font-size: 1.5rem; color: var(--primary-blue); cursor: pointer; z-index: 1001; }
.mobile-drawer {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--white); box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 999; padding-top: 80px; padding-left: 30px; transition: 0.4s ease;
    display: flex; flex-direction: column; gap: 20px;
}
.mobile-drawer.active { right: 0; }
.mobile-drawer a { font-size: 1.1rem; font-weight: 600; color: var(--dark-blue); border-bottom: 1px solid #eee; padding-bottom: 10px; margin-right: 30px; }
.overlay-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 900; display: none; }
.overlay-bg.active { display: block; }

/* --- ACTIVE LINK STYLES --- */

/* Desktop Active Link */
.nav-links a.active {
    color: var(--primary-blue); /* Le lien devient bleu */
    font-weight: 700;           /* Le texte devient gras */
    position: relative;
}

/* Petit soulignement doré optionnel pour l'effet pro */
.nav-links a.active::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background: var(--accent-gold);
    position: absolute;
    bottom: -5px;
    left: 0;
    border-radius: 2px;
}

/* Mobile Active Link */
.mobile-drawer a.active {
    color: var(--primary-blue);
    border-left: 4px solid var(--accent-gold); /* Barre dorée à gauche sur mobile */
    padding-left: 10px; /* Décalage du texte */
    background: #f8f9fa; /* Fond léger */
}

/* --- HEADER BUTTONS (Track Loan + Apply) --- */

/* Conteneur pour aligner les boutons sur Desktop */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Style spécifique pour le bouton Track Loan / Login (Desktop) */
.btn-login {
    background: transparent;
    color: var(--dark-blue);
    font-weight: 600;
    padding: 10px 15px;
    border: 1px solid transparent; /* Invisible par défaut */
    border-radius: 6px;
}

.btn-login:hover {
    background-color: #f0f7fa; /* Fond bleu très clair au survol */
    color: var(--primary-blue);
}

/* Ajustement Mobile */
@media (max-width: 1024px) {
    /* Cache le conteneur complet sur mobile/tablette car géré dans le drawer */
    .header-btn-desktop {
        display: none; 
    }
}

/* Ajustement spécifique bouton Apply dans le header (si nécessaire) */
header .btn-primary {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* --- HEADER ACTIONS & LOGIN BUTTON --- */

/* Conteneur des boutons Desktop */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Style du bouton Login Desktop (discret) */
.btn-login {
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login:hover {
    color: var(--primary-blue);
    background-color: #f0f7fa;
}

/* Style du bouton Login Mobile (visible uniquement sur mobile) */
.btn-mobile-login {
    display: none; /* Caché par défaut sur PC */
    align-items: center;
    gap: 8px;
    color: var(--dark-blue);
    font-weight: 500;
    font-size: 0.7rem;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 10px; /* Forme de pilule élégante */
    background: transparent;
    transition: 0.3s;
    margin-left: auto; /* Pousse le bouton vers la droite près du burger */
    margin-right: 2px; /* Espace avant le burger */
}

.btn-mobile-login:hover {
    background: #f0f7fa;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

/* RESPONSIVE TOGGLES */
@media (max-width: 1024px) {
    /* Cache le groupe "Apply Now" + "Login" Desktop */
    .header-btn-desktop {
        display: none !important;
    }

    /* Affiche le bouton Login stylé Mobile */
    .btn-mobile-login {
        display: inline-flex;
    }
}

/* --- HERO --- */
.hero {
    background-color: var(--primary-blue);
    background-image: url('https://images.unsplash.com/photo-1560520653-9e0e4c89eb11?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=80');
    background-size: cover; background-position: center center; background-repeat: no-repeat;
    color: var(--white); padding: 80px 0 100px; position: relative; z-index: 1;
}
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(36, 90, 114, 0.85); z-index: -1; }
.hero-wrapper { display: flex; justify-content: space-between; align-items: flex-start; gap: 60px; }
.hero-content { flex: 1; max-width: 600px; }
.trust-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 500; margin-bottom: 25px; }
.trust-badge i { color: var(--accent-gold); }
.hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 20px; }
.hero-title span { color: var(--accent-gold); }
.hero-text { font-size: 1.1rem; line-height: 1.6; opacity: 0.9; margin-bottom: 40px; }
.hero-features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 40px; }
.feature-item-hero { display: flex; align-items: flex-start; gap: 15px; }
.feature-item-hero i { color: var(--accent-gold); font-size: 1.3rem; margin-top: 3px; }
.feature-item-hero h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.feature-item-hero p { font-size: 0.9rem; opacity: 0.8; }
.hero-buttons { display: flex; gap: 20px; margin-bottom: 30px; }
.hero-footer-links { display: flex; gap: 25px; font-size: 0.9rem; opacity: 0.8; flex-wrap: wrap; }
.hero-footer-links span { display: flex; align-items: center; gap: 8px; }
.hero-footer-links i { color: var(--accent-gold); }

.hero-widget { flex: 0 0 450px; background: var(--white); border-radius: 16px; padding: 35px; box-shadow: 0 20px 40px rgba(0,0,0,0.2); color: var(--text-dark); text-align: center; }
.widget-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 5px; color: var(--dark-blue); }
.widget-subtitle { color: var(--text-grey); font-size: 0.95rem; margin-bottom: 30px; }
.stat-box-large { background: #F3F6F8; padding: 25px; border-radius: 12px; margin-bottom: 25px; }
.stat-number-large { font-size: 3rem; font-weight: 800; color: var(--primary-blue); line-height: 1; margin-bottom: 10px; display: block;}
.stat-label-large { color: var(--text-grey); font-size: 1rem; }
.widget-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
.widget-stat-item h4 { font-size: 1.3rem; font-weight: 700; margin-bottom: 5px; }
.text-green { color: var(--accent-green); }
.text-gold { color: var(--accent-gold); }
.total-disbursed-box { background: var(--primary-blue); color: var(--white); padding: 25px; border-radius: 12px; position: relative; margin-bottom: 25px; text-align: left; }
.info-icon { position: absolute; top: 15px; right: 15px; opacity: 0.6; cursor: pointer; }
.total-label { font-size: 0.9rem; opacity: 0.9; margin-bottom: 5px; display: block; }
.total-amount { font-size: 2.2rem; font-weight: 800; display: block; margin-bottom: 5px; }
.total-sub { font-size: 0.85rem; opacity: 0.7; }
.widget-link { color: var(--primary-blue); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.widget-link:hover { gap: 12px; }

/* --- SERVICES --- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
a.service-card {
    background: var(--white); padding: 25px; border-radius: 8px; border: 1px solid var(--border-color);
    transition: 0.3s; display: flex; flex-direction: column; text-decoration: none; color: inherit; height: 100%;
}
a.service-card:hover { box-shadow: 0 10px 20px rgba(0,0,0,0.08); transform: translateY(-5px); border-color: var(--primary-blue); }
.card-header { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.service-icon { width: 50px; height: 50px; border-radius: 50%; background: #f0f7fa; color: var(--primary-blue); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.service-card h3 { font-size: 1.15rem; margin: 0; color: var(--dark-blue); font-weight: 700; }
.service-card p { font-size: 0.9rem; color: var(--text-grey); margin-bottom: 20px; flex-grow: 1; line-height: 1.5; }
.service-range { border-top: 1px solid #f0f0f0; padding-top: 15px; margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--primary-blue); font-size: 0.95rem; font-weight: 700; }
.service-range i { color: var(--dark-blue); font-size: 0.8rem; opacity: 0.6; }

/* --- CTA BANNER --- */
.cta-banner {
    background: var(--primary-blue); color: var(--white); padding: 60px 40px;
    margin: 80px 0; border-radius: 16px; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 25px;
    box-shadow: 0 15px 30px rgba(49, 112, 142, 0.15);
}
.cta-banner h2 { font-size: 2.2rem; font-weight: 800; margin: 0; line-height: 1.2; }
.cta-banner p { font-size: 1.1rem; opacity: 0.9; margin: 0; max-width: 650px; }
.cta-buttons { display: flex; justify-content: center; gap: 20px; margin-top: 10px; }

/* --- FEATURES --- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature-item { display: flex; gap: 15px; align-items: flex-start; }
.feature-icon { color: var(--primary-blue); font-size: 1.5rem; background: #eef5f9; width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-text h4 { margin-bottom: 5px; color: var(--dark-blue); }
.feature-text p { font-size: 0.9rem; color: var(--text-grey); }

.stats-bar { margin-top: 60px; padding: 40px 0; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat-box h3 { font-size: 2rem; color: var(--primary-blue); font-weight: 800; }
.stat-box p { color: var(--text-grey); font-size: 0.9rem; margin-top: 5px; }


/* --- HOW IT WORKS (GRID) --- */
.how-it-works { 
    padding: 60px 0; 
    position: relative; 
}

.hiw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.hiw-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    text-align: center;
    position: relative;
    transition: 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hiw-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: var(--primary-blue);
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 4rem;
    font-weight: 900;
    color: #f3f6f9;
    z-index: 0;
    opacity: 0.5;
    line-height: 1;
}

.hiw-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(49, 112, 142, 0.3);
    flex-shrink: 0;
}

.hiw-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin: 0 0 10px 0;
    padding: 0;
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
}

.hiw-card p {
    font-size: 0.85rem;
    color: var(--text-grey);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
}

.hiw-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
    .how-it-works {
        padding: 50px 0;
    }
    
    .hiw-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .hiw-card {
        padding: 25px 15px;
        min-height: 200px;
        justify-content: space-between;
    }
    
    .hiw-icon {
        margin: 0 0 12px 0;
    }
    
    .hiw-card h4 {
        margin: 0 0 auto 0;
    }
    
    .hiw-card p {
        margin: auto 0 0 0;
        padding-top: 15px;
    }
    
    .step-number {
        font-size: 3rem;
    }
    
    .hiw-cta {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }
    
    .hiw-cta .btn {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .how-it-works {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .hiw-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 0 10px 0;
    }
    
    .hiw-card {
        min-height: 180px;
    }
    
    .hiw-card h4 {
        font-size: 1rem;
    }
    
    .step-number {
        font-size: 2.5rem;
    }
}




/* --- TESTIMONIALS (PRO) --- */
.testimonials { background-color: var(--light-bg); padding: 100px 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.testimonial-card {
    background: var(--white); padding: 35px 30px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid transparent;
}
.testimonial-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.08); border-color: rgba(49, 112, 142, 0.1); }
.quote-icon { position: absolute; top: 20px; right: 30px; font-size: 3rem; color: var(--primary-blue); opacity: 0.06; }
.stars { color: var(--accent-gold); margin-bottom: 20px; font-size: 0.9rem; }
.testimonial-text { font-style: italic; color: #555; margin-bottom: 25px; font-size: 0.95rem; line-height: 1.6; min-height: 80px; }
.user-profile { display: flex; align-items: center; gap: 15px; border-top: 1px solid #f0f0f0; padding-top: 20px; }
.user-img { width: 50px; height: 50px; border-radius: 50%; background-color: #eee; overflow: hidden; flex-shrink: 0; border: 2px solid var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.user-img img { width: 100%; height: 100%; object-fit: cover; }
.user-info h5 { font-size: 0.95rem; font-weight: 700; color: var(--dark-blue); margin-bottom: 2px; }
.user-info span { font-size: 0.8rem; color: #888; font-weight: 500; }

/* --- FOOTER (DESIGN FINAL - BLEU NUIT & CONTACT) --- */
footer {
    background-color: #1a2b3d; /* Nouvelle couleur de fond */
    color: #b0c4d6;
    padding: 70px 0 30px;
    font-size: 0.95rem;
}

/* Barre de contact en haut du footer */
.footer-contact-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 50px;
    margin-bottom: 60px;
    text-align: center;
}
.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.contact-item i {
    color: var(--accent-gold);
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.contact-item h5 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.contact-item span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Grille principale 5 colonnes */
.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Colonne Marque */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: var(--white);
}
.logo-box {
    background: rgba(255,255,255,0.1);
    width: 40px; height: 40px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--accent-gold);
}
.logo-text {
    line-height: 1.2;
    font-weight: 700;
    font-size: 1.1rem;
}
.logo-text small {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.footer-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 300px;
    opacity: 0.8;
}
.footer-socials {
    display: flex;
    gap: 10px;
}
.footer-socials a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 0.9rem;
    transition: 0.3s;
}
.footer-socials a:hover {
    background: var(--accent-gold);
    color: #1a2b3d;
}

/* Colonnes Liens */
.footer-nav-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1rem;
    font-weight: 700;
}
.footer-nav-col ul {
    list-style: none;
    padding: 0;
}
.footer-nav-col ul li {
    margin-bottom: 12px;
}
.footer-nav-col ul li a {
    color: #b0c4d6;
    transition: 0.3s;
    font-size: 0.9rem;
}
.footer-nav-col ul li a:hover {
    color: var(--accent-gold);
    padding-left: 5px;
}

/* Barre de Confiance (Trust Bar) */
.footer-trust-bar {
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 25px 0;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 50px;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.trust-item i {
    color: var(--accent-gold);
}

/* Footer Bottom (Copyright) */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    opacity: 0.7;
}
.bottom-links {
    display: flex;
    gap: 20px;
}
.bottom-links a:hover {
    color: var(--white);
}

/* Popup Calculator */
.calculator-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); z-index: 3000; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.calculator-modal.show { display: flex; opacity: 1; }
.calc-content { background: white; width: 90%; max-width: 600px; border-radius: 12px; padding: 30px; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,0.3); max-height: 90vh; overflow-y: auto; }
.calc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.calc-header-text h3 { color: var(--dark-blue); font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.calc-header-text p { color: #888; font-size: 0.9rem; }
.close-calc { font-size: 1.5rem; color: #999; cursor: pointer; transition: 0.3s; }
.close-calc:hover { color: var(--dark-blue); }
.calc-input-group { margin-bottom: 25px; }
.calc-label-row { display: flex; justify-content: space-between; margin-bottom: 15px; font-weight: 600; color: var(--dark-blue); font-size: 0.95rem; }
.calc-val-display { font-size: 1.2rem; font-weight: 800; color: var(--primary-blue); }
.range-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: #999; margin-top: 5px; }
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 6px; cursor: pointer; background: #eef2f5; border-radius: 3px; }
input[type=range]::-webkit-slider-thumb { height: 20px; width: 20px; border-radius: 50%; background: var(--primary-blue); cursor: pointer; -webkit-appearance: none; margin-top: -7px; border: 2px solid white; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
input[type=range]::-moz-range-track { width: 100%; height: 6px; cursor: pointer; background: #eef2f5; border-radius: 3px; }
input[type=range]::-moz-range-thumb { height: 20px; width: 20px; border: 2px solid white; border-radius: 50%; background: var(--primary-blue); cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.calc-rate-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; font-weight: 600; color: #555; }
.rate-val { color: var(--accent-gold); font-weight: 800; font-size: 1.2rem; }
.calc-summary-box { border: 2px solid var(--primary-blue); border-radius: 10px; padding: 20px; margin-bottom: 20px; }
.monthly-title { font-size: 0.85rem; color: #777; font-weight: 600; margin-bottom: 5px; }
.monthly-amount { font-size: 2.2rem; font-weight: 800; color: var(--primary-blue); margin-bottom: 5px; }
.calc-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }
.detail-box { background: #f8f9fa; padding: 15px; border-radius: 8px; }
.d-label { font-size: 0.8rem; color: #777; font-weight: 600; }
.d-val { font-size: 1.1rem; font-weight: 800; color: var(--dark-blue); margin-top: 3px; }
.disclaimer { font-size: 0.75rem; color: #999; margin: 20px 0; display: flex; gap: 8px; line-height: 1.4; }
.apply-btn-full { width: 100%; background: var(--accent-gold); padding: 15px; font-size: 1rem; border-radius: 8px; color: #222; font-weight: 700; text-align: center; cursor: pointer; border: none; transition: 0.3s; }
.apply-btn-full:hover { background: var(--accent-gold-hover); }

/* =========================================
   PAGE SPECIFIQUE : LOAN SERVICES (FULL WIDTH)
   ========================================= */

/* Grille de Prêts */
.loan-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 colonnes pour grand écran */
    gap: 30px;
    width: 100%;
}

/* Carte de Prêt Avancée */
.loan-item-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.loan-item-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.loan-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-gold);
    color: #222;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
    z-index: 2;
}

.loan-img {
    height: 180px;
    overflow: hidden;
}
.loan-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}
.loan-item-card:hover .loan-img img {
    transform: scale(1.05);
}

.loan-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.loan-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.lh-icon {
    color: var(--primary-blue);
    font-size: 1.1rem;
}

.loan-item-card h3 {
    font-size: 1.2rem;
    color: var(--dark-blue);
    font-weight: 700;
}

.loan-content p {
    font-size: 0.9rem;
    color: var(--text-grey);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Stats (Montant / Durée) */
.loan-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.stat-row {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
}
.stat-row span { color: #888; margin-bottom: 3px; }
.stat-row strong { color: var(--dark-blue); }

/* Titre des fonctionnalités */
.features-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 10px;
    display: block;
}

/* Liste à puces */
.loan-features {
    list-style: none;
    margin-bottom: 25px;
    flex-grow: 1;
}
.loan-features li {
    font-size: 0.85rem;
    color: var(--text-grey);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.loan-features li i {
    color: var(--accent-green);
    font-size: 0.9rem;
}

/* Boutons Actions */
.loan-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.btn-primary-dark {
    background: var(--dark-blue);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
    transition: 0.3s;
}
.btn-primary-dark:hover {
    background: var(--primary-blue);
    color: #fff;
}

.btn-icon {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-blue);
    cursor: pointer;
    transition: 0.3s;
}
.btn-icon:hover {
    background: #f0f0f0;
}

/* Bouton "+" Actif */
.btn-icon.add-to-compare.active {
    background-color: var(--dark-blue);
    color: var(--accent-gold);
    border-color: var(--dark-blue);
}

/* =========================================
   MODALE DE DÉTAILS (POPUP)
   ========================================= */

/* Fond sombre arrière-plan */
.detail-modal-overlay {
    display: none; /* Caché par défaut */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px);
}

/* Conteneur principal du popup */
.detail-modal-container {
    background: #fff;
    width: 95%;
    max-width: 800px;
    height: 90vh; /* Prend 90% de la hauteur */
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Header (Titre + Croix) */
.dm-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dm-header h2 { margin: 0; font-size: 1.4rem; color: var(--dark-blue); font-weight: 800; }
.dm-close { font-size: 1.5rem; cursor: pointer; color: #999; transition: 0.3s; }
.dm-close:hover { color: var(--dark-blue); }

/* Corps scrollable */
.dm-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
}

/* Image bannière dans le popup */
.dm-banner {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 25px;
}
.dm-banner img { width: 100%; height: 100%; object-fit: cover; }
.dm-badge {
    position: absolute; top: 15px; left: 15px;
    background: var(--accent-gold); color: #222;
    padding: 6px 12px; border-radius: 6px; font-weight: 700; font-size: 0.85rem;
}

/* Stats Grid (Montant, Durée, Temps) */
.dm-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.dm-stat h6 { font-size: 0.75rem; color: #888; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.dm-stat p { font-size: 1.1rem; font-weight: 800; color: var(--dark-blue); margin: 0; }

/* Sections de texte */
.dm-section { margin-bottom: 30px; }
.dm-section h3 { font-size: 1.1rem; color: var(--dark-blue); margin-bottom: 15px; font-weight: 700; }
.dm-section p { font-size: 0.95rem; color: var(--text-grey); line-height: 1.6; }

/* Listes (Features, Criteria) */
.dm-list-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 colonnes comme demandé */
    gap: 15px 30px;
}
.dm-list-item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: #555; }
.dm-list-item i { margin-top: 3px; }

/* Couleurs spécifiques icônes */
.icon-green { color: var(--accent-green); } /* Features */
.icon-grey { color: #888; } /* Criteria */
.icon-blue { color: var(--primary-blue); } /* Documents */

/* Footer (Boutons collés en bas) */
.dm-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    background: #fff;
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 20px;
}
.dm-btn-outline {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--dark-blue);
    color: var(--dark-blue);
    text-align: center;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
}
.dm-btn-fill {
    flex: 1;
    padding: 12px;
    background: var(--accent-gold);
    color: #222;
    text-align: center;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    border: none;
}
.dm-btn-fill:hover { background: var(--accent-gold-hover); }

/* =========================================
   COMPARATEUR DE PRÊTS (BARRE & MODALE)
   ========================================= */

/* 1. Barre Flottante (Sticky Bar) */
.comparison-floating-bar {
    position: fixed;
    top: -100px; /* Caché par défaut */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: #fff;
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    padding: 15px 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 9998;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: top 0.4s ease;
}

.comparison-floating-bar.show {
    top: 20px; /* Apparaît en haut */
}

.comp-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.comp-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.comp-info i {
    color: var(--accent-gold);
    font-size: 1.3rem;
}

/* 2. Modale de Comparaison (Large) */
.compare-modal-container {
    background: #fff;
    width: 95%;
    max-width: 1100px; /* Plus large pour le tableau */
    height: 90vh;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Tableau de Comparaison */
.compare-table-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Nouvelle Grille de Comparaison */
.comparison-grid {
    display: grid;
    /* Les colonnes sont définies en JS dynamiquement */
    width: 100%;
    border: 1px solid #eee;
}

.comp-cell {
    padding: 20px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    text-align: center;
    font-size: 0.95rem;
    color: #555;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.comp-label-head, .comp-label {
    background: #f8f9fa;
    font-weight: 700;
    color: var(--dark-blue);
    text-align: left;
    align-items: flex-start;
    justify-content: center;
}

/* En-tête du produit (Image + Titre + Remove) */
.comp-head-item h4 {
    margin: 10px 0 5px;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark-blue);
}
.comp-img {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
}
.comp-img img { width: 100%; height: 100%; object-fit: cover; }

.remove-link {
    font-size: 0.75rem;
    color: #e74c3c;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    margin-top: 5px;
}
.remove-link:hover { text-decoration: underline; }

.badge-apr {
    background: var(--accent-gold);
    color: #222;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.comp-list {
    list-style: none;
    padding: 0;
    width: 100%;
}
.comp-list li {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    text-align: left;
    line-height: 1.4;
}
.comp-list li i { margin-top: 3px; }
.comp-cell.text-left { align-items: flex-start; text-align: left; }

/* =========================================
   PAGE: ABOUT US
   ========================================= */

/* 1. About Hero */
.about-hero {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.ab-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.ab-hero-text .ab-tag {
    background: rgba(255,255,255,0.1);
    color: var(--accent-gold);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
}

.ab-hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.ab-hero-text p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
    line-height: 1.6;
}

.ab-stats-row {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
}

.ab-stat-item strong {
    display: block;
    font-size: 2rem;
    color: var(--accent-gold);
    font-weight: 800;
    line-height: 1;
}

.ab-stat-item span {
    font-size: 0.85rem;
    opacity: 0.8;
}

.ab-hero-img img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    transform: rotate(2deg);
    border: 5px solid rgba(255,255,255,0.1);
}

/* 2. Mission & Vision */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.mv-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    transition: 0.3s;
}
.mv-card:hover { transform: translateY(-5px); border-color: var(--accent-gold); }

.mv-icon {
    width: 60px; height: 60px;
    background: #f0f7fa; color: var(--primary-blue);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 20px;
}

.mv-card h3 { font-size: 1.5rem; color: var(--dark-blue); margin-bottom: 15px; font-weight: 700; }
.mv-card p { color: var(--text-grey); font-size: 0.95rem; }

/* 3. Core Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.val-card {
    background: #fff; padding: 30px 20px;
    border-radius: 10px; text-align: left;
    border-top: 3px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: 0.3s;
}
.val-card:hover { border-top-color: var(--accent-gold); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }

.val-icon {
    font-size: 1.5rem; color: var(--accent-gold); margin-bottom: 15px;
}
.val-card h4 { font-size: 1.1rem; color: var(--dark-blue); margin-bottom: 10px; font-weight: 700; }
.val-card p { font-size: 0.85rem; color: var(--text-grey); }

/* 4. Timeline Verticale Pro */
.journey-timeline {
    position: relative;
    max-width: 1000px;
    margin: 50px auto 0;
}

/* La ligne centrale */
.journey-timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #e9ecef;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
    z-index: 0;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

/* Positionnement Gauche / Droite */
.timeline-item:nth-child(odd) { left: 0; text-align: right; }
.timeline-item:nth-child(even) { left: 50%; text-align: left; }

/* Le Point (Cercle avec icône) */
.timeline-dot {
    position: absolute;
    width: 50px;
    height: 50px;
    right: -25px; /* Pour les éléments à gauche */
    background-color: var(--white);
    border: 4px solid var(--accent-gold);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-blue);
    font-size: 1.2rem;
    box-shadow: 0 0 0 4px #fff, 0 4px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

/* Ajustement du point pour les éléments de droite */
.timeline-item:nth-child(even) .timeline-dot {
    left: -25px;
    right: auto;
}

.timeline-item:hover .timeline-dot {
    background-color: var(--accent-gold);
    color: var(--white);
    transform: scale(1.1);
}

/* La date flottante */
.timeline-date {
    position: absolute;
    top: 25px;
    right: -110px; /* Pour gauche */
    width: 70px;
    font-weight: 800;
    color: var(--primary-blue);
    font-size: 1.1rem;
    opacity: 0.8;
}
.timeline-item:nth-child(even) .timeline-date {
    left: -110px;
    right: auto;
    text-align: right;
}

/* La Boîte de Contenu (Card) */
.timeline-content {
    padding: 30px;
    background-color: var(--white);
    position: relative;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 3px solid transparent;
    transition: 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-top-color: var(--accent-gold);
}

/* Petite flèche qui pointe vers la ligne */
.timeline-content::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 32px;
    width: 0;
    z-index: 1;
    border: medium solid white;
}

/* Flèche pour éléments de gauche */
.timeline-item:nth-child(odd) .timeline-content::before {
    right: -20px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}

/* Flèche pour éléments de droite */
.timeline-item:nth-child(even) .timeline-content::before {
    left: -20px;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}

/* Typographie dans la carte */
.timeline-content h3 {
    margin-top: 0;
    color: var(--dark-blue);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.timeline-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-grey);
    line-height: 1.6;
}

/* 5. Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.team-card {
    background: #fff; border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: 0.3s;
}
.team-card:hover { transform: translateY(-5px); }

.team-img { height: 300px; overflow: hidden; }
.team-img img { width: 100%; height: 100%; object-fit: cover; }

.team-info { padding: 20px; }
.team-info h4 { font-size: 1.1rem; color: var(--dark-blue); font-weight: 700; margin-bottom: 2px; }
.team-info span { font-size: 0.8rem; color: var(--primary-blue); font-weight: 600; display: block; margin-bottom: 10px; }
.team-info p { font-size: 0.85rem; color: var(--text-grey); margin-bottom: 15px; line-height: 1.4; }

.team-socials a {
    color: #ccc; margin-right: 10px; font-size: 1rem; transition: 0.3s;
}
.team-socials a:hover { color: var(--accent-gold); }

/* 6. Presence (Dynamic Tabs & Grid) */
.presence-tabs-nav {
    display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap;
}
.p-nav-btn {
    background: #f8f9fa; border: none; padding: 12px 30px;
    border-radius: 8px; font-weight: 600; color: #555;
    cursor: pointer; transition: all 0.3s ease; font-size: 0.95rem;
}
.p-nav-btn:hover { background: #e9ecef; color: var(--primary-blue); }
.p-nav-btn.active { background: var(--accent-gold); color: #222; box-shadow: 0 4px 10px rgba(253, 179, 56, 0.3); }

.presence-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr); gap: 30px;
    animation: fadeIn 0.5s ease;
}
.presence-grid.active { display: grid; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.presence-card {
    background: #fff; border: 1px solid var(--border-color);
    border-radius: 12px; padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02); transition: 0.3s;
}
.presence-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: var(--primary-blue); }

.p-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.p-card-header h4 { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--dark-blue); }
.p-iso {
    font-size: 0.8rem; font-weight: 800; color: var(--accent-gold);
    background: rgba(253, 179, 56, 0.1); padding: 3px 8px; border-radius: 4px;
}

.p-card-body { display: flex; flex-direction: column; gap: 12px; }
.p-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; }
.p-label { color: #888; display: flex; align-items: center; gap: 8px; }
.p-label i { width: 20px; color: #bbb; }
.p-val { font-weight: 700; color: var(--dark-blue); }

/* 7. Certifications & Partners (PRO DESIGN) */

/* --- CERTIFICATIONS GRID (4 colonnes) --- */
.cert-pro-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.cert-pro-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.cert-pro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.cert-logo-area {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.cert-logo-area img {
    max-height: 100%;
    max-width: 80px;
    object-fit: contain;
}

.cert-info {
    text-align: left; /* Le texte est aligné à gauche */
}

.cert-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.cert-top-row h5 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin: 0;
    line-height: 1.3;
}

.cert-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-green); /* Année en vert */
}

.cert-sub {
    display: block;
    font-size: 0.75rem;
    color: #999;
    margin-bottom: 15px;
}

.cert-pro-card p {
    font-size: 0.8rem;
    color: var(--text-grey);
    line-height: 1.5;
    margin: 0;
}

/* --- PARTNERS GRID (3 colonnes) --- */
.partners-pro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.partner-pro-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px 25px;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.partner-pro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.partner-logo-box {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.partner-logo-box img {
    max-height: 100%;
    max-width: 120px;
    object-fit: contain;
}

.partner-info {
    text-align: left;
}

.partner-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f9f9f9;
}

.partner-top-row h5 {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin: 0;
}

.partner-role {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-blue); /* Rôle en bleu */
}

.partner-pro-card p {
    font-size: 0.85rem;
    color: var(--text-grey);
    line-height: 1.5;
    margin: 0;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .nav-links { display: none; } 
    .mobile-menu-btn { display: block; }
    .header-btn-desktop { display: inline-flex; }
    .hero-wrapper { flex-direction: column; align-items: center; text-align: center; }
    .hero-content { max-width: 100%; margin-bottom: 40px; }
    .hero-features-grid { text-align: left; display: inline-grid; margin: 0 auto 30px; }
    .hero-buttons { justify-content: center; }
    .hero-footer-links { justify-content: center; }
    .hero-widget { flex: auto; width: 100%; max-width: 500px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    
    /* Footer Tablette */
    .footer-top-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .footer-brand-col { grid-column: span 3; text-align: center; }
    .footer-desc { margin: 0 auto 25px; }
    .footer-socials { justify-content: center; }
    .footer-logo { justify-content: center; }
    
    /* Testimonials Tablette */
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Loan Grid Tablette */
    .loan-grid-wrapper { grid-template-columns: repeat(2, 1fr); }
    
    /* Footer contact tablette */
    .footer-contact-bar { grid-template-columns: repeat(2, 1fr); gap: 30px; }

    /* About Responsive Tablet */
    .ab-hero-grid { grid-template-columns: 1fr; text-align: center; }
    .ab-hero-text h1 { font-size: 2.5rem; }
    .ab-stats-row { justify-content: center; }
    .ab-hero-img { display: none; }
    .values-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Certifications Grid Tablet */
    .cert-pro-grid { grid-template-columns: repeat(2, 1fr); }
    .partners-pro-grid { grid-template-columns: repeat(2, 1fr); }
    
    .presence-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header-btn-desktop { padding: 6px 14px; font-size: 0.85rem; gap: 5px; margin-left: auto; margin-right: 15px; }
    .mobile-menu-btn { font-size: 1.4rem; padding: 5px; }
    .hero-title { font-size: 2.2rem; }
    .hero { padding: 40px 0; }
    .hero-features-grid { grid-template-columns: 1fr; gap: 15px; }
    .widget-stats-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .services-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .testimonial-card { padding: 25px; }
    .testimonial-text { min-height: auto; }
    
    .logo { font-size: 1.2rem; }
    .copyright { flex-direction: column; gap: 10px; }
    .cta-banner { padding: 40px 20px; }
    .cta-banner h2 { font-size: 1.5rem; }
    .cta-buttons { flex-direction: column; width: 100%; gap: 15px; }
    .cta-buttons .btn { width: 100%; }
    .calc-content { width: 95%; padding: 20px; }
    .calc-details-grid { grid-template-columns: 1fr; }
    
    /* Responsive Specifique How It Works (Grid) */
    .hiw-grid { grid-template-columns: 1fr; gap: 20px; }
    .hiw-card { display: flex; align-items: center; text-align: left; padding: 20px; }
    .hiw-icon { margin: 0 20px 0 0; width: 50px; height: 50px; font-size: 1.2rem; flex-shrink: 0; }
    .step-number { top: 50%; right: 20px; transform: translateY(-50%); font-size: 3rem; }
    .hiw-cta { flex-direction: column; width: 100%; }
    .hiw-cta .btn { width: 100%; }
    
    /* Footer Mobile */
    .footer-contact-bar { grid-template-columns: 1fr; gap: 30px; }
    .footer-top-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand-col { grid-column: span 1; }
    .footer-trust-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 30px 0; text-align: left; }
    .trust-item { justify-content: flex-start; font-size: 0.85rem; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .bottom-links { flex-direction: column; gap: 10px; }
    
    /* Loan Grid Mobile */
    .loan-grid-wrapper { grid-template-columns: 1fr; }
    
    /* Popup Mobile */
    .dm-stats-grid { grid-template-columns: 1fr; gap: 15px; }
    .dm-list-grid { grid-template-columns: 1fr; }
    .dm-footer { flex-direction: column-reverse; }
    
    /* Comparison Mobile */
    .comparison-grid { display: flex; flex-direction: column; overflow-x: auto; }

    /* About Mobile */
    .mv-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
    
    /* Timeline Mobile */
    .journey-timeline::after { left: 30px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; text-align: left; }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) { left: 0; }
    .timeline-item:nth-child(odd) .timeline-dot, .timeline-item:nth-child(even) .timeline-dot { left: 5px; right: auto; }
    .timeline-item:nth-child(odd) .timeline-content::before, .timeline-item:nth-child(even) .timeline-content::before { left: -20px; right: auto; border-width: 10px 10px 10px 0; border-color: transparent white transparent transparent; }
    .timeline-date, .timeline-item:nth-child(even) .timeline-date { position: static; text-align: left; margin-bottom: 5px; display: block; width: 100%; font-size: 0.9rem; color: var(--accent-gold); }

    .team-grid { grid-template-columns: 1fr; }
    .presence-grid { grid-template-columns: 1fr; }
    .presence-tabs-nav { gap: 10px; }
    .p-nav-btn { padding: 10px 15px; font-size: 0.85rem; flex: 1 1 45%; }
    
    /* Certifications Mobile */
    .cert-pro-grid { grid-template-columns: 1fr; }
    .partners-pro-grid { grid-template-columns: 1fr; }
    
    .cert-top-row { align-items: center; }
    .partner-top-row { flex-direction: column; align-items: flex-start; gap: 5px; }
}

/* --- CORRECTIFS ESPACEMENTS & IMAGES --- */

/* Force l'espacement sous les titres */
.section-title {
    font-size: 2.2rem;
    color: var(--dark-blue);
    margin-bottom: 20px; /* Plus d'espace sous le gros titre */
    font-weight: 800;
}

.section-subtitle {
    color: var(--text-grey);
    margin-bottom: 70px; /* BEAUCOUP plus d'espace avant le contenu */
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Utilitaires d'espacement (au cas où Bootstrap n'est pas chargé) */
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 4rem !important; } /* Augmenté pour aérer */
.mt-5 { margin-top: 4rem !important; }

/* Ajustement des images de logos pour qu'elles ne soient pas écrasées */
.cert-logo-area img, 
.partner-logo-box img {
    width: auto;
    height: auto;
    max-width: 80%;
    max-height: 80%;
    object-fit: contain; /* Empêche la déformation */
}

/* Ajustement Hero Image */
.ab-hero-img img {
    object-fit: cover;
    height: 500px; /* Hauteur fixe pour éviter le décalage */
}

/* =========================================
   PAGE: ELIGIBILITY CHECK
   ========================================= */

/* 1. Eligibility Hero */
.eligibility-hero {
    background: linear-gradient(135deg, #31708E 0%, #245a72 100%);
    color: #fff;
    padding: 80px 0 100px;
    position: relative;
}
.eligibility-hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; }
.eligibility-hero p { font-size: 1.1rem; opacity: 0.9; max-width: 700px; margin: 0 auto; line-height: 1.6; }

/* 2. Basic Requirements Grid */
.req-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: -20px; /* Remonter un peu si besoin */
}

.req-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}
.req-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--primary-blue); }

.req-icon {
    width: 50px; height: 50px;
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.req-card h4 { font-size: 1.1rem; font-weight: 700; color: var(--dark-blue); margin-bottom: 10px; }
.req-card p { font-size: 0.9rem; color: var(--text-grey); line-height: 1.5; margin: 0; }

/* 3. Required Documents List */
.docs-wrapper { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }

.doc-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    display: flex;
    gap: 25px;
    border: 1px solid #eee;
    border-left: 4px solid var(--accent-green); /* Bordure verte à gauche */
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.doc-icon {
    flex-shrink: 0; width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    background: #f0fdf4; color: var(--accent-green);
    border-radius: 50%; font-size: 1.2rem;
}

.doc-content { flex-grow: 1; }

.doc-header { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.doc-header h4 { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--dark-blue); }

.badge-required {
    background: #fef2f2; color: #ef4444;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    padding: 3px 8px; border-radius: 4px; letter-spacing: 0.5px;
}

.doc-content p { font-size: 0.9rem; color: #555; margin-bottom: 15px; }

.doc-sub-label { font-size: 0.8rem; font-weight: 700; color: var(--dark-blue); margin-bottom: 8px; }

.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li {
    font-size: 0.85rem; color: var(--text-grey);
    margin-bottom: 5px; display: flex; align-items: center; gap: 8px;
}
.doc-list li i { color: var(--accent-green); font-size: 0.9rem; }

/* Security Box */
.doc-security-box {
    background: #f8f9fa; border: 1px solid #eee;
    border-radius: 8px; padding: 20px;
    display: flex; align-items: flex-start; gap: 15px;
    margin-top: 10px;
}
.doc-security-box i { color: var(--accent-gold); font-size: 1.2rem; margin-top: 2px; }
.sec-text strong { display: block; font-size: 0.9rem; color: var(--dark-blue); margin-bottom: 2px; }
.sec-text p { font-size: 0.8rem; color: #777; margin: 0; line-height: 1.4; }

/* 4. Interactive Quiz */
.quiz-container {
    max-width: 700px; margin: 0 auto;
    background: #fff; border: 1px solid var(--border-color);
    border-radius: 12px; padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.quiz-progress-header {
    display: flex; justify-content: space-between;
    font-size: 0.8rem; font-weight: 700; color: var(--dark-blue);
    margin-bottom: 10px;
}

.quiz-progress-bar {
    height: 6px; background: #eee;
    border-radius: 3px; overflow: hidden; margin-bottom: 40px;
    transition: 0.3s;
}
.quiz-progress-fill {
    height: 100%; background: var(--primary-blue);
    border-radius: 3px; transition: width 0.4s ease;
}

.quiz-step { display: none; animation: fadeIn 0.4s ease; }
.quiz-step.active { display: block; }

.quiz-question {
    font-size: 1.3rem; color: var(--dark-blue);
    font-weight: 700; margin-bottom: 30px;
}

.quiz-options { display: flex; flex-direction: column; gap: 15px; }

.quiz-btn {
    background: #fff; border: 2px solid #eee;
    padding: 15px 20px; border-radius: 8px;
    text-align: left; font-weight: 600; color: var(--dark-blue);
    cursor: pointer; transition: 0.2s;
    display: flex; justify-content: space-between; align-items: center;
}
.quiz-btn:hover { border-color: var(--primary-blue); background: #f0f7fa; }
.quiz-btn i { font-size: 0.9rem; color: #ccc; }
.quiz-btn:hover i { color: var(--primary-blue); }

.quiz-nav { margin-top: 20px; border-top: 1px solid #f0f0f0; padding-top: 20px; }
.back-link { font-size: 0.9rem; color: #999; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.back-link:hover { color: var(--dark-blue); }

/* Success/Fail Icons */
.success-icon, .fail-icon { font-size: 4rem; margin-bottom: 20px; }
.success-icon { color: var(--accent-green); }
.fail-icon { color: #e74c3c; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .eligibility-hero h1 { font-size: 2.2rem; }
    .req-grid { grid-template-columns: 1fr; }
    .doc-card { flex-direction: column; gap: 15px; }
    .doc-icon { width: 40px; height: 40px; font-size: 1rem; }
    .quiz-container { padding: 25px; }
    .quiz-question { font-size: 1.1rem; }
}


/* =========================================
   PAGE: SUCCESS STORIES
   ========================================= */

/* 1. Success Hero */
.success-hero {
    background: linear-gradient(135deg, #245a72 0%, #31708E 100%);
    color: #fff;
    padding: 80px 0 60px;
    position: relative;
}

.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: var(--accent-gold);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.success-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.success-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-mini-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 30px;
    flex-wrap: wrap;
}

.hero-mini-stats span {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-mini-stats i { color: var(--accent-green); }

/* 2. Impact Stats Grid */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.impact-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: var(--primary-blue);
}

.im-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #f0f7fa;
    color: var(--primary-blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.im-data h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-blue);
}

.im-data span {
    font-size: 0.85rem;
    color: var(--text-grey);
    font-weight: 500;
}

/* 3. Wall of Love (Review Masonry) */
.reviews-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid transparent;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card:hover { transform: translateY(-5px); border-color: var(--accent-gold); }

.review-card p {
    font-size: 0.95rem;
    color: #555;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.reviewer img {
    width: 45px; height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer h5 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.reviewer small {
    color: #888;
    font-size: 0.8rem;
}

/* 4. Case Studies */
.cs-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.cs-filter-btn {
    background: #f8f9fa;
    border: none;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.cs-filter-btn:hover { background: #e9ecef; color: var(--primary-blue); }
.cs-filter-btn.active { background: var(--dark-blue); color: #fff; }

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.cs-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.cs-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.cs-img {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.cs-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: 0.5s;
}
.cs-card:hover .cs-img img { transform: scale(1.05); }

.cs-badge {
    position: absolute; top: 15px; left: 15px;
    padding: 5px 12px; border-radius: 4px;
    font-size: 0.75rem; font-weight: 700; color: #fff;
}
.badge-blue { background: var(--primary-blue); }
.badge-green { background: var(--accent-green); }
.badge-red { background: #e74c3c; }
.badge-orange { background: #e67e22; }

.cs-content { padding: 30px; }

.cs-content h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.cs-row { margin-bottom: 15px; font-size: 0.9rem; color: #555; }
.cs-row strong { color: var(--primary-blue); display: block; margin-bottom: 3px; font-size: 0.85rem; }
.cs-row i { margin-right: 5px; }

.cs-metrics {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.cs-metrics div { display: flex; flex-direction: column; }
.cs-metrics span { font-size: 1.2rem; font-weight: 800; color: var(--dark-blue); }
.cs-metrics small { font-size: 0.75rem; color: #888; text-transform: uppercase; }

/* 5. Geographic Table */
.geo-table-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    overflow-x: auto;
}

.geo-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.geo-table th {
    text-align: left;
    padding: 20px 30px;
    background: #f8f9fa;
    color: var(--text-grey);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.geo-table td {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.geo-table tr:last-child td { border-bottom: none; }
.geo-table tr:hover { background-color: #fcfcfc; }

.geo-country { display: flex; align-items: center; gap: 10px; }
.geo-country .flag { font-size: 1.2rem; }

.geo-badge {
    background: #f0fdf4;
    color: var(--accent-green);
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* RESPONSIVE SUCCESS PAGE */
@media (max-width: 1024px) {
    .impact-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-masonry { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .success-hero h1 { font-size: 2.2rem; }
    .hero-mini-stats { flex-direction: column; gap: 10px; }
    .impact-grid { grid-template-columns: 1fr; }
    .reviews-masonry { grid-template-columns: 1fr; }
    .case-study-grid { grid-template-columns: 1fr; }
    .cs-metrics { gap: 15px; }
}

/* =========================================
   PAGE: FAQ
   ========================================= */

/* 1. FAQ Hero */
.faq-hero {
    background: linear-gradient(135deg, #31708E 0%, #245a72 100%);
    color: #fff;
    padding: 80px 0 100px;
    position: relative;
}

.faq-hero h1 { font-size: 2.8rem; font-weight: 800; margin-bottom: 20px; }
.faq-hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto 40px; }

/* Barre de recherche */
.faq-search-wrapper {
    max-width: 600px; margin: 0 auto;
    position: relative;
}
.faq-search-wrapper input {
    width: 100%;
    padding: 18px 25px 18px 55px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    outline: none; transition: 0.3s;
}
.faq-search-wrapper input:focus { box-shadow: 0 15px 40px rgba(0,0,0,0.25); transform: translateY(-2px); }
.search-icon {
    position: absolute; left: 25px; top: 50%; transform: translateY(-50%);
    color: var(--primary-blue); font-size: 1.2rem;
}

/* 2. FAQ Tabs */
.faq-tabs {
    display: flex; justify-content: center; gap: 10px; margin-bottom: 50px; flex-wrap: wrap;
}
.faq-tab {
    background: #f8f9fa; border: 1px solid #eee;
    padding: 10px 25px; border-radius: 30px;
    font-weight: 600; color: #555; cursor: pointer; transition: 0.3s;
}
.faq-tab:hover { background: #e9ecef; color: var(--primary-blue); }
.faq-tab.active { background: var(--dark-blue); color: #fff; border-color: var(--dark-blue); }

/* 3. Accordion Items */
.faq-grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }

.faq-item {
    background: #fff; border: 1px solid var(--border-color);
    border-radius: 10px; overflow: hidden;
    transition: 0.3s;
}
.faq-item:hover { border-color: var(--primary-blue); box-shadow: 0 5px 15px rgba(0,0,0,0.03); }

.faq-question {
    padding: 20px 25px;
    display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; background: #fff;
}
.faq-question h4 {
    margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--dark-blue);
}
.faq-question i {
    color: var(--accent-gold); transition: transform 0.3s ease;
}
.faq-question.active i { transform: rotate(45deg); color: var(--dark-blue); }

.faq-answer {
    padding: 0 25px;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #fcfcfc; border-top: 1px solid transparent;
}
.faq-question.active + .faq-answer { border-top-color: #f0f0f0; }
.faq-answer p { margin: 0; font-size: 0.95rem; color: #555; line-height: 1.6; }

/* 4. Support Box */
.help-box {
    background: #fff; border-radius: 16px;
    padding: 40px; margin: 0 auto; max-width: 900px;
    display: flex; align-items: center; gap: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05); text-align: left;
}
.help-content { flex: 1; }
.help-content h3 { font-size: 1.8rem; color: var(--dark-blue); margin-bottom: 10px; }
.help-content p { color: var(--text-grey); margin-bottom: 25px; }
.help-actions { display: flex; gap: 15px; }

.help-img {
    width: 250px; height: 250px; flex-shrink: 0; border-radius: 50%;
    overflow: hidden; border: 5px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.help-img img { width: 100%; height: 100%; object-fit: cover; }

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-hero h1 { font-size: 2.2rem; }
    .help-box { flex-direction: column-reverse; text-align: center; padding: 30px 20px; }
    .help-actions { justify-content: center; flex-direction: column; }
    .help-img { width: 150px; height: 150px; margin-bottom: 20px; }
    .faq-tab { font-size: 0.9rem; padding: 8px 15px; }
}

/* =========================================
   PAGE: CONTACT
   ========================================= */

/* 1. Contact Hero */
.contact-hero {
    background: linear-gradient(135deg, #245a72 0%, #31708E 100%);
    color: #fff;
    padding: 80px 0 100px;
    position: relative;
}
.contact-hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 20px; }
.contact-hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* 2. Contact Wrapper (Layout) */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info prend moins de place que le form */
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    margin-top: -50px; /* Chevauchement sur le Hero pour effet moderne */
    position: relative;
    z-index: 10;
}

/* Left Column: Info */
.info-card {
    background: var(--dark-blue);
    color: #fff;
    padding: 40px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.info-card h3 { font-size: 1.5rem; margin-bottom: 10px; color: var(--accent-gold); }

.info-item {
    display: flex; gap: 20px; margin-bottom: 30px;
}
.info-item:last-child { margin-bottom: 0; }

.info-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-gold); font-size: 1.1rem;
    flex-shrink: 0;
}

.info-item strong { display: block; font-size: 1rem; margin-bottom: 3px; }
.info-item span { display: block; font-size: 0.9rem; opacity: 0.9; line-height: 1.5; }
.info-item small { display: block; font-size: 0.75rem; opacity: 0.6; margin-top: 5px; }

/* Update Map Container */
.contact-map-img {
    height: 300px; /* J'ai augmenté un peu la hauteur pour une meilleure visibilité de la carte */
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    position: relative;
    background: #e9ecef; /* Fond gris pendant le chargement */
}

/* Update pour cibler l'iframe au lieu de img */
.contact-map-img iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* On supprime le style de l'ancienne map-pin car Google Maps a déjà son propre marqueur */
.map-pin {
    display: none;
}

/* Right Column: Form */
.contact-form-col {
    background: #fff;
    padding: 50px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.contact-form h3 { font-size: 1.8rem; font-weight: 800; color: var(--dark-blue); margin-bottom: 10px; }
.form-sub { margin-bottom: 30px; color: var(--text-grey); font-size: 0.95rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 0.9rem; font-weight: 600; color: var(--dark-blue); margin-bottom: 8px;
}
.form-group .req { color: #e74c3c; }

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
    background: #fcfcfc;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--primary-blue);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(49, 112, 142, 0.1);
}

.full-width { width: 100%; }

/* Alerts */
.alert-box {
    padding: 15px 20px; border-radius: 8px; margin-bottom: 30px;
    font-size: 0.95rem; font-weight: 600; display: flex; align-items: center; gap: 10px;
}
.alert-box.success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-box.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* 3. Branches */
.branches-grid {
    display: flex; justify-content: center; gap: 40px; margin-top: 40px; flex-wrap: wrap;
}
.branch-item {
    text-align: center;
}
.branch-item img {
    margin-bottom: 10px; border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.branch-item h5 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--dark-blue); }
.branch-item span { font-size: 0.85rem; color: #888; }

/* Responsive Contact */
@media (max-width: 1024px) {
    /* Sur Tablette : On passe en colonne, formulaire en haut (column-reverse) */
    .contact-wrapper {
        display: flex;
        flex-direction: column-reverse; 
        gap: 40px;
        margin-top: 0;
    }

    .info-card {
        border-radius: 12px; 
    }

    /* On cache l'image de la map sur tablette pour gagner de la place */
    .contact-map-img {
        display: none; 
    }
}

@media (max-width: 768px) {
    /* --- CHANGEMENT ICI : Masquer la barre d'infos sur Mobile --- */
    .contact-info-col {
        display: none;
    }

    /* Ajustements du formulaire sur mobile */
    .contact-hero h1 { font-size: 2.2rem; }
    .contact-form-col { padding: 30px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .branches-grid { flex-direction: column; gap: 25px; }
}

/* =========================================
   PAGE: TERMS & LEGAL
   ========================================= */

/* Hero spécifique (plus sobre) */
.legal-hero {
    background: var(--dark-blue); /* Fond uni sombre pour le sérieux */
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.legal-hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 10px; }
.legal-hero p { font-size: 1rem; opacity: 0.8; margin-bottom: 20px; }
.last-updated { 
    display: inline-block; 
    background: rgba(255,255,255,0.1); 
    padding: 5px 15px; 
    border-radius: 20px; 
    font-size: 0.85rem; 
    font-weight: 500;
}

/* Wrapper pour le contenu (Lecture agréable) */
.legal-wrapper {
    max-width: 800px; /* On limite la largeur pour ne pas fatiguer l'œil */
    margin: 0 auto;
    background: #fff;
}

.legal-block {
    margin-bottom: 40px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 30px;
}

.legal-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-block h2 {
    font-size: 1.5rem;
    color: var(--dark-blue);
    margin-bottom: 20px;
    font-weight: 700;
}

.legal-block p {
    font-size: 1rem;
    color: #555;
    line-height: 1.8; /* Interlignage plus grand pour le confort de lecture */
    margin-bottom: 15px;
    text-align: justify;
}

.legal-list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: #555;
}

.legal-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Section contact en bas de page */
.contact-clause ul {
    list-style: none;
    padding: 0;
}
.contact-clause ul li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--dark-blue);
}
.contact-clause ul li strong {
    color: var(--primary-blue);
    margin-right: 5px;
}
.contact-clause a {
    color: var(--dark-blue);
    text-decoration: underline;
}
.contact-clause a:hover {
    color: var(--accent-gold);
}

/* Responsive */
@media (max-width: 768px) {
    .legal-hero h1 { font-size: 2rem; }
    .legal-wrapper { padding: 0 10px; }
    .legal-block p { text-align: left; } /* Enlever le justifié sur mobile */
}

/* =========================================
   PAGE: GET LOAN (APPLICATION)
   ========================================= */

/* Header Simple (différent du Hero d'accueil) */
.page-header-simple {
    background: var(--dark-blue);
    color: #fff;
    padding: 60px 0 40px;
    text-align: center;
}
.page-header-simple h1 { font-size: 2.5rem; margin-bottom: 10px; }
.page-header-simple p { opacity: 0.8; }

/* Wrapper du formulaire */
.application-form-wrapper {
    max-width: 700px; /* Centré et pas trop large pour la lisibilité */
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 5px solid var(--primary-blue);
}

.section-head {
    font-size: 1.2rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

/* Checkbox légale */
.form-legal-check {
    margin: 20px 0 30px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.9rem;
    color: #666;
}
.form-legal-check input {
    margin-top: 4px;
    width: auto; /* Annule le width:100% des inputs standards */
}
.form-legal-check a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.secure-note {
    text-align: center;
    font-size: 0.85rem;
    color: #888;
    margin-top: 15px;
}

/* Carte de succès */
.success-card {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    padding: 50px 30px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.icon-check {
    width: 80px; height: 80px;
    background: #dcfce7;
    color: #166534;
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}

.success-card h2 { color: var(--dark-blue); margin-bottom: 15px; }
.success-card p { color: #555; margin-bottom: 10px; }

/* Responsive */
@media (max-width: 768px) {
    .application-form-wrapper {
        padding: 25px 20px;
    }
}

/* =========================================
   LOGIN MODAL (POPUP)
   ========================================= */

/* L'arrière-plan sombre */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px); /* Effet flou moderne */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* Quand le modal est actif */
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* La boîte blanche */
.modal-content {
    background: #fff;
    width: 90%;
    max-width: 420px;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

/* Bouton fermer (X) */
.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: 0.2s;
}
.close-modal:hover { color: var(--dark-blue); }

/* Header du modal */
.modal-icon {
    width: 70px; height: 70px;
    background: #f0f7fa;
    color: var(--primary-blue);
    font-size: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
}

.modal-header h2 {
    font-size: 1.6rem;
    color: var(--dark-blue);
    margin-bottom: 5px;
}
.modal-header p {
    font-size: 0.95rem;
    color: #777;
    margin-bottom: 30px;
}

/* Input stylisé avec icône */
.input-with-icon {
    position: relative;
}
.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
}
.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px; /* Espace pour l'icône */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.3s;
}
.input-with-icon input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(49, 112, 142, 0.1);
    outline: none;
}

/* Footer du modal */
.modal-footer {
    margin-top: 25px;
    font-size: 0.85rem;
    color: #999;
}

/* RESPONSIVE */
@media (max-width: 480px) {
    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }
    .modal-header h2 { font-size: 1.4rem; }
}

/* CTA SECTION */

.cta-section {
    background: linear-gradient(135deg, #2e5f73, #3f7f96);
    padding: 80px 20px;
    color: #ffffff;
    text-align: center;
}

.cta-container {
    max-width: 1100px;
    margin: auto;
}

/* TITLES */

.cta-title {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* FEATURES */

.cta-features {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
}

.cta-feature i {
    color: #f4c24d;
    font-size: 1.2rem;
}

/* BUTTONS */

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: #f4c24d;
    color: #000;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-cta-primary:hover {
    background: #e0ad32;
}

.btn-cta-secondary {
    background: #ffffff;
    color: #2e5f73;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-cta-secondary:hover {
    background: #e6e6e6;
}

/* RESPONSIVE */

@media (max-width: 768px) {

    .cta-title {
        font-size: 2rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }

    .cta-features {
        gap: 25px;
    }

    .cta-feature {
        font-size: 0.95rem;
    }

    /* FIX BOUTONS CENTRÉS */
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

}

.expertise-list {
    font-size: 12px;       /* réduit la taille du texte */
    color: orange;         /* texte orange */
    list-style-type: disc; /* ou 'none' pour enlever les puces */
    padding-left: 20px;    /* espace avant les puces */
    margin: 5px 0;
}

/* ============================================
   LANGUAGE SWITCHER — responsive
   ============================================ */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    z-index: 1002;
}
.lang-btn {
    background: transparent;
    border: 1.5px solid rgba(0,0,0,.15);
    color: var(--dark-blue, #0f2744);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all .2s;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1;
}
.lang-btn:hover {
    background: rgba(30,58,138,.06);
    border-color: var(--primary-blue, #1e3a8a);
}
.lang-btn i { font-size: .65rem; }
.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.15);
    list-style: none;
    padding: 6px 0;
    margin: 0;
    min-width: 160px;
    z-index: 9999;
    border: 1px solid #e2e8f0;
}
.lang-dropdown.open { display: block; }
.lang-dropdown li a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    color: #334155;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    transition: background .12s;
}
.lang-dropdown li a:hover { background: #f1f5f9; }
.lang-dropdown li.active a {
    color: var(--primary-blue, #1e3a8a);
    font-weight: 700;
    background: #eff6ff;
}
/* Always show the switcher — override desktop-only hiding */
.nav-lang-wrap {
    display: flex !important;
    align-items: center;
}
/* Mobile: inside drawer */
.mobile-lang .lang-btn {
    color: var(--dark-blue, #0f2744);
    border-color: #e2e8f0;
    font-size: .85rem;
}
.mobile-lang .lang-dropdown {
    right: auto;
    left: 0;
}
