/* ============================================
   BGFIBank - Ouverture de compte
   Styles CSS v2.0
   ============================================ */

/* Variables */
:root {
    --bgfi-blue: #003666;
    --bgfi-blue-dark: #002244;
    --bgfi-olive: #a8b088;
    --bgfi-olive-light: #c2c9ab;
    --bgfi-cyan: #0d91d0;
}

/* Base */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: linear-gradient(160deg, var(--bgfi-blue-dark) 0%, var(--bgfi-blue) 100%);
    min-height: 100vh;
    color: #fff;
    position: relative;
    overflow-x: hidden;
}

/* ============================================
   Header / Navbar
   ============================================ */
.navbar {
    background: transparent !important;
    padding: 1.5rem 0;
}

.logo-wrapper {
    background: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 2px solid var(--bgfi-olive);
    transition: all 0.3s ease;
}

.logo-wrapper:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--bgfi-olive-light);
}

.logo-wrapper img {
    height: 55px;
    width: auto;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    padding: 2rem 0 3rem;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.text-olive {
    color: var(--bgfi-olive-light);
}

.hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.75rem;
    }
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* ============================================
   Trust Badges
   ============================================ */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    opacity: 0.7;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.trust-badge i {
    color: var(--bgfi-olive);
}

/* ============================================
   Account Cards
   ============================================ */
.account-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.4s ease,
                box-shadow 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.account-card:hover {
    transform: translateY(-8px);
    border-color: var(--bgfi-olive);
    box-shadow: 0px 5px 3px 0px rgb(174, 182, 145), 0 0 30px rgba(168, 176, 136, 0.15);
}

.account-card.selected {
    border: 2px solid var(--bgfi-olive);
    box-shadow: 0 0 0 4px rgba(168, 176, 136, 0.2), 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bgfi-blue-dark);
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-img-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
    pointer-events: none;
}

.selection-check {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: var(--bgfi-olive);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
    z-index: 2;
}

.account-card.selected .selection-check {
    opacity: 1;
    transform: scale(1);
}

.selection-check i {
    color: var(--bgfi-blue);
    font-size: 14px;
}

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--bgfi-olive), var(--bgfi-olive-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon i {
    color: var(--bgfi-blue);
    font-size: 1.1rem;
}

.card-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}

.card-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.card-link {
    color: var(--bgfi-olive);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: var(--bgfi-olive-light);
    gap: 10px;
}

/* ============================================
   Carousel
   ============================================ */
.cards-carousel-container {
    position: relative;
    overflow: hidden;
}

.cards-carousel-wrapper {
    overflow: hidden;
    padding: 10px 0;
}

.cards-carousel {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cards-carousel .card-item {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .cards-carousel .card-item {
        flex: 0 0 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
}

@media (min-width: 992px) {
    .cards-carousel .card-item {
        flex: 0 0 calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
    }
}

/* Carousel Controls */
.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    background: var(--bgfi-olive);
    border: none;
    border-radius: 50%;
    color: var(--bgfi-blue);
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-nav-btn:hover {
    background: var(--bgfi-olive-light);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.carousel-nav-btn.prev {
    left: -10px;
}

.carousel-nav-btn.next {
    right: -10px;
}

.carousel-nav-btn.hidden {
    display: none;
}

/* Carousel Indicators */
.carousel-indicators-custom {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
}

.carousel-indicators-custom.hidden {
    display: none;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicator.active {
    background: var(--bgfi-olive);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: rgba(168, 176, 136, 0.7);
}

/* ============================================
   Actions Bar (CTA)
   ============================================ */
.actions-bar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    margin-top: 2.5rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 400px;
}

@media (min-width: 576px) {
    .cta-buttons {
        flex-direction: row;
        max-width: none;
        width: auto;
    }
}

.btn-primary-bgfi {
    background: linear-gradient(135deg, var(--bgfi-olive), var(--bgfi-olive-light));
    border: none;
    color: var(--bgfi-blue);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(168, 176, 136, 0.3);
}

.btn-primary-bgfi:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(168, 176, 136, 0.4);
    color: var(--bgfi-blue);
}

.btn-outline-bgfi {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-outline-bgfi:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   Cookie Consent
   ============================================ */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 360px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    overflow: hidden;
    animation: slideInLeft 0.4s ease-out;
}

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

.cookie-header {
    background: var(--bgfi-blue);
    color: #fff;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cookie-header h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-header .btn-minimize {
    background: transparent;
    border: none;
    color: #fff;
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

.cookie-header .btn-minimize:hover {
    opacity: 1;
}

.cookie-body {
    padding: 1.25rem;
}

.cookie-body p {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eee;
}

.cookie-option:last-child {
    border-bottom: none;
}

.cookie-option-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #333;
}

.cookie-option-label i {
    color: var(--bgfi-olive);
    font-size: 1rem;
}

.form-check-input:checked {
    background-color: var(--bgfi-olive);
    border-color: var(--bgfi-olive);
}

.cookie-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.cookie-actions .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.btn-accept-all {
    background: var(--bgfi-olive);
    border: none;
    color: var(--bgfi-blue);
    font-weight: 600;
}

.btn-accept-all:hover {
    background: var(--bgfi-olive-light);
    color: var(--bgfi-blue);
}

.btn-save-preferences {
    background: transparent;
    border: 1px solid #ddd;
    color: #555;
}

.btn-save-preferences:hover {
    background: #f5f5f5;
    color: #333;
}

/* Minimized Cookie Button */
.cookie-minimized-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    background: var(--bgfi-olive);
    border: none;
    border-radius: 50%;
    color: var(--bgfi-blue);
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cookie-minimized-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    background: var(--bgfi-olive-light);
}

.cookie-minimized-btn.visible {
    display: flex;
}

@media (max-width: 767.98px) {
    .cookie-consent {
        bottom: 15px;
        left: 15px;
        right: 15px;
        width: auto;
        max-width: none;
    }

    .cookie-minimized-btn {
        bottom: 15px;
        left: 15px;
        width: 44px;
        height: 44px;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 1.25rem 0;
    padding-bottom: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
}

@media (max-width: 767.98px) {
    .footer {
        padding-bottom: 5rem;
    }
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.7rem;
}

.footer a:hover {
    color: var(--bgfi-olive);
}

.footer-separator {
    color: rgba(255, 255, 255, 0.3);
}

.footer-dev a {
    color: var(--bgfi-olive);
    font-weight: 600;
}

.footer-recaptcha {
    width: 100%;
    text-align: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-recaptcha a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: underline;
}

.footer-recaptcha a:hover {
    color: var(--bgfi-olive-light);
}

/* ============================================
   Back Button
   ============================================ */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--bgfi-olive-light);
    border-color: rgba(168, 176, 136, 0.3);
}

.back-button i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.back-button:hover i {
    transform: translateX(-3px);
}

/* ============================================
   Animations
   ============================================ */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.fade-in-up:nth-child(1) { animation-delay: 0.1s; }
.fade-in-up:nth-child(2) { animation-delay: 0.2s; }
.fade-in-up:nth-child(3) { animation-delay: 0.3s; }
.fade-in-up:nth-child(4) { animation-delay: 0.4s; }
.fade-in-up:nth-child(5) { animation-delay: 0.5s; }
.fade-in-up:nth-child(6) { animation-delay: 0.6s; }

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

/* ============================================
   Mobile Adjustments
   ============================================ */
@media (max-width: 767.98px) {
    .navbar {
        padding: 1rem 0;
    }
    
    .logo-wrapper {
        padding: 0.6rem 1.25rem;
    }
    
    .logo-wrapper img {
        height: 45px;
    }

    .hero-section {
        padding: 1.5rem 0 2rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .card-img-wrapper {
        height: 160px;
    }

    .btn-primary-bgfi,
    .btn-outline-bgfi {
        width: 100%;
        padding: 0.7rem 1.5rem;
    }

    .carousel-nav-btn {
        display: none;
    }

    .trust-badges {
        gap: 1rem;
    }

    .trust-badge {
        font-size: 0.75rem;
    }
}

/* ============================================
   Breadcrumb
   ============================================ */
.breadcrumb-custom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
}

.breadcrumb-custom li {
    display: flex;
    align-items: center;
}

.breadcrumb-custom li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
}

.breadcrumb-custom li a:hover {
    color: var(--bgfi-olive);
}

.breadcrumb-custom li a i {
    font-size: 1rem;
}

.breadcrumb-custom li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-custom li.active {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   Go to Top Button
   ============================================ */
.go-to-top {
    position: fixed;
    bottom: 100px; /* Raised to avoid reCAPTCHA badge */
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--bgfi-olive), var(--bgfi-olive-light));
    border: none;
    border-radius: 50%;
    color: var(--bgfi-blue-dark);
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.go-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.go-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

@media (max-width: 767.98px) {
    .go-to-top {
        bottom: 90px; /* Raised for mobile reCAPTCHA */
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===== Download PDF Button ===== */
.download-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--bgfi-olive), var(--bgfi-olive-light));
    color: var(--bgfi-blue-dark);
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.download-pdf-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168, 176, 136, 0.4);
    color: var(--bgfi-blue-dark);
}

.download-pdf-btn i {
    font-size: 1.1rem;
}

/* ===== Privacy Settings Button ===== */
.privacy-settings-btn {
    position: fixed;
    bottom: 100px; /* Aligned with go-to-top */
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--bgfi-blue-dark);
    border: 2px solid var(--bgfi-olive);
    border-radius: 50%;
    color: var(--bgfi-olive);
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.privacy-settings-btn:hover {
    background: var(--bgfi-olive);
    color: var(--bgfi-blue-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(168, 176, 136, 0.4);
}

@media (max-width: 767.98px) {
    .privacy-settings-btn {
        bottom: 90px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
}
