/* Force light color scheme */
:root { color-scheme: light; }

/* Variables */
:root {
    --primary-color: #5b21f3;
    --secondary-color: #4c1d95;
    --accent-color: #667eea;
    --public-navbar-height: 80px;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark: #1f2937;
    --light: #f9fafb;
    --white: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation publique */
.public-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--public-navbar-height);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
}

.nav-brand i {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 13px;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.mobile-quick-actions {
    display: none;
}

.mobile-action-btn {
    border-radius: 10px;
    border: 2px solid transparent;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
    min-height: 44px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.mobile-action-secondary {
    background: #ffffff;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.mobile-action-secondary:hover {
    background: rgba(91, 33, 243, 0.08);
}

.mobile-action-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
}

.mobile-action-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.35);
}

.mobile-action-full {
    grid-column: 1 / -1;
}

.btn-login {
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-login:hover {
    background: var(--primary-color);
    color: white;
}

.btn-cta {
    padding: 10px 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: transform 0.3s;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s;
}

/* Hero Slider */
.hero-slider {
    margin-top: var(--public-navbar-height);
    height: calc(100vh - var(--public-navbar-height));
    min-height: 560px;
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.slider-container {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    display: flex;
    align-items: center;
    padding: 0 8%;
    color: white;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    background-size: cover;
    background-position: center;
}

.slide.active {
    opacity: 1;
}

/* Full-width background image when slide has photo */
.slide-image.slide-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    animation: none;
    font-size: 0;
}

.slide-image.slide-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    filter: none;
    display: block;
}

/* Dark gradient overlay for readability over photos */
.slide-image.slide-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(8, 10, 30, 0.75) 0%,
        rgba(8, 10, 30, 0.50) 50%,
        rgba(8, 10, 30, 0.18) 100%
    );
    z-index: 1;
}

/* Decorative icon for slides without photos */
.slide-image:not(.slide-photo) {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 220px;
    opacity: 0.10;
    z-index: 1;
    animation: float 4s ease-in-out infinite;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
    animation: slideInLeft 1s ease-out;
}

.slide-content h1 {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: 20px;
    line-height: 1.15;
    font-weight: 800;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.slide-content p {
    font-size: clamp(16px, 2vw, 20px);
    margin-bottom: 36px;
    opacity: 0.92;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0,0,0,0.25);
}

.btn-hero {
    padding: 16px 40px;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.btn-hero:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

/* Default slides with background-image set via inline style */
.slide.slide-photo {
    background-size: cover !important;
    background-position: center !important;
}

.slide-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(8, 10, 30, 0.72) 0%,
        rgba(8, 10, 30, 0.48) 55%,
        rgba(8, 10, 30, 0.16) 100%
    );
    z-index: 1;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Sections */
.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 18px;
    margin-bottom: 50px;
}

/* Services */
.services-section {
    padding: 80px 0;
    background: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: white;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* À propos */
.about-section {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--light);
    border-radius: 10px;
}

.stat-item h3 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 14px;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-item i {
    font-size: 30px;
    color: var(--primary-color);
    margin-top: 5px;
}

.feature-item h4 {
    margin-bottom: 5px;
    font-size: 18px;
}

.feature-item p {
    font-size: 15px;
    margin: 0;
}

.about-image {
    font-size: 300px;
    color: var(--primary-color);
    opacity: 0.1;
    text-align: center;
}

/* Prêts */
.loans-section {
    padding: 80px 0;
    background: var(--light);
}

.loan-simulator {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--border-color);
    outline: none;
    -webkit-appearance: none;
}

.form-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.form-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.form-group span {
    display: block;
    margin-top: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
}

.btn-calculate {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-calculate:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.simulator-result {
    background: var(--light);
    padding: 30px;
    border-radius: 15px;
}

.simulator-result h3 {
    margin-bottom: 25px;
    font-size: 22px;
    text-align: center;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.result-item:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
}

.result-item span {
    color: var(--text-secondary);
}

.result-item strong {
    font-size: 20px;
    color: var(--primary-color);
}

.btn-apply {
    width: 100%;
    padding: 15px;
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-apply:hover {
    background: #059669;
    transform: translateY(-2px);
}

/* Paiements */
.payments-section {
    padding: 80px 0;
    background: #ffffff;
}

.payments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.payment-method-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.payment-method-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

.payment-method-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.payment-method-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.payment-method-card p {
    color: #64748b;
    margin: 0;
}

/* Contact */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 30px;
    color: var(--primary-color);
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 5px;
    font-size: 18px;
}

.contact-item p {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 3px;
}

.contact-item small {
    color: var(--text-secondary);
    font-size: 13px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

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

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 5px;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.25s ease;
}

.modal-content.large {
    max-width: 800px;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
    line-height: 0.9;
}

.close:hover {
    color: var(--text-primary);
}

.modal-content h2 {
    margin-bottom: 30px;
    font-size: 28px;
    color: var(--text-primary);
}

.account-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.account-type-btn {
    padding: 30px 20px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.account-type-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.account-type-btn.active {
    border-color: var(--primary-color);
    background: rgba(91, 33, 243, 0.08);
}

.account-type-btn i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.account-type-btn h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.account-type-btn p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.account-form {
    display: none;
}

.account-form.active {
    display: block;
}

.account-form h3 {
    margin: 30px 0 20px;
    font-size: 20px;
    color: var(--text-primary);
}

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

.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-account-content {
    max-width: 860px !important;
}

.modal-account-content .account-form {
    margin-top: 6px;
}

/* Labeled field wrapper for account opening form */
.labeled-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0;
}

.labeled-field label {
    font-size: 12px;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.labeled-field input,
.labeled-field select,
.labeled-field textarea {
    margin-bottom: 0 !important;
}

.form-row > .labeled-field {
    flex: 1;
    min-width: 0;
}

/* Override form-row to use gap for spacing when labeled */
.form-row:has(.labeled-field) {
    gap: 15px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0;
}

.form-check input[type="checkbox"] {
    margin: 5px 0 0 0;
    width: auto;
}

.form-check label {
    font-size: 14px;
    color: var(--text-secondary);
}

.form-check a {
    color: var(--primary-color);
    text-decoration: none;
}

.btn-primary {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.modal-login-content {
    max-width: 480px;
}

.modal-login-content h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.modal-subtitle {
    text-align: center;
    color: #64748b;
    margin: 0 0 20px;
    font-size: 16px;
}

.login-field {
    margin-bottom: 16px;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #334155;
    font-size: 16px;
}

.login-field i {
    margin-right: 4px;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.remember-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.35;
    cursor: pointer;
}

.remember-option input {
    margin-top: 5px;
    width: auto;
}

.forgot-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.35;
    white-space: nowrap;
}

.forgot-link:hover {
    text-decoration: underline;
}

.login-extra {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.login-extra p {
    color: #64748b;
    margin-bottom: 12px;
    font-size: 15px;
}

.btn-outline-primary {
    padding: 10px 22px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.btn-outline-primary:hover {
    background: rgba(91, 33, 243, 0.08);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive */
@media (max-width: 1024px) {
    .slide {
        padding: 0 50px;
    }

    .slide-content h1 {
        font-size: 36px;
    }

    .slide-image {
        font-size: 180px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        display: none;
    }

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

    .loan-simulator {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .public-page {
        padding-bottom: 100px;
    }

    .nav-menu {
        position: fixed;
        top: var(--public-navbar-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--public-navbar-height));
        background: white;
        flex-direction: column;
        padding: 20px;
        transition: left 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 1200;
    }

    .nav-menu.active {
        left: 0;
        display: flex;
    }

    .nav-menu li {
        margin: 0;
        padding: 15px 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .nav-menu li a {
        font-size: 18px;
        padding: 10px 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-actions {
        display: none !important;
    }

    .mobile-quick-actions {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 10px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
        padding: 10px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        z-index: 1100;
    }

    .hero-slider {
        height: calc(100vh - var(--public-navbar-height));
        min-height: 460px;
    }

    .slide {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 0 30px;
    }

    .slide-content {
        max-width: 100%;
    }

    .slide-content h1 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .slide-image {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .account-type-selector {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .slider-btn.prev {
        left: 10px;
    }

    .slider-btn.next {
        right: 10px;
    }
}

/* Responsive pour petits écrans mobiles */
@media (max-width: 480px) {
    .public-page {
        padding-bottom: 110px;
    }

    .nav-brand span {
        font-size: 18px;
    }

    .mobile-quick-actions {
        left: 8px;
        right: 8px;
        bottom: 8px;
        padding: 8px;
        gap: 6px;
    }

    .mobile-action-btn {
        font-size: 12px;
        min-height: 40px;
        padding: 8px 10px;
    }

    .hero-slider {
        min-height: 420px;
    }

    .slide-content h1 {
        font-size: 24px;
    }

    .slide-content p {
        font-size: 14px;
    }

    .btn-hero {
        padding: 12px 25px;
        font-size: 14px;
    }

    .section-title {
        font-size: 28px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .stat-card h3 {
        font-size: 32px;
    }

    .loan-card h3 {
        font-size: 20px;
    }

    .modal-content {
        padding: 20px;
        margin: 10px;
        max-width: 95% !important;
    }

    .modal-content h2 {
        font-size: 22px;
    }

    input, select, textarea {
        font-size: 16px !important; /* Évite le zoom automatique sur iOS */
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive pour tablettes */
@media (min-width: 769px) and (max-width: 1024px) {
    .nav-menu {
        gap: 20px;
    }

    .nav-menu li a {
        font-size: 14px;
    }

    .nav-actions button {
        padding: 8px 15px;
        font-size: 14px;
    }

    .slide-content h1 {
        font-size: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Amélioration générale de la responsivité */
img {
    max-width: 100%;
    height: auto;
}

.container {
    padding: 0 15px;
}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        font-size: 16px;
    }
}

/* Support pour les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .public-navbar {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
}


/* === BANKING CODES SECTION (IBAN / SWIFT) === */
.banking-codes-section {
    padding: 90px 0;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    position: relative;
    overflow: hidden;
}
.banking-codes-section .section-title { color: #ffffff; }
.banking-codes-section .section-subtitle { color: rgba(255,255,255,0.7); }

.banking-codes-wrapper {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.banking-codes-selector-panel {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 36px 28px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
}

.bcs-icon-wrap {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: #fff;
    box-shadow: 0 8px 24px rgba(102,126,234,0.4);
}

.banking-codes-selector-panel h3 { font-size: 20px; font-weight: 700; margin: 0; }
.banking-codes-selector-panel p { font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.65; margin: 0; }

.bcs-select-group { width: 100%; }
.bcs-select-group label { display: block; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8); margin-bottom: 8px; }
.bcs-select-group label i { margin-right: 6px; color: #a78bfa; }

.bcs-select {
    width: 100%;
    padding: 12px 36px 12px 14px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}
.bcs-select:focus { outline: none; border-color: #a78bfa; }
.bcs-select option { background: #302b63; color: #fff; }

.btn-generate {
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white; border: none; border-radius: 10px;
    font-size: 14px; font-weight: 700; cursor: pointer;
    transition: all 0.25s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-generate:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(102,126,234,0.5); }

.banking-codes-result-panel {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 36px 32px;
    color: #ffffff;
    position: relative;
    min-height: 300px;
}

.bcr-loading {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: rgba(255,255,255,0.6); gap: 12px;
    border-radius: 20px; background: rgba(15,12,41,0.5); z-index: 5;
}

#bcr-content { transition: opacity 0.25s ease; }

.bcr-header {
    display: flex; align-items: center; gap: 18px;
    margin-bottom: 28px; padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.bcr-header > i {
    width: 54px; height: 54px; flex-shrink: 0;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
}
.bcr-header h3 { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.bcr-header span { font-size: 14px; color: rgba(255,255,255,0.65); }

.bcr-codes-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 20px; margin-bottom: 24px;
}

.bcr-code-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px; padding: 20px 22px;
    transition: border-color 0.2s;
}
.bcr-code-card:hover { border-color: rgba(167,139,250,0.4); }
.bcr-iban-card { background: rgba(102,126,234,0.1); border-color: rgba(102,126,234,0.25); }

.bcr-code-label {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: rgba(255,255,255,0.55);
    margin-bottom: 10px; display: flex; align-items: center; gap: 7px;
}
.bcr-code-label i { color: #a78bfa; }

.bcr-code-value { display: flex; align-items: center; gap: 10px; }

.code-mono {
    font-family: 'Courier New', Courier, monospace;
    font-size: 17px; font-weight: 700; color: #ffffff;
    letter-spacing: 1.5px; word-break: break-all; flex: 1;
}

.bcr-code-card small { display: block; margin-top: 8px; font-size: 11px; color: rgba(255,255,255,0.45); }

.copy-code-btn {
    flex-shrink: 0; width: 34px; height: 34px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px; color: rgba(255,255,255,0.7);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 13px; transition: all 0.2s;
}
.copy-code-btn:hover { background: rgba(167,139,250,0.25); color: #fff; border-color: #a78bfa; }

.bcr-note {
    background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25);
    border-radius: 10px; padding: 14px 16px;
    font-size: 13px; color: rgba(255,255,255,0.75);
    display: flex; align-items: flex-start; gap: 10px; line-height: 1.5;
}
.bcr-note i { color: #34d399; font-size: 15px; flex-shrink: 0; margin-top: 1px; }

.bcr-toast {
    position: absolute; bottom: 20px; right: 20px;
    background: #10b981; color: #fff;
    padding: 10px 18px; border-radius: 10px;
    font-size: 13px; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
    box-shadow: 0 6px 20px rgba(16,185,129,0.4);
    z-index: 10; animation: toastPop 0.25s ease;
}
@keyframes toastPop {
    from { transform: translateY(10px); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}

@media (max-width: 1024px) { .banking-codes-wrapper { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .bcr-codes-grid { grid-template-columns: 1fr; }
    .banking-codes-result-panel { padding: 24px 18px; }
    .banking-codes-selector-panel { padding: 26px 18px; }
    .code-mono { font-size: 14px; }
}

/* === ENHANCED SLIDER === */
.hero-slider { background: linear-gradient(135deg, #1e1b4b 0%, #312e81 40%, #4c1d95 100%); }
.slider-btn { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(6px); }
.slider-btn:hover { background: rgba(255,255,255,0.28); transform: translateY(-50%) scale(1.08); }
/* Dark overlay for inline background-image slides (fallback slider) */
.slide-bg-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(90deg, rgba(8,10,30,0.72) 0%, rgba(8,10,30,0.45) 60%, rgba(8,10,30,0.18) 100%);
}
.slide.slide-photo .slide-content { z-index: 2; position: relative; }

/* === ENHANCED SERVICES === */
.service-card { border: 1px solid #e5e7eb; overflow: hidden; }
.service-card:hover .service-icon { transform: scale(1.1) rotate(-4deg); }
.service-icon { transition: transform 0.3s ease; }

/* === ENHANCED ABOUT IMAGE === */
.about-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px; padding: 48px 24px; font-size: 0;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 24px; min-height: 380px; position: relative; overflow: hidden;
    opacity: 1;
    color: #ffffff;
}
.about-image-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 280px; }
.about-img-stat {
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 14px; padding: 18px 14px; text-align: center; color: #ffffff;
}
.about-img-stat strong { display: block; font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.about-img-stat span { font-size: 12px; opacity: 0.8; }

/* === STATS === */
.stat-item { border: 1px solid #e5e7eb; transition: box-shadow 0.3s, transform 0.3s; }
.stat-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(91,33,243,0.12); }

/* === CONTACT === */
.contact-section { background: #f8fafc; }
.contact-item {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
    padding: 18px 20px; align-items: center; transition: box-shadow 0.25s, transform 0.25s;
}
.contact-item:hover { box-shadow: 0 6px 20px rgba(91,33,243,0.1); transform: translateX(4px); }
.contact-item i {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0; margin-top: 0;
}
.contact-form {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 20px;
    padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* === FOOTER === */
.footer { background: linear-gradient(135deg, #0f0c29 0%, #302b63 100%); }

/* === TYPOGRAPHY === */
.section-title { font-weight: 800; letter-spacing: -0.5px; }
.section-title::after {
    content: ''; display: block; width: 56px; height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px; margin: 12px auto 0;
}
.about-content .section-title::after { margin-left: 0; }
html { scroll-behavior: smooth; }

/* ===== LOAN REQUEST MODAL (redesigned) ===== */
.modal-loan-content {
    max-width: 680px;
    padding: 0;
    overflow: hidden;
}
.loan-modal-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 26px 28px 22px;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f3460 100%);
}
.loan-modal-header-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
    color: #fff;
}
.loan-modal-header h2 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}
.loan-modal-subtitle {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.72);
}
.loan-modal-close {
    margin-left: auto;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: background 0.2s;
}
.loan-modal-close:hover { background: rgba(255,255,255,0.26); }

.loan-sim-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 14px 28px;
    background: #f0f7ff;
    border-bottom: 1px solid #dbeafe;
}
.loan-sim-summary-item { display: flex; flex-direction: column; gap: 2px; }
.loan-sim-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #64748b;
}
.loan-sim-summary-item strong { font-size: 14px; font-weight: 700; color: #1e3a5f; }

.loan-request-form { padding: 0; }
.loan-form-section { padding: 18px 28px 0; }
.loan-form-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #3b82f6;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.loan-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.loan-field { display: flex; flex-direction: column; gap: 4px; }
.loan-field--full { grid-column: 1 / -1; }
.loan-field label { font-size: 12px; font-weight: 600; color: #475569; }
.loan-required { color: #ef4444; }
.loan-field-wrap { position: relative; }
.loan-field-wrap > i {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
}
.loan-field-wrap input,
.loan-field-wrap select {
    width: 100%;
    padding: 10px 12px 10px 34px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin: 0;
    box-sizing: border-box;
}
.loan-field-wrap input:focus,
.loan-field-wrap select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.loan-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #0f172a;
    resize: vertical;
    min-height: 76px;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin: 0;
    box-sizing: border-box;
}
.loan-field textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.12);
}
.loan-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 28px 24px;
    margin-top: 18px;
    border-top: 1px solid #f1f5f9;
}
.loan-btn-cancel {
    padding: 10px 20px;
    background: none;
    border: 1.5px solid #e2e8f0;
    color: #64748b;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}
.loan-btn-cancel:hover { border-color: #94a3b8; color: #334155; }
.loan-btn-submit {
    padding: 10px 22px;
    background: linear-gradient(135deg, #1e3a5f 0%, #3b82f6 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}
.loan-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(59,130,246,0.4);
}
@media (max-width: 600px) {
    .modal-loan-content { border-radius: 16px; }
    .loan-modal-header { padding: 20px 18px 16px; gap: 12px; }
    .loan-sim-summary { grid-template-columns: 1fr 1fr; padding: 12px 18px; }
    .loan-form-section { padding: 14px 18px 0; }
    .loan-form-grid { grid-template-columns: 1fr; }
    .loan-modal-footer { padding: 14px 18px 20px; flex-direction: column; }
    .loan-btn-cancel, .loan-btn-submit { width: 100%; justify-content: center; }
}
