/* =============================================================
   Bank App Pages — CSS global
   Extrait de : page1 (SG SMC) + styles communs
   ============================================================= */

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.bank-app-wrapper {
    font-family: 'DM Sans', sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ---------- Phone shell ---------- */
.phone {
    width: 375px;
    min-height: 700px;
    background: #fff;
    border-radius: 44px;
    box-shadow:
        0 0 0 10px #1a1a1a,
        0 30px 80px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(255,255,255,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* ---------- Header ---------- */
.header {
    
    padding: 52px 24px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text-sg {
    font-size: 22px;
    font-weight: 700;
    
    letter-spacing: 0.5px;
}

.logo-text-smc {
    font-size: 12px;
    font-weight: 700;
   
    letter-spacing: 0.5px;
}

.logo-sq {
    display: flex;
	flex-direction: column;
    gap: 3px;
    align-items: center;
}

.sq-red,
.sq-black {
    width: 27px;
    height: 12px;
    border-radius: 2px;
}

.sq-red   { background: #ff4d4d; }
.sq-black { background: #1a1a1a; }

/* ---------- Gauge section ---------- */
.gauge-section {
   
    padding: 0 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gauge-wrapper {
    position: relative;
    width: 280px;
    height: 160px;
}

.gauge-svg {
    width: 100%;
    height: 100%;
}

.gauge-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 14;
    stroke-linecap: round;
}

.gauge-fill {
    fill: none;
    stroke: #59b630;
    stroke-width: 14;
    stroke-linecap: round;
    stroke-dasharray: 345;
    stroke-dashoffset: 345;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.balance-display {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.balance-eye {
    display: flex;
    align-items: center;
    gap: 6px;
    
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.eye-icon {
    width: 18px;
    height: 18px;
  
}

.dots {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: grey;
}

.dot.active {
    background: red;
    width: 6px;
    border-radius: 3px;
}

.circle-dot {padding: 2px;
    border-radius: 10px;
    border: solid 1px red;}
.circle-dot-n {padding: 3px;
    }

/* ---------- Cards section ---------- */
.cards-section {
    padding: 20px 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
}

.card:hover {
    box-shadow: 0 6px 20px rgba(226, 0, 26, 0.12);
    transform: translateY(-1px);
}

.card-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #E2001A;
}

.notif-icon {
    color: #E2001A;
}

.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #E2001A;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.notif-badge:empty {
    display: none;
}

.chat-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.card-subtitle {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
    font-style: italic;
}

.card-arrow {
    font-size: 22px;
    color: #ccc;
    font-weight: 300;
    line-height: 1;
}

/* ---------- CTA ---------- */
.cta-section {
    padding: 10px 16px 16px;
}

.cta-btn,
.cta-btn:link,
.cta-btn:visited,
.cta-btn:hover,
.cta-btn:active,
.cta-btn:focus {
    width: 100%;
    background: #E2001A;
    color: #fff !important;
    border: none;
    border-radius: 50px;
    padding: 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.2px;
    box-shadow: 0 4px 16px rgba(226, 0, 26, 0.3);
    outline: none;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transform: none;
    transition: none;
}

/* ---------- Footer ---------- */
.footer {
    padding: 12px 24px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    border-top: 1px solid #f0f0f0;
}

.footer-link {
    font-size: 13px;
    color: #E2001A;
    font-weight: 500;
    cursor: pointer;
}

.footer-chevron {
    font-size: 10px;
    color: #ccc;
    transform: rotate(180deg);
    display: inline-block;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
    .bank-app-wrapper {
        padding: 0;
        background: #fff;
        align-items: flex-start;
    }

    .phone {
        width: 100%;
        min-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
}

/* =============================================================
   Styles communs aux autres pages (page2 … page20)
   À compléter au fur et à mesure
   ============================================================= */

.bank-page-wrapper {
    font-family: 'DM Sans', sans-serif;
    max-width: 375px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

.bank-page-header {
    background: #E2001A;
    color: #fff;
    padding: 20px 16px 16px;
    font-size: 18px;
    font-weight: 700;
}

.bank-page-content {
    padding: 16px;
}

/* ---------- Transaction list (shared) ---------- */
.transaction-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.transaction-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #f5f5f5;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.transaction-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.transaction-date {
    font-size: 12px;
    color: #aaa;
}

.transaction-cat {
    display: inline-block;
    font-size: 10px;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 2px 7px;
    color: #666;
    margin-top: 2px;
}

.transaction-amount {
    font-size: 15px;
    font-weight: 700;
}

.transaction-amount.depense { color: #E2001A; }
.transaction-amount.recette { color: #2e7d32; }

/* ---- Page 1 : solde toggle ---- */
.p1-solde-value {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    letter-spacing: -0.3px;
}
