
:root{
  --bg:#eef5fb;
  --card:#ffffff;
  --muted:#7b8794;
  --text:#0f172a;
  --primary:#1f56a8;
  --primary-soft:#69a7de;
  --pill:#2c5aa5;
  --shadow:0 8px 22px rgba(15,23,42,.08);
  --radius:18px;
}

*{box-sizing:border-box}
html, body { height: 100%; }

body{
  margin:0;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background: var(--bg);
  color: var(--text);
}

/* L'app prend tout l'écran */
.phone{
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  position: relative;
}

/* On laisse de la place pour la barre du bas */
.content{
  padding:14px 14px 96px; /* IMPORTANT */
}

/* Barre du bas collée au viewport (et plus centrée) */
.bottom-nav{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  transform: none;

  background:#f7fbff;
  border-top:1px solid #e5eef7;
  display:flex;
  justify-content:space-around;
  padding:10px 10px 14px;
  z-index:999;
}

/* ✅ Tablette */
@media (min-width: 768px){
  body{
    background:#f1f5f9;
    padding:18px;
  }
  .phone{
    --container-w: 720px;
    max-width:720px;
    margin:0 auto;
    min-height:calc(100vh - 36px);
    border-radius:22px;
    box-shadow:0 20px 60px rgba(0,0,0,.12);
  }
}

/* ✅ Desktop */
@media (min-width: 1100px){
  .phone{
    --container-w: 980px;
    max-width:980px;
  }
  .content{
    padding:18px 18px 92px;
  }
}


.topbar{
  padding:14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.topbar__left{display:flex; gap:10px; align-items:center}
.brand-badge{
  width:44px;height:44px;border-radius:14px;
  background:linear-gradient(180deg,#6fb5e6,#3f78c7);
  display:grid;place-items:center;
  box-shadow:var(--shadow);
}
.brand-dot{width:16px;height:16px;border-radius:999px;background:#fff;opacity:.95}
.brand__name{font-weight:700;line-height:1.05; color:#0b1f3a}
.topbar__right{display:flex; gap:10px; align-items:center}
.chip{
  background:#dbeafe;
  color:#1e3a8a;
  padding:8px 10px;
  border-radius:14px;
  font-weight:600;
  font-size:12px;
}
.icon-btn{
  border:0;
  background:#fff;
  border-radius:14px;
  padding:10px;
  box-shadow:var(--shadow);
  display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.icon-btn--ghost{box-shadow:none; background:transparent}

.section{padding:2px 0}
.section-head{display:flex;align-items:center;justify-content:space-between;margin:6px 4px 10px}
.section-title{font-weight:800;color:#0b1f3a}
.section-title.mt{margin-top:14px}
.muted{color:var(--muted)}

.search-row{display:grid; gap:10px; margin:4px 4px 12px}
.search{
  display:flex; align-items:center;
  background:#fff; border-radius:999px;
  padding:10px 10px 10px 14px;
  box-shadow:var(--shadow);
}
.search__input{
  border:0; outline:none; width:100%; font-size:14px; background:transparent;
}
.search__btn{border:0; background:transparent; cursor:pointer; color:#0b1f3a}

.filters{display:flex; gap:10px; justify-content:flex-start}
.pill-select{
  background:var(--pill);
  color:#fff;
  border-radius:999px;
  padding:8px 12px;
  box-shadow:var(--shadow);
}
.pill-select select{
  border:0; outline:none; background:transparent; color:#fff; font-weight:700; cursor:pointer;
  appearance:none;
}
.pill-select option{color:#0b1f3a}

.cards{display:grid; gap:12px; padding:0 4px}
.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:12px;
}
.card--dossier{
  display:grid;
  grid-template-columns:74px 1fr auto;
  gap:12px;
  align-items:center;
  position:relative;
  padding:12px;
}
.thumb{
  width:74px;height:62px;border-radius:14px;
  background:#e6f2ff;
  display:grid;place-items:center;
  overflow:hidden;
}
.thumb img{width:74px;height:62px; object-fit:cover}
.card-title{font-weight:800;color:#0b1f3a;font-size:13px}
.card-sub{color:#485569;font-size:12px;margin-top:2px}
.card-body{padding-right:8px}
.badge{
  align-self:start;
  font-size:11px;
  font-weight:800;
  padding:8px 10px;
  border-radius:999px;
  color:#fff;
  background:#6b7280;
}
.badge--prospection{background:#1f56a8}
.badge--mandat{background:#ff8a00}
.badge--compromis{background:#8b5cf6}
.badge--vendu{background:#22c55e}

.empty{
  background:#ffffffaa;
  border-radius:16px;
  padding:14px;
  text-align:center;
  color:#475569;
}

.bottom-nav{
  position:absolute;
  left:0; right:0; bottom:0;
  background:#f7fbff;
  border-top:1px solid #e5eef7;
  display:flex;
  justify-content:space-around;
  padding:10px 10px 14px;
}
.nav-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  color:#6b7280;
  font-size:11px;
  padding:6px 10px;
  border-radius:16px;
}
.nav-item.active{color:#0b1f3a; background:#e6f2ff}
.nav-item.tap{transform:scale(.98)}
.nav-icon{display:grid;place-items:center}
.nav-label{font-weight:700}

.alerts-head{display:flex; align-items:center; justify-content:space-between; padding:4px}
.alert-card{
  background:#b9d6ef;
  border-radius:16px;
  padding:12px;
  margin:10px 4px;
  display:grid;
  grid-template-columns:36px 1fr auto;
  gap:10px;
  align-items:center;
}
.alert-card__left{display:grid;place-items:center}
.alert-icon{font-size:18px}
.alert-title{font-weight:900;color:#0b1f3a;font-size:13px}
.alert-sub{color:#0b1f3a;opacity:.9;font-size:12px;margin-top:2px}
.alert-sub.small{opacity:.75}
.btn{
  border:0; cursor:pointer;
  border-radius:12px;
  padding:10px 12px;
  font-weight:800;
}
.btn--small{padding:8px 10px; font-size:12px; background:#1f56a8; color:#fff}
.btn--primary{background:#1f56a8;color:#fff;width:100%; padding:12px 14px; border-radius:14px}
.card--upcoming{
  display:grid;
  grid-template-columns:34px 1fr auto;
  gap:10px;
  align-items:center;
  background:#cfe3f5;
}
.clock{font-size:16px}
.upcoming-date{font-weight:900;color:#0b1f3a;font-size:12px}
.upcoming-sub{color:#0b1f3a;opacity:.9;font-size:12px;margin-top:2px}
.upcoming-tag{color:#0b1f3a;opacity:.8;font-size:11px; font-weight:800}

.form{display:grid; gap:10px}
.form--card{background:#fff; padding:14px; border-radius:18px; box-shadow:var(--shadow); margin:10px 4px}
.label{font-size:12px; font-weight:800; color:#0b1f3a}
.input{
  width:100%;
  border:1px solid #e5eef7;
  border-radius:12px;
  padding:12px 12px;
  outline:none;
  background:#fff;
}
.row{display:grid; grid-template-columns:1fr 1fr; gap:10px}
.col{display:grid; gap:8px}

.toast{
  margin:8px 4px 0;
  padding:10px 12px;
  border-radius:14px;
  font-weight:700;
}
.toast--error{background:#ffe4e6; color:#9f1239}

.auth-wrap{padding:30px 22px 22px}
.logo{display:grid;place-items:center;gap:10px;margin-top:6px}
.logo__mark{width:96px;height:96px;border-radius:28px;background:#e6f2ff;display:grid;place-items:center;box-shadow:var(--shadow)}
.logo__text{font-weight:900;color:#0b1f3a;font-size:22px}
.muted-link{display:block;text-align:center;color:#567; font-weight:700; font-size:12px}

.detail{padding:8px 2px 0}
.detail-top{display:flex; gap:10px; align-items:center; margin:6px 4px 10px}
.detail-title{font-weight:900;color:#0b1f3a;font-size:13px; flex:1}
.info-card{background:#b9d6ef;border-radius:16px;padding:12px;margin:10px 4px}
.info-row{display:flex;gap:10px;align-items:flex-start}
.info-label{font-size:18px}
.info-text{font-weight:800;color:#0b1f3a;font-size:12px;line-height:1.35}

.split-head{display:flex;align-items:center;justify-content:space-between;margin:12px 4px 10px}
.timeline{display:grid; gap:10px; padding:0 4px}
.timeline-item{display:grid; grid-template-columns:14px 1fr 14px; gap:10px; align-items:center}
.dot{width:10px;height:10px;border-radius:999px;background:#1f56a8; justify-self:center}
.timeline-card{
  background:#cfe3f5;
  border-radius:14px;
  padding:10px 12px;
  box-shadow:0 8px 16px rgba(15,23,42,.06);
}
.tl-title{font-weight:900;color:#0b1f3a;font-size:12px}
.tl-sub{color:#0b1f3a;opacity:.8;font-size:12px}
.tl-meta{color:#0b1f3a;opacity:.85;font-size:11px;margin-top:2px}
.chev{color:#0b1f3a;opacity:.7;font-size:18px;font-weight:900}
.mt{margin-top:14px}

@media (min-width: 1100px){
  .cards{
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1400px){
  .cards{
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 1100px){
  .phone{
    max-width: 1100px;
    margin: 0 auto;
  }
}

