/* BatiSpot Pro — « Bien démarrer » (carte du tableau de bord + feuille-guide)
   Voir js/app-demarrage.js. Couleurs de la charte validée le 03/09/2026 :
   un seul vert d'action #228B5B (titres/hover #1B7049), ambre #B45309 = en
   attente, fond de feuille #F4F7F5 comme l'assistant. Police : celle de
   app.css (Inter), rien d'autre. */

/* ── Carte sur le tableau de bord ─────────────────────────────────────── */
.bs-dem { background: #fff; border: 1px solid #DCE6E0; border-radius: 16px; padding: 12px 14px 4px; }
.bs-dem[hidden] { display: none; }
.bs-dem-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bs-dem-titre { font-size: 15px; font-weight: 900; color: #1C2B22; }
.bs-dem-titre small { display: block; font-size: 12px; font-weight: 600; color: #6B7F76; margin-top: 2px; }
.bs-dem-sous { font-size: 12px; font-weight: 800; color: #1B7049; white-space: nowrap; }
.bs-dem-barre { height: 6px; border-radius: 999px; background: #E6F4EC; margin: 10px 0 4px; overflow: hidden; }
.bs-dem-barre i { display: block; height: 100%; width: 0; background: #228B5B; border-radius: 999px; transition: width .3s ease; }
.bs-dem-liste { list-style: none; margin: 0; padding: 0; }
.bs-dem-etape { margin: 0; }
.bs-dem-etape > button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 0;
  min-height: 52px; background: none; border: 0; border-top: 1px solid #EEF2F0;
  text-align: left; font-family: inherit; color: inherit; cursor: pointer;
}
.bs-dem-etape:first-child > button { border-top: 0; }
.bs-dem-num {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  border: 1.5px solid #CFE8DA; color: #1B7049; background: #fff;
  font-weight: 800; font-size: 12.5px; display: flex; align-items: center; justify-content: center;
}
.bs-dem-num svg { width: 14px; height: 14px; }
.bs-dem-etape.faite .bs-dem-num { background: #228B5B; border-color: #228B5B; color: #fff; }
.bs-dem-etape.plus-tard .bs-dem-num { border-color: #F1D9BF; color: #B45309; }
.bs-dem-lib { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; color: #1C2B22; line-height: 1.25; }
.bs-dem-lib small { display: block; font-size: 12px; font-weight: 600; color: #6B7F76; margin-top: 2px; }
.bs-dem-etape.faite .bs-dem-lib { color: #6B7F76; }
.bs-dem-pill { font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 999px; white-space: nowrap; flex: none; }
.bs-dem-pill.ok { background: #E6F4EC; color: #1B7049; }
.bs-dem-pill.wait { background: #FBF1E6; color: #B45309; }
.bs-dem-chev { flex: none; color: #9AA8A1; display: flex; }
.bs-dem-chev svg { width: 18px; height: 18px; }

/* ── Feuille-guide (même gabarit que la feuille de l'assistant) ────────── */
.bs-dem-ov {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(15, 23, 42, .55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: none; opacity: 0; transition: opacity .25s ease;
  align-items: flex-end; justify-content: center;
}
.bs-dem-ov.open { display: flex; opacity: 1; }
.bs-dem-sheet {
  width: 100%; max-width: 500px;
  max-height: min(90dvh, calc(100svh - 12px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-sizing: border-box;
  background: #F4F7F5; color: #1C2B22;
  border-radius: 24px 24px 0 0;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, .15);
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
.bs-dem-ov.open .bs-dem-sheet { transform: translateY(0); }
.bs-dem-sh-head {
  padding: 14px 18px; background: #228B5B; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none;
}
.bs-dem-sh-head b { display: block; font-size: 15px; font-weight: 900; line-height: 1.25; }
.bs-dem-sh-head small { display: block; font-size: 12px; font-weight: 600; opacity: .92; margin-top: 2px; }
.bs-dem-sh-close {
  flex: none; width: 34px; height: 34px; border-radius: 8px; border: 0;
  background: rgba(255, 255, 255, .18); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-family: inherit;
}
.bs-dem-sh-close svg { width: 18px; height: 18px; }
.bs-dem-sh-body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 12px;
}
.bs-dem-pts { display: flex; gap: 6px; }
.bs-dem-pts span { flex: 1; height: 4px; border-radius: 999px; background: #CFE8DA; }
.bs-dem-pts span.on { background: #228B5B; }
.bs-dem-kicker { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #1B7049; }
.bs-dem-txt {
  font-size: 15px; line-height: 1.55; color: #1C2B22;
  background: #fff; border: 1px solid #DCE6E0; border-radius: 14px; padding: 14px 16px;
}
.bs-dem-txt p { margin: 0; }
.bs-dem-txt p + p { margin-top: 10px; }
.bs-dem-note { font-size: 12.5px; color: #6B7F76; line-height: 1.5; }
.bs-dem-attente {
  font-size: 12.5px; font-weight: 700; line-height: 1.5; color: #B45309;
  background: #FBF1E6; border-radius: 10px; padding: 10px 12px;
}
.bs-dem-fait {
  font-size: 13px; font-weight: 800; color: #1B7049; background: #E6F4EC;
  border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; gap: 8px;
}
.bs-dem-fait svg { width: 16px; height: 16px; flex: none; }
.bs-dem-action { display: flex; flex-direction: column; gap: 10px; }
.bs-dem-sh-foot {
  flex: none; padding: 10px 18px 14px; background: #fff; border-top: 1px solid #DCE6E0;
  display: flex; gap: 8px;
}
.bs-dem-btn {
  min-height: 44px; flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 12px; font-weight: 800; font-size: 15px; padding: 0 16px;
  border: 0; cursor: pointer; font-family: inherit; text-decoration: none; box-sizing: border-box;
}
.bs-dem-btn.primary { background: #228B5B; color: #fff; }
.bs-dem-btn.primary:hover { background: #1B7049; }
.bs-dem-btn.ghost { background: #fff; border: 1px solid #DCE6E0; color: #1B7049; }
.bs-dem-btn:disabled { opacity: .6; cursor: default; }

/* Liste des 4 étapes dans la feuille « Revoir les guides » */
.bs-dem-sheet .bs-dem-liste { background: #fff; border: 1px solid #DCE6E0; border-radius: 14px; padding: 0 14px; }
