/* ================================================================
   avantages.css — Section Avantages Bento Grid v2
   Page d'accueil isbaQ
   Scope : .isbaq-avantages__* .isbaq-bento* — zéro conflit
================================================================ */

/* ── En-tête ────────────────────────────────────────────────── */

.isbaq-avantages__header {
    text-align: center;
    margin-bottom: 52px;
}

.isbaq-avantages__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(107, 78, 255, 0.08);
    color: #6B4EFF;
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.isbaq-avantages__badge::before {
    content: '✦';
    font-size: 0.65rem;
    color: #6B4EFF;
}

.isbaq-avantages__title {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    color: #141F39;
    line-height: 1.3;
    margin: 0;
}

.isbaq-avantages__title span { color: #FF6B00; }

/* ── Bento Grid — colonnes disproportionnées ─────────────────── */

.isbaq-avantages__grid {
    display: grid;
    /*
        Col 1 & 2 : petites (fixes ~160px)
        Col 3 : grande flexible
        Col 4 : grande flexible
    */
    grid-template-columns: 160px 160px 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 14px;
    align-items: stretch;
}

/* Positionnement de chaque card */
.isbaq-bento--col1        { grid-column: 1;   grid-row: 1; }
.isbaq-bento--col2        { grid-column: 2;   grid-row: 1; }
.isbaq-bento--col3-tall   { grid-column: 3;   grid-row: 1 / 3; } /* span 2 rows */
.isbaq-bento--col4-top    { grid-column: 4;   grid-row: 1; }
.isbaq-bento--col12-bottom{ grid-column: 1/3; grid-row: 2; }     /* col 1+2 row 2 */
.isbaq-bento--col4-bottom { grid-column: 4;   grid-row: 2; }

/* ── Card base ──────────────────────────────────────────────── */

.isbaq-bento {
    border-radius: 22px;
    overflow: hidden;
    position: relative;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.isbaq-bento:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 48px rgba(20, 31, 57, 0.15);
}

/* Variantes sobres */
.isbaq-bento--purple { background: #6B4EFF; }
.isbaq-bento--orange { background: #FF6B00; }
.isbaq-bento--black  { background: #0D0D0D; }
.isbaq-bento--navy   { background: #1A2540; }

.isbaq-bento--light {
    background: #F8F9FC;
    border: 1px solid #E5E7EB;
}

/* ── Image ──────────────────────────────────────────────────── */

.isbaq-bento__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.isbaq-bento:hover .isbaq-bento__img {
    transform: scale(1.04);
}

/* ── Placeholder si image absente ───────────────────────────── */

.isbaq-bento__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.25);
    position: absolute;
    inset: 0;
}

.isbaq-bento__placeholder i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.4);
}

.isbaq-bento__placeholder span {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    line-height: 1.5;
}

.isbaq-bento__placeholder--light {
    background: rgba(248, 249, 252, 0.6);
}

.isbaq-bento__placeholder--light i {
    color: rgba(107, 78, 255, 0.35);
}

.isbaq-bento__placeholder--light span {
    color: #9CA3AF;
}

/* ── Overlays texte sur fond sombre ─────────────────────────── */

.isbaq-bento__overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 18px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 100%);
    z-index: 2;
}

.isbaq-bento__overlay--tall {
    padding: 22px 24px;
}

.isbaq-bento__text {
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.4;
    margin: 0;
}

.isbaq-bento__text--lg {
    font-size: 1rem;
}

.isbaq-bento__sub {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 5px;
    line-height: 1.5;
}

/* ── Overlay texte sur fond clair ───────────────────────────── */

.isbaq-bento__overlay-light {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 16px 20px;
    background: linear-gradient(to top, rgba(248,249,252,0.4) 40%, transparent 100%);
    z-index: 2;
}

.isbaq-bento__text-dark {
    font-size: 0.88rem;
    font-weight: 700;
    color: #141F39;
    line-height: 1.4;
    margin: 0;
}

.isbaq-bento__sub-dark {
    font-size: 0.75rem;
    color: #6B7280;
    margin-top: 4px;
    line-height: 1.4;
}

/* ── Chip statut ────────────────────────────────────────────── */

.isbaq-bento__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 7px;
    padding: 5px 10px;
    margin-top: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #FFFFFF;
}

.isbaq-bento__chip-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10B981;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
    animation: bento-pulse 2s ease-in-out infinite;
}

@keyframes bento-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3); }
    50%       { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.08); }
}

/* ── "0%" gros ───────────────────────────────────────────────── */

.isbaq-bento__zero {
    font-size: 2.8rem;
    font-weight: 900;
    color: #6B4EFF;
    line-height: 1;
    margin-bottom: 4px;
}

.isbaq-bento__zero span {
    font-size: 1.6rem;
    color: #FF6B00;
}

/* ── Store buttons ───────────────────────────────────────────── */

.isbaq-bento__store-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 9px 12px;
    text-decoration: none;
    transition: all 0.22s ease;
    margin-top: 8px;
}

.isbaq-bento__store-btn:first-of-type { margin-top: 0; }

.isbaq-bento__store-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.22);
    text-decoration: none;
}

.isbaq-bento__store-btn i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
}

.isbaq-bento__store-btn span {
    display: flex;
    flex-direction: column;
}

.isbaq-bento__store-btn small {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1;
}

.isbaq-bento__store-btn strong,
.isbaq-bento__store-btn span > *:not(small) {
    font-size: 0.82rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.3;
}

/* ── CTA bas ─────────────────────────────────────────────────── */

.isbaq-avantages__footer {
    text-align: center;
    margin-top: 48px;
}

.isbaq-avantages__cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #141F39;
    color: #FFFFFF;
    padding: 14px 30px;
    border-radius: 100px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 20px rgba(20, 31, 57, 0.2);
}

.isbaq-avantages__cta:hover {
    background: #6B4EFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(107, 78, 255, 0.3);
    color: #FFFFFF;
    text-decoration: none;
}

.isbaq-avantages__cta i { transition: transform 0.25s ease; }
.isbaq-avantages__cta:hover i { transform: translateX(4px); }

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1199px) {
    .isbaq-avantages__grid {
        grid-template-columns: 140px 140px 1fr 1fr;
        gap: 12px;
    }
}

@media (max-width: 991px) {
    /* Sur tablette : 2 colonnes égales */
    .isbaq-avantages__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 300px 220px;
        gap: 12px;
    }
    .isbaq-bento--col1        { grid-column: 1; grid-row: 1; }
    .isbaq-bento--col2        { grid-column: 2; grid-row: 1; }
    .isbaq-bento--col3-tall   { grid-column: 1/3; grid-row: 2; }
    .isbaq-bento--col4-top    { grid-column: 1; grid-row: 3; }
    .isbaq-bento--col12-bottom{ grid-column: 2; grid-row: 3; }
    .isbaq-bento--col4-bottom { grid-column: 1/3; grid-row: 4; }
}

@media (max-width: 575px) {
    .isbaq-avantages__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 180px 260px 180px 180px;
        gap: 10px;
    }
    .isbaq-bento--col3-tall {
        grid-column: 1/3;
        grid-row: 2;
    }
    .isbaq-bento--col4-top    { grid-column: 1; grid-row: 3; }
    .isbaq-bento--col12-bottom{ grid-column: 2; grid-row: 3; }
    .isbaq-bento--col4-bottom { grid-column: 1/3; grid-row: 4; }

    .isbaq-bento { border-radius: 16px; }
    .isbaq-bento__text--lg { font-size: 0.9rem; }
    .isbaq-bento__zero { font-size: 2.2rem; }
    .isbaq-avantages__title { font-size: 1.4rem; }
}


/* ================================
   ISBAQ MOBILE NAV PREMIUM UI
   Inspired from Bento design system
================================== */

.responsive-navbar {
    background: #ffffff;
}

/* Logo header spacing */
.offcanvas-header {
    border-bottom: 1px solid #EEF0F4;
    padding: 18px 18px;
}

/* ================================
   MENU LIST
================================== */

.mobile-menu {
    list-style: none;
    padding: 18px 14px;
    margin: 0;
}

.mobile-menu li {
    margin-bottom: 10px;
}

/* LINK STYLE (bento inspired) */
.mobile-menu li a {
    display: flex;
    align-items: center;

    padding: 13px 14px;
    border-radius: 14px;

    font-size: 15px;
    font-weight: 600;
    color: #141F39;

    background: #F8F9FC;
    border: 1px solid #E5E7EB;

    text-decoration: none;

    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

/* LEFT ACCENT BAR (fintech premium touch) */
.mobile-menu li a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: all 0.25s ease;
}

/* HOVER / ACTIVE STATE */
.mobile-menu li a:hover,
.mobile-menu li a:active,
.mobile-menu li a.active {
    background: #6B4EFF;
    color: #ffffff;
    border-color: transparent;
    transform: translateX(3px);
    box-shadow: 0 10px 25px rgba(107, 78, 255, 0.18);
}

.mobile-menu li a:hover::before,
.mobile-menu li a.active::before {
    background: #FF6B00;
}

/* ================================
   CTA BUTTON
================================== */

.mobile-cta {
    padding: 16px;
    border-top: 1px solid #EEF0F4;
    background: #ffffff;
}

.mobile-cta .default-btn {
    background: #141F39;
    border-radius: 14px;
    padding: 14px;
    font-weight: 700;
    font-size: 14px;

    box-shadow: 0 10px 22px rgba(20, 31, 57, 0.18);
    transition: all 0.25s ease;
}

.mobile-cta .default-btn:hover {
    background: #6B4EFF;
    transform: translateY(-2px);
}

/* ================================
   OPTIONAL: CLOSE ICON STYLE
================================== */

.close-btn i {
    font-size: 20px;
    color: #141F39;
}

@media (max-width: 575px) {
    .isbaq-review {
        margin-bottom: 2em;
    }
}

.isbaq-inner-digital-warp {
    margin-bottom: 5em;
    margin-top: 5em;
}

.isbaq-about-image-warp {
    margin-top: 5em;
}

.digital-warp::before, .about-image-warp::before, .fun-fact-warp::before,
.stand-style2-warp::before {
    display: none;
}

.isbaq-inner-download {
    margin-top: 6em;
}

.isbaq-inner-fun-fact {
    margin-bottom: 6em;
}

.isbaq-inner-stand2-warp {
    margin-bottom: 5em;
}

@media (max-width: 575px) {
    .isbaq-inner-download {
        margin-top: 4em;
    }

    .isbaq-inner-fun-fact {
        margin-bottom: 4em;
    }

    .isbaq-b-margin {
        margin-bottom: 1em;
    }
}

.default-btn.white-color {
    background: #FFFFFF;
    color: #141F39;
    border: 2px solid transparent;

    padding: 12px 26px;
    border-radius: 999px;

    font-weight: 700;
    font-size: 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 8px 20px rgba(20, 31, 57, 0.10);

    transition: all 0.28s ease;
    position: relative;
    overflow: hidden;
}

.default-btn.white-color:hover {
    background: transparent;
    color: #141F39;

    border: 2px solid rgba(20, 31, 57, 0.35);

    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(20, 31, 57, 0.18);
}

.default-btn.white-color::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(107, 78, 255, 0.08);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.default-btn.white-color:hover::after {
    opacity: 1;
}

/* ── Nav — Bouton Obtenir ma Carte ──────────────────────── */

.isbaq-nav__btn-carte {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid #6B4EFF;
    color: #6B4EFF;
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.isbaq-nav__btn-carte:hover,
.isbaq-nav__btn-carte.active {
    background: #6B4EFF;
    color: #FFFFFF;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(107, 78, 255, 0.3);
}

.isbaq-nav__btn-carte i {
    font-size: 0.9rem;
}

/* Quand navbar est sur la page index (fond sombre) */
.top-navbar.style6 .isbaq-nav__btn-carte {
    border-color: rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.85);
}

.top-navbar.style6 .isbaq-nav__btn-carte:hover,
.top-navbar.style6 .isbaq-nav__btn-carte.active {
    background: #6B4EFF;
    border-color: #6B4EFF;
    color: #FFFFFF;
}

/* Quand navbar devient sticky (scrollé) */
.top-navbar.sticky .isbaq-nav__btn-carte {
    border-color: #6B4EFF;
    color: #6B4EFF;
}

.top-navbar.sticky .isbaq-nav__btn-carte:hover {
    background: #6B4EFF;
    color: #FFFFFF;
}

/* ── Nav — Harmonisation boutons droite ────────────────── */

.isbaq-nav__btn-carte {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid #6B4EFF;
    color: #6B4EFF;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

/* Aligner le bouton "Télécharger l'App" sur la même taille */
.others-option .default-btn.white-color {
    padding: 10px 20px !important;
    font-size: 0.85rem !important;
    border-radius: 100px !important;
}

.isbaq-footer__dev {
    margin-left: 8px;
    font-size: 12px;
    opacity: 0.7;
}

.isbaq-footer__credits {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 4px;
}
