/* Base */
:root {
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #e5e7eb;
  --primary: #0b6b3a; /* vert foncé */
  --primary-strong: #064e2a;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fafc, #eef2f7);
  font-size: 14px;
}

.page {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card__title {
  margin: 0 0 20px 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}

.form {
  display: grid;
  gap: 18px;
}

.label {
  display: block;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
}

.input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 14px;
  font-size: 16px;
  background-color: #f8fafc;
}

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.input--password {
  letter-spacing: 0.12em;
}

/* Keypad */
.keypad {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  background: #f3f4f6;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.key {
  height: 56px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.key:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.key:active {
  transform: translateY(1px);
}

.key--wide {
  grid-column: span 5;
}

.actions {
  margin-top: 4px;
}

.logo {
  display: block;
  margin: 0 auto;
  width: 50%;
  height: 50%;
  object-fit: contain;
}
.btn {
  appearance: none;
  border: none;
  height: 44px;
  padding: 0 18px;
  /* border-radius: 10px; */
  background: var(--primary);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

.btn:hover { background: var(--primary-strong); }

/* Responsive */
@media (max-width: 420px) {
  .card { padding: 22px; }
  .card__title { font-size: 18px; }
  .key { height: 52px; }
}

/* ============ HOME ============ */
.home {
  padding: 18px 16px 90px 16px; /* espace bas pour la tabbar */
  max-width: 560px;
  margin: 0 auto;
}
.home--compact { padding-top: 12px; }

/* Hamburger */
.hamburger {
  position: static;
  width: 40px; height: 40px;
  border: none; border-radius: 10px;
  background: #007BFF; /* bleu */
  color: #fff; font-size: 20px; font-weight: 700;
  display: grid; place-items: center;
  cursor: pointer;
}

/* Optionnel : hover */
.hamburger:hover {
  background: #0056b3; /* bleu foncé */
}


.home__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.hello__label { margin: 0; color: var(--muted); font-weight: 600; }
.hello__name { margin: 2px 0 0; font-weight: 700; letter-spacing: 0.3px; }

.last-login__label { margin: 0; color: var(--text); font-weight: 700; text-align: right; }
.last-login__value { margin: 4px 0 0; color: var(--muted); text-align: right; }

/* Chips onglets */
.chips { 
  display: flex; 
  gap: 10px; 
  margin: 8px 0 8px; 
  margin-top: 10%; 
}

.chip { 
  height: 36px; 
  padding: 10px 14px; 
  border-radius: 18px; 
  border: none; 
  background: #e6f0ff; /* bleu clair de fond */
  color: #007BFF;       /* texte bleu */
  font-weight: 700; 
  cursor: pointer; 
  text-decoration: none; 
  text-align: center; 
}

.chip:hover {
  background: #cce0ff; /* bleu un peu plus foncé au hover */
}

.chip--active { 
  background: #007BFF; /* bleu vif pour actif */
  color: #fff;          /* texte blanc */
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.15); 
}

.owner { font-size: 16px; margin: 10px 2px; font-weight: 700; margin-top: 10%;  }

.acct-row { display: grid; grid-template-columns: 1fr auto; align-items: center; background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 6px 18px rgba(0,0,0,.05); }
.acct-row__title { font-weight: 700; }
.acct-row__sub { color: #9ca3af; font-size: 12px; margin-top: 4px; }
.acct-row__amount { color: #0a7e58; font-weight: 800; }

.add-others { margin-top: 10%; }
.add-others__title { margin: 0 0 10px; font-weight: 800; letter-spacing: .2px; }
.add-bank { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; text-decoration: none; color: inherit; padding: 14px; border-radius: 14px; border: 2px dashed #0b6b3a33; background: #ffffff; box-shadow: 0 6px 18px rgba(0,0,0,.04); }
.add-bank__icon { width: 44px; height: 44px; border-radius: 10px; background: #0b6b3a; color: #fff; display: grid; place-items: center; font-size: 22px; }
.add-bank__title { font-weight: 800; }
.add-bank__sub { color: var(--muted); }

.list-head { margin-top: 16px; background: #ffffff; border-radius: 12px 12px 0 0; padding: 12px 14px; border: 1px solid var(--border);  font-weight: 700; color: #0b6b3a; }
.list-row { display: grid; grid-template-columns: 1fr auto; align-items: center; background: #fff; border: 1px solid var(--border); border-top: none; padding: 14px; border-radius: 0 0 12px 12px; }
.list-row__label { color: #6b7280; }
.list-row__value { color: #111827; font-weight: 700; }

/* Savings card */
.savings-card { margin-top: 10%; background: #fff; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.05); padding: 14px; }
.savings__row { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.savings__title { font-weight: 800; }
.savings__amount { color: #0a7e58; font-weight: 800; }
.savings__sub { color: #9ca3af; font-size: 12px; margin-top: 4px; }
.progress { height: 10px; border-radius: 999px; background: #e5e7eb; overflow: hidden; margin-top: 12px; }
.progress__bar { 
  height: 100%; 
  background: #007BFF; /* bleu vif */
}
.progress__cap { text-align: right; color: #6b7280; margin-top: 6px; }

/* Credits */
.banner {
  display: grid;
  grid-template-columns: 44px 1fr;
  margin-top: 10%;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #e8f0ff; /* texte légèrement bleuté */
  background: #007BFF; /* bleu principal */
  padding: 14px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .12);
}

.banner__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .2);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.banner__text {
  font-weight: 700;
  opacity: .95;
}

.loan-card { margin-top: 14px; background: #fff; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.05); padding: 14px; }
.loan__head { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.loan__title { font-weight: 800; }
.loan__sub { color: #9ca3af; font-size: 12px; margin-top: 2px; }
.loan__action { border: none; background: #eef2f7; color: #0b6b3a; border-radius: 10px; padding: 8px 10px; cursor: pointer; }
.loan__amount { margin-top: 12px; font-weight: 600; color: #374151; }
.progress--thin { height: 8px; margin-top: 10px; }
.loan__remain { text-align: right; color: #6b7280; margin-top: 6px; }

/* Assurances */
.ins-card { margin-top: 14px; background: #fff; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.05); padding: 14px; }
.ins-card__head { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.ins-card__title { font-weight: 800; letter-spacing: .2px; }
.ins-card__sub { color: #9ca3af; font-size: 12px; margin-top: 2px; }
.ins-card__icon { color: #0b6b3a; font-size: 18px; background: #eef2f7; border-radius: 8px; padding: 6px 8px; }
.ins-card__address { margin-top: 12px; color: #4b5563; }
.ins-card__status { margin-top: 10px; text-align: right; color: #6b7280; font-weight: 700; }

.account-card {
  border-radius: 16px;
  margin-top: 10%;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.account-card__header {
  background: #007BFF; /* bleu */
  color: #fff;
  padding: 18px 20px 12px 20px;
}

.account-card__subtitle {
  margin: 0;
  opacity: .85;
  letter-spacing: .4px;
  font-size: 14px;
}

.account-card__title {
  margin: 6px 0 0;
  font-size: 18px;
}

.account-card__balance {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px 22px;
  background: #007BFF; /* bleu */
  color: #fff;
}

.account-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.18);
  border-radius: 10px;
}

.account-card__amount {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .5px;
}

.ops { background: #fff; border: 1px solid var(--border); border-top: none; border-radius: 0 0 16px 16px; font-size: 14px; }
.ops__title { margin: 0; padding: 16px 20px; font-weight: 600; color: var(--muted); border-top: 1px solid rgba(255,255,255,.2); }
.ops__list { margin: 0; padding: 0 12px 12px; list-style: none; }
.op { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 10px; padding: 14px 8px; border-top: 1px solid var(--border); }
.op:first-child { border-top: 1px solid var(--border); }
.op__date { color: var(--muted); }
.op__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.op__amount { font-weight: 700; }
.op__amount--neg { color: #b91c1c; }
.op__amount--pos { color: #047857; }

.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 8px;
}
.tabbar__item { text-decoration: none; color: var(--muted); display: grid; justify-items: center; gap: 4px; font-size: 12px; }
.tabbar__item--active { color: var(--primary); font-weight: 700; }

/* Produits (épargne, assurances, crédits) */
.products { margin-top: 18px; display: grid; gap: 14px; }
.products__title { margin: 14px 2px 6px; font-weight: 700; }

.product-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,.05);
}

.product-card__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: #f1f5f9; }
.product-card__content { min-width: 0; }
.product-card__main { font-weight: 700; font-size: 14px; }
.product-card__sub { color: var(--muted); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card__cta {
  color: #007BFF; /* bleu */
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  font-size: 14px;
}

.product-card__cta:hover {
  text-decoration: underline;
  color: #0056b3; /* bleu foncé au hover */
}


/* Sidebar */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 78%;
  max-width: 360px;
  background: linear-gradient(180deg, #007BFF, #0056b3); /* dégradé bleu */
  color: #ffffff; /* texte blanc */
  transform: translateX(-100%);
  transition: transform .2s ease-out;
  z-index: 70;
  box-shadow: 8px 0 24px rgba(0,0,0,.25);
}

.sidebar--open { transform: translateX(0); }

.sidebar__header { 
  padding: 16px 18px; 
  font-weight: 700; 
  border-bottom: 1px solid rgba(255,255,255,.25); /* léger blanc */
  color: #ffffff;
}

.sidebar__nav { display: grid; padding: 8px 6px 20px; }

.sidebar__item { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  padding: 12px 12px; 
  color: #ffffff; /* texte blanc */
  text-decoration: none; 
  border-radius: 10px; 
}

.sidebar__item:hover { 
  background: rgba(255,255,255,.15); /* plus visible sur bleu */
}

/* Sidebar submenu (Paiements) */
.sidebar__item--parent { justify-content: space-between; cursor: pointer; }
.sidebar__caret { margin-left: 8px; opacity: .8; transition: transform .2s ease; }
.sidebar__item--open .sidebar__caret { transform: rotate(180deg); }
.sidebar__submenu { display: none; padding-left: 14px; }
.sidebar__submenu .sidebar__item { opacity: .9; padding: 10px 12px; }
.sidebar__submenu--open { display: block; }


.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 65;
  opacity: 0; transition: opacity .2s ease-out;
}
.overlay--visible { opacity: 1; }


/* Transfers */
.segment { display: grid;  grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 10%; }
.segment__btn { height: 48px; border: none; border-radius: 14px; background: #e5e7eb; color: #0b6b3a; font-weight: 800; display: grid; place-items: center; }
.segment__btn--active { background: #3c98ee; color: #fff; }
.divider { border: none; height: 2px; background: #cbd5e1; margin: 16px 0; }
.transfer__title { margin: 16px 2px 8px; font-weight: 800; }
.select { display: grid; grid-template-columns: 1fr auto; align-items: center; background: #fff; border-radius: 12px; padding: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.05); }
.select--muted { background: #f3f4f6; }
.select__placeholder { color: #6b7280; }
.select__caret { width: 40px; height: 40px; border: none; border-radius: 999px; background: #0b6b3a; color: #fff; font-size: 18px; display: grid; place-items: center; cursor: pointer; }
.add-link { display: inline-block; margin-top: 12px; color: #0b6b3a; font-weight: 700; text-decoration: none; }

