/* ============================================================
   Cockpit Esthéticienne · v5 (01/09/2026)
   Système de design repris du cockpit de Fabien (REFERENCE-COCKPIT-JBC.md) :
   crème, cartes blanches arrondies, UNE couleur d'accent (celle du métier),
   mascotte en sidebar, couleurs par NATURE d'information.
   L'accent se règle en JS (personnalisation prospect) : tout passe par
   --accent / --accent-dark / --accent-soft / --accent-softer.
   ============================================================ */

:root {
  --cream: #F9F3EE;
  --cream-deep: #F3EAE4;
  --card: #FFFFFF;
  --ink: #1F1A1E;
  --muted: #857A80;
  --soft: #B7ACB1;
  --border: #F0E3DF;

  /* accent par défaut : rose poudré (série maquettes validée 24/08) */
  --accent: #C05E72;
  --accent-dark: #A94B5F;
  --accent-soft: #F9E3E6;
  --accent-softer: #FCF1F2;
  --accent-rgb: 192, 94, 114;

  /* les natures d'information (mêmes teintes que chez Fabien) */
  --green: #23A55A;
  --green-ink: #187A42;
  --green-soft: #E7F6EE;
  --orange: #EE8F1F;
  --orange-ink: #D97706;
  --orange-soft: #FDF2E1;
  --blue-ink: #1B4E85;
  --blue: #1a73e8;
  --blue-soft: #E8F0FE;
  --violet-ink: #5B4B96;
  --violet-soft: #EEE9F8;
  --sms-bg: #FCF4D2;
  --sms-txt: #8A5A00;
  --sms-bd: #EBD9A0;

  --shadow: 0 1px 2px rgba(31, 26, 30, .04), 0 10px 30px rgba(31, 26, 30, .06);
  --shadow-soft: 0 1px 2px rgba(31, 26, 30, .03), 0 6px 18px rgba(31, 26, 30, .04);
  --radius: 18px;
  --sidebar-w: 264px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  overscroll-behavior: none;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  overflow-y: scroll;
  scroll-padding-top: 80px;
}
body { overflow-x: clip; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  min-height: 100dvh;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 16px; }

/* Icônes Tabler (sprite inline, teintées par currentColor) */
.ic { width: 20px; height: 20px; flex: 0 0 auto; display: inline-block; vertical-align: -4px; }
.ic-s { width: 16px; height: 16px; vertical-align: -3px; }
.ic-l { width: 24px; height: 24px; }

/* ---------- Bandeau démo ---------- */
.demo-banner {
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  text-align: center; font-size: 13px; font-weight: 600;
  padding: 8px 14px; letter-spacing: .2px;
  position: sticky; top: 0; z-index: 60;
}
.demo-banner b { color: #FFD3DB; }
.demo-banner button, .demo-banner a.db-lien {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 20px;
  padding: 4px 12px; font-size: 12.5px; font-weight: 700; color: #fff;
}
.demo-banner button:hover, .demo-banner a.db-lien:hover { background: rgba(255, 255, 255, .12); }
.demo-banner .ic { width: 15px; height: 15px; vertical-align: -3px; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100dvh; }
.main {
  flex: 1; min-width: 0;
  padding: 34px 40px 56px;
  margin-left: var(--sidebar-w);
  display: flex; flex-direction: column;
}
.main > .container { flex: 1 0 auto; display: flex; flex-direction: column; width: 100%; }
.container { max-width: 1560px; margin: 0 auto; }
.app-footer {
  margin-top: auto; padding-top: 34px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.app-footer .ic { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: var(--sidebar-w);
  background: var(--card); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  padding: 26px 18px 20px;
  z-index: 40;
  overflow-y: auto; scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
.sidebar { top: var(--bandeau-h, 0px); }

.brand { display: flex; align-items: center; gap: 11px; padding: 0 10px 24px; }
.brand .logo { width: 36px; height: 30px; flex: 0 0 36px; }
.brand span { font-size: 25px; font-weight: 800; color: var(--accent); letter-spacing: -.5px; }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 13px;
  padding: 11.5px 14px; border-radius: 13px;
  font-weight: 600; font-size: 15.5px; color: var(--ink);
}
.nav a .ic { width: 21px; height: 21px; color: var(--muted); }
.nav a:hover { background: var(--cream); }
.nav a.active { background: var(--accent); color: #fff; }
.nav a.active:hover { background: var(--accent); }
.nav a.active .ic { color: #fff; }
.nav a .nav-nb {
  margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: 11px; background: var(--accent-soft); color: var(--accent-dark);
  font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
}
.nav a.active .nav-nb { background: rgba(255, 255, 255, .25); color: #fff; }

.nav-site {
  display: flex; align-items: center; gap: 10px;
  margin: 12px 0 0; padding: 10px 14px;
  border: 1.5px solid var(--accent); border-radius: 12px; background: var(--accent);
  font-size: 13.5px; font-weight: 700; color: #fff; transition: background .15s, border-color .15s;
}
.nav-site .ic { width: 17px; height: 17px; color: #fff; }
.nav-site:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.nav-souci {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin: 10px 0 0; padding: 9px 12px;
  border: 1.5px solid var(--accent); border-radius: 12px;
  color: var(--accent); font-size: 14px; font-weight: 700; line-height: 1.2;
}
.nav-souci .ic { width: 18px; height: 18px; }
.nav-souci:hover { background: var(--accent-soft); }

.sidebar-mascotte { margin: auto 6px 10px; text-align: center; }
.sidebar-mascotte img { width: 150px; height: auto; }

.user-chip {
  display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--border); border-radius: 14px;
  padding: 10px 12px; margin: 0 6px; cursor: pointer; position: relative;
  background: #fff;
}
.user-chip .avatar-ini { width: 38px; height: 38px; font-size: 15px; flex-shrink: 0; }
.user-chip img.avatar-photo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.user-chip b { display: block; font-size: 14.5px; line-height: 1.2; }
.user-chip small { color: var(--muted); font-size: 12.5px; }
.user-chip .ic-chev { margin-left: auto; width: 16px; height: 16px; color: var(--muted); }
.user-chip .qui { min-width: 0; }
.user-chip .qui b, .user-chip .qui small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.compte-menu {
  position: absolute; bottom: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px; display: none; z-index: 30;
}
.compte-menu.ouvert { display: block; }
.compte-menu button {
  width: 100%; text-align: left; display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.compte-menu button .ic { width: 16px; height: 16px; color: var(--accent); }
.compte-menu button:hover { background: var(--accent-softer); }

/* ---------- En-tête de page ---------- */
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 32px;
}
.page-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1.15; }
.page-head .sub {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 14px; padding: 7px 15px 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  color: var(--ink); font-size: 16px; font-weight: 700;
  box-shadow: var(--shadow-soft); max-width: 100%;
}
.page-head .sub .ic { width: 19px; height: 19px; color: var(--accent); }
.page-head .sub .sub-txt { min-width: 0; }
.page-head > div:first-child { min-width: 0; max-width: 100%; }
@media (max-width: 1023px) { .page-head .sub { flex-wrap: wrap; row-gap: 6px; } }
.page-head .sub a { color: var(--accent-dark); }
.page-head .sub a:hover { text-decoration: underline; }
.fraicheur {
  display: inline-block; margin-left: 4px; padding: 2px 10px;
  background: transparent; border: 1px solid #E6DAD5; border-radius: 20px;
  color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer;
  vertical-align: middle; white-space: nowrap;
}
.fraicheur:hover { color: var(--ink); border-color: #CDBFBA; }
.head-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bell {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  background: var(--card); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--muted);
}
.bell .ic { width: 20px; height: 20px; }
.bell i {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--accent); color: #fff; font-style: normal;
  font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.bell i:empty, .bell i.zero { display: none; }
.notif-wrap { position: relative; }
.notif-panel {
  position: absolute; top: calc(100% + 10px); right: 0; width: 330px; max-width: calc(100vw - 32px);
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); padding: 8px; display: none; z-index: 90;
}
.notif-panel.open { display: block; }
.notif-item {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 11px; border-radius: 11px; color: var(--ink);
}
.notif-item:hover { background: var(--cream); }
.notif-item .ic { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }
.notif-item b { display: block; font-size: 14px; }
.notif-item small { color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff;
  border-radius: 12px; padding: 11px 18px;
  font-size: 15px; font-weight: 700; line-height: 1.2;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-dark); }
.btn .ic { width: 18px; height: 18px; }
.btn.ghost { background: var(--card); color: var(--accent); border: 1.5px solid var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.small { padding: 8px 13px; font-size: 13.5px; border-radius: 10px; }
.btn.small .ic { width: 15px; height: 15px; }
.btn.vert { background: var(--green); }
.btn.vert:hover { background: var(--green-ink); }
.btn.full { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }
.btn-rond {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
}
.btn-rond:hover { border-color: var(--accent); color: var(--accent); }
.btn-rond .ic { width: 16px; height: 16px; }
.lien { color: var(--accent-dark); font-weight: 700; cursor: pointer; }
.lien:hover { text-decoration: underline; }
.link-more { color: var(--accent-dark); font-weight: 700; font-size: 14px; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* ---------- Cartes ---------- */
.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow-soft); border: 1px solid var(--border);
}
.block { padding: 22px 24px; }
.block-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-bottom: 16px; flex-wrap: wrap;
}
.block-head h2 {
  font-size: 18px; font-weight: 800; letter-spacing: -.3px;
  display: flex; align-items: center; gap: 9px;
}
.block-head h2 .ic { width: 21px; height: 21px; color: var(--accent); }
.block-head .head-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.block-head.recap-head { justify-content: flex-start; gap: 14px; margin-bottom: 22px; }
.block-sous { color: var(--muted); font-size: 14px; font-weight: 600; margin: -8px 0 16px; line-height: 1.5; }

.grid-2 { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: start; }
.grid-2eq { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.grid-2 > *, .grid-2eq > *, .grid-3 > * { min-width: 0; }
.mt { margin-top: 18px; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 18px; }
.kpis.k3 { grid-template-columns: repeat(3, 1fr); }
.kpis.k2 { grid-template-columns: repeat(2, 1fr); }
.kpi { padding: 19px 22px 17px; position: relative; display: flex; flex-direction: column; }
.kpi .chip {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.kpi .chip .ic { width: 23px; height: 23px; }
.kpi .chip.green { background: var(--green-soft); color: var(--green-ink); }
.kpi .chip.orange { background: var(--orange-soft); color: var(--orange-ink); }
.kpi .chip.blue { background: var(--blue-soft); color: var(--blue-ink); }
.kpi .chip.violet { background: var(--violet-soft); color: var(--violet-ink); }
.kpi .label { color: var(--muted); font-weight: 600; font-size: 16px; line-height: 1.3; margin-top: auto; }
.kpi .value {
  font-size: 36px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.15; margin-top: 2px;
  display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap;
}
.kpi .value small { font-size: 20px; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.kpi .value.c-accent { color: var(--accent); }
.kpi .value.c-green { color: #146B3C; }
.kpi .value.c-blue { color: var(--blue-ink); }
.kpi .value.c-orange { color: var(--orange-ink); }
.kpi .value.c-violet { color: var(--violet-ink); }
.kpi .value.c-accent small, .kpi .value.c-green small, .kpi .value.c-blue small,
.kpi .value.c-orange small, .kpi .value.c-violet small { color: inherit; opacity: .55; }
.kpi-corner {
  position: absolute; top: 14px; right: 14px;
  font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 9px;
  background: var(--cream-deep); color: var(--muted); white-space: nowrap;
}
.kpi-corner.ok { background: var(--green-soft); color: var(--green-ink); }
.kpi-corner.warn { background: var(--orange-soft); color: var(--orange-ink); }
.kpi .hz-pill.kpi-coin { position: absolute; top: 14px; right: 14px; margin-top: 0; }
@media (max-width: 1150px) {
  .kpi .hz-pill.kpi-coin { position: static; margin-top: 8px; align-self: flex-start; }
}

/* Carte « action du jour » (relances de demain), sur le modèle de la carte tir de Fabien */
.tir-card {
  padding: 26px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.tir-card .t1 { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: 15px; }
.tir-card .t1 .ic { width: 19px; height: 19px; color: var(--accent); }
.tir-card .t2 { font-size: 36px; font-weight: 800; letter-spacing: -1.2px; color: var(--accent); line-height: 1.15; }
.tir-card .t2 small { font-size: 19px; color: var(--muted); font-weight: 700; letter-spacing: 0; }
.tir-card .t3 { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.tir-card .btn { margin-top: 10px; }
.tir-card .btn.est-valide, .tir-card .btn.est-valide:hover { background: var(--green); }
.tir-kpi:has(.hz-pill.kpi-coin) { padding-top: 46px; }

/* ---------- Pastilles & étiquettes ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; padding: 5.5px 12px; border-radius: 20px; white-space: nowrap;
}
.badge .pt { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge.ok { background: var(--green-soft); color: var(--green-ink); }
.badge.warn { background: var(--orange-soft); color: var(--orange-ink); }
.badge.off { background: var(--cream-deep); color: var(--muted); }
.badge.red { background: var(--accent-soft); color: var(--accent-dark); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.violet { background: var(--violet-soft); color: var(--violet-ink); }
.badge.jour { background: var(--accent); color: #fff; }
.badge.depuis { background: var(--accent); color: #fff; padding: 7px 15px; box-shadow: var(--shadow-soft); }
.badge.source { white-space: normal; max-width: 100%; text-align: center; line-height: 1.35; }

.tag {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); border-radius: 11px;
  padding: 6.5px 12px; font-size: 13.5px; font-weight: 700; background: #FDFCFA;
}
.tag .ic { width: 15px; height: 15px; }
.tag.t-lieu { background: var(--blue-soft); border-color: #D6E5F6; color: var(--blue-ink); }
.tag.t-tel { background: var(--green-soft); border-color: #CFE9DA; color: #146B3C; }
.tag.t-peau { background: var(--accent-soft); border-color: #F3CFD6; color: var(--accent-dark); }
.tag.t-depuis { background: var(--orange-soft); border-color: #F5E0BE; color: var(--orange-ink); }
.tag.t-anniv { background: var(--violet-soft); border-color: #DDD4F0; color: var(--violet-ink); }

.pt-new { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: 1px; }

/* ---------- Récap du jour (fonds de section par famille) ---------- */
.recap-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.recap-badges .badge { font-size: 13.5px; padding: 8px 13px; }
.recap-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; align-items: start; }
.recap-grid > div { min-width: 0; }
.recap-sec { border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.recap-sec + .recap-sec { margin-top: 14px; }
.recap-sec h4 { font-size: 14px; font-weight: 800; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.recap-sec h4 .ic { width: 17px; height: 17px; }
.recap-sec.rose { background: var(--accent-softer); border-color: #F3D6DC; }
.recap-sec.rose h4 { color: var(--accent-dark); }
.recap-sec.vert { background: var(--green-soft); border-color: #CBEBD8; }
.recap-sec.vert h4 { color: var(--green-ink); }
.recap-sec.orange { background: var(--orange-soft); border-color: #F6E2C2; }
.recap-sec.orange h4 { color: var(--orange-ink); }
.recap-sec.bleu { background: var(--blue-soft); border-color: #CFE0FB; }
.recap-sec.bleu h4 { color: var(--blue); }
.recap-sec.violet { background: var(--violet-soft); border-color: #DDD4F0; }
.recap-sec.violet h4 { color: var(--violet-ink); }
.recap-sec.gris { background: var(--cream-deep); }
.recap-sec ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.recap-sec li { font-size: 14px; font-weight: 600; line-height: 1.4; }
.recap-sec li a { color: inherit; cursor: pointer; }
.recap-sec li a:hover { text-decoration: underline; }
.recap-sec li small { color: var(--muted); font-weight: 600; }
.recap-sec li .hr { color: #2F6F8F; font-weight: 700; font-variant-numeric: tabular-nums; margin-left: 4px; }
.recap-sec li .sep { color: var(--soft); font-weight: 700; margin: 0 3px; }
.recap-sec li .soin { color: #7B5E3B; font-weight: 600; }
.recap-sec li .eur { color: var(--accent); font-weight: 800; }
.recap-sec li .rep {
  display: block; color: var(--sms-txt); font-size: 13.5px; font-weight: 500; font-style: italic;
  margin-top: 2px; line-height: 1.45; overflow-wrap: anywhere;
}
.recap-sec li .mini {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 1px 9px; font-size: 12px; font-weight: 700; color: var(--ink); white-space: nowrap; vertical-align: 1px;
}
.recap-sec li .mini .ic { width: 12px; height: 12px; color: var(--accent); }
.recap-note { color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 14px; }
@media (max-width: 900px) { .recap-grid { grid-template-columns: 1fr; } }

/* ---------- Horloges ---------- */
.hz { display: inline-flex; align-items: center; gap: 8px; }
.hz-dial { width: 26px; height: 26px; flex: 0 0 auto; transform: rotate(-90deg); }
.hz-bg { fill: none; stroke: var(--cream-deep); stroke-width: 5; }
.hz-arc { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.hz-hand { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; transform-origin: 22px 22px; transform: rotate(90deg); }
.hz-txt { display: flex; flex-direction: column; line-height: 1.2; }
.hz-txt b { font-size: 14px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.hz-txt small { font-size: 12px; color: var(--muted); font-weight: 600; }
.hz.proche .hz-txt b { color: var(--accent); }
.hz-pill {
  margin-top: 10px; display: inline-flex; align-items: center;
  padding: 4px 9px 4px 7px; border-radius: 9px; background: var(--accent-soft);
}
.hz-pill:empty { display: none; }
.hz-pill .hz { gap: 6px; }
.hz-pill .hz-dial { width: 20px; height: 20px; }
.hz-pill .hz-txt b { font-size: 12.5px; color: var(--accent-dark); }
.hz-pill .hz-txt small { display: none; }
.hz-inline { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.hz-inline .hz-dial { width: 22px; height: 22px; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 13px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: .3px;
  padding: 10px 12px; border-bottom: 1.5px solid var(--border); white-space: nowrap;
}
td { padding: 12px; border-bottom: 1px solid var(--border); font-size: 14.5px; font-weight: 600; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.ctr, th.ctr { text-align: center; }
tr.rowlink { cursor: pointer; }
tr.rowlink:hover td { background: var(--accent-softer); }
th.tri { cursor: pointer; user-select: none; }
th.tri .ic { width: 13px; height: 13px; margin-left: 4px; vertical-align: -2px; opacity: .45; }
th.tri.on { color: var(--accent-dark); }
th.tri.on .ic { opacity: 1; color: var(--accent); }
td .nom-lien { font-weight: 700; cursor: pointer; }
td .nom-lien:hover { color: var(--accent); text-decoration: underline; }
td small { color: var(--muted); font-weight: 600; }
.mnt { font-weight: 800; white-space: nowrap; }
.mnt.mnt-ttc { color: var(--ink); }
.mnt.mnt-vert { color: var(--green-ink); }
.mnt.mnt-accent { color: var(--accent); }
.vide { color: var(--muted); text-align: center; padding: 30px 10px; font-weight: 600; }
.vide b { color: var(--ink); }

.avatar-ini {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff; letter-spacing: .3px;
}
.av-1 { background: #C05E72; } .av-2 { background: #B98A5E; } .av-3 { background: #7D9A6C; }
.av-4 { background: #7A6FA8; } .av-5 { background: #5E93B9; } .av-6 { background: #C07A5E; } .av-7 { background: #A85E97; }
td .av-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
td .av-cell > span:last-child { min-width: 0; }

/* Étiquettes de filtre avec leur compte */
.chips-filtres { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px 12px; margin-bottom: 18px; }
.chips-groupe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips-lib { font-size: 12.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; color: var(--accent); margin-right: 2px; }
.chip-f {
  border: 1px solid var(--border); background: var(--card); color: var(--muted);
  font-size: 14px; font-weight: 700; padding: 7px 14px; border-radius: 11px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
}
.chip-f:hover { border-color: var(--accent); color: var(--accent); }
.chip-f b { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.chip-f.on { background: #fff; border-color: var(--accent); color: var(--accent-dark); box-shadow: 0 0 0 2px var(--accent-soft); }
.chip-f.c-vert.on { border-color: var(--green-ink); color: var(--green-ink); box-shadow: 0 0 0 2px var(--green-soft); }
.chip-f.c-vert.on b { color: var(--green-ink); }
.chip-f.c-orange.on { border-color: var(--orange-ink); color: var(--orange-ink); box-shadow: 0 0 0 2px var(--orange-soft); }
.chip-f.c-orange.on b { color: var(--orange-ink); }
.chip-f.c-violet.on { border-color: var(--violet-ink); color: var(--violet-ink); box-shadow: 0 0 0 2px var(--violet-soft); }
.chip-f.c-violet.on b { color: var(--violet-ink); }
.chip-f.c-bleu.on { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.chip-f.c-bleu.on b { color: var(--blue); }

.barre-outils { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.search {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: 13px;
  padding: 0 16px; flex: 1; max-width: 420px; min-width: 200px;
}
.search input { border: none; outline: none; background: none; font-size: 16px; font-weight: 600; padding: 12px 0; width: 100%; color: var(--ink); }
.search input::placeholder { color: var(--soft); font-weight: 500; }
.search .ic { width: 18px; height: 18px; color: var(--muted); }

/* Pagination */
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 16px 0 4px; margin-top: 6px; border-top: 1px solid var(--border); }
.pager-b {
  font-size: 14.5px; font-weight: 700; color: var(--accent);
  background: var(--card); border: 1.5px solid var(--accent); border-radius: 11px;
  padding: 9px 15px; transition: background .15s, color .15s;
}
.pager-b:hover:not(:disabled) { background: var(--accent); color: #fff; }
.pager-b:disabled { opacity: .32; cursor: default; }
.pager-e { color: var(--muted); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.pager-e b { color: var(--ink); font-weight: 800; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .pager { gap: 10px; } .pager-e { flex: 0 0 100%; text-align: center; order: 3; } }

/* ---------- Agenda ---------- */
.agenda-outils { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.agenda-outils .sem { font-weight: 800; min-width: 180px; text-align: center; font-size: 15px; }
.sync-pill { display: inline-flex; align-items: center; gap: 7px; background: var(--green-soft); color: var(--green-ink); border-radius: 20px; padding: 7px 14px; font-size: 13px; font-weight: 700; }
.sync-pill:hover { background: #D8EAD9; }
.sync-pill .ic { width: 15px; height: 15px; }
.agenda-scroll { overflow-x: auto; }
.agenda {
  display: grid; grid-template-columns: 50px repeat(6, minmax(140px, 1fr));
  min-width: 920px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-soft);
  border: 1px solid var(--border); padding: 18px 14px 20px;
}
.agenda .coin { grid-column: 1; }
.agenda .jour-tete { text-align: center; padding: 6px 4px 14px; font-weight: 800; font-size: 14.5px; }
.agenda .jour-tete.auj { color: var(--accent-dark); }
.agenda .jour-tete .badge { margin-left: 6px; padding: 2px 8px; font-size: 11.5px; vertical-align: 1px; }
.agenda .heures { grid-column: 1; position: relative; }
.agenda .heures div { height: 64px; font-size: 12.5px; color: var(--muted); font-weight: 700; transform: translateY(-7px); text-align: right; padding-right: 8px; }
.agenda .col { position: relative; border-left: 1px dashed #F0E3DF; }
.agenda .col.auj { background: var(--accent-softer); }
.agenda .col .tick { height: 64px; border-bottom: 1px dashed #F3E9E5; }
.agenda .col .tick:hover { background: rgba(var(--accent-rgb), .08); cursor: pointer; }
.agenda .col .ligne-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); z-index: 3; pointer-events: none; }
.agenda .col .ligne-now::before { content: ''; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.bloc-rdv {
  position: absolute; left: 5px; right: 5px; border-radius: 9px; padding: 5px 22px 5px 9px;
  font-size: 12px; line-height: 1.3; overflow: hidden; border: 1px solid transparent; cursor: pointer; z-index: 2;
}
.bloc-rdv:hover { filter: brightness(.97); }
.bloc-rdv .bh { font-size: 11px; opacity: .8; display: block; white-space: nowrap; }
.bloc-rdv b { display: block; font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.bloc-rdv .bs { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; display: block; }
.bloc-rdv.b-moyen { display: flex; flex-direction: column; justify-content: center; padding-top: 4px; padding-bottom: 4px; }
.bloc-rdv.b-compact { display: flex; align-items: center; padding-top: 3px; padding-bottom: 3px; }
.bloc-rdv.b-compact .bmini { display: block; width: 100%; font-size: 11.5px; opacity: .9; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.bloc-rdv.b-compact .bmini b { display: inline; font-size: 12.5px; }
.bloc-rdv .bsrc { position: absolute; top: 5px; right: 6px; }
.bloc-rdv .bsrc .ic { width: 13px; height: 13px; display: block; }
.bloc-rdv.passe { opacity: .55; }
.cat-visage { background: #FBE4E7; border-color: #F3CDD3; color: #7C3A47; }
.cat-epilation { background: #E5F1E6; border-color: #CFE4D1; color: #3C6845; }
.cat-ongles { background: #FDEACF; border-color: #F3DCB8; color: #7D5A26; }
.cat-massage { background: #ECE7F7; border-color: #DCD3EF; color: #55467C; }
.cat-regard { background: #E4EEF7; border-color: #CCDCEC; color: #2E4D6E; }
.legende-cat { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.legende-cat span { display: inline-flex; align-items: center; gap: 6px; }
.legende-cat i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; border: 1px solid rgba(0,0,0,.08); }

/* ---------- Fiche cliente ---------- */
.client-hero { padding: 22px 24px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.client-hero .avatar-ini { width: 72px; height: 72px; flex: 0 0 72px; font-size: 24px; }
.client-hero h1 { font-size: 28px; font-weight: 800; letter-spacing: -.8px; }
.client-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.client-side { margin-left: auto; border-left: 1px solid var(--border); padding-left: 24px; display: flex; flex-direction: column; gap: 10px; }
.client-side .line { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 700; }
.client-side .line .chip { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.client-side .line .chip .ic { width: 17px; height: 17px; }
.client-side .line .chip.violet { background: var(--violet-soft); color: var(--violet-ink); }
.client-side .line .chip.green { background: var(--green-soft); color: var(--green-ink); }

.fiche-infos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.fi-col { min-width: 0; }
.fi-grp { padding: 4px 0 14px; }
.fi-grp h3 { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 6px; }
.fi-grp h3 .ic { width: 16px; height: 16px; color: var(--accent); }
.fi-l.long { grid-template-columns: 1fr; gap: 4px; }
.fi-l.long .fi-v { white-space: normal; text-align: left; justify-self: start; margin-left: -7px; }
.fi-l { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); min-height: 42px; }
.fi-grp .fi-l:last-child { border-bottom: 0; }
.fi-k { color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.fi-v {
  font-weight: 700; font-size: 15px; text-align: right; justify-self: end; max-width: 100%;
  border-radius: 8px; padding: 3px 7px; margin: -3px -7px;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: background .15s;
}
.fi-v.edit { overflow: visible; white-space: normal; width: 100%; }
.fi-v.mod { cursor: text; position: relative; }
.fi-v::after { content: ''; display: inline-block; width: 12px; height: 12px; margin-left: 6px; vertical-align: -1px; opacity: 0; }
.fi-v.mod::after {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C05E72' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 20h4L18.5 9.5a2.828 2.828 0 1 0-4-4L4 16v4m9.5-13.5l4 4'/></svg>") center/contain no-repeat;
}
.fi-v.mod:hover, .fi-v.mod:focus-visible { background: var(--accent-soft); color: var(--accent-dark); outline: none; }
.fi-v.mod:hover::after, .fi-v.mod:focus-visible::after { opacity: .85; }
.fi-v.mod::before {
  content: 'Cliquer pour modifier'; position: absolute; bottom: calc(100% + 7px); right: 0;
  padding: 5px 10px; border-radius: 9px; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 700; white-space: nowrap; letter-spacing: .2px;
  opacity: 0; pointer-events: none; z-index: 5;
}
.fi-v.mod:hover::before { opacity: 1; }
.fi-v.edit::before, .fi-v.edit::after { display: none; }
.fi-v.edit:hover { background: transparent; }
.fi-v .vide-v { color: var(--soft); font-weight: 600; font-style: italic; }
.fi-in {
  width: 100%; min-width: 0; max-width: 100%; margin-left: auto;
  font: inherit; font-size: 16px; font-weight: 600; text-align: right;
  padding: 6px 10px; border: 1.5px solid var(--accent); border-radius: 10px;
  background: #FFFFFF; color: var(--ink); outline: none;
}
.fi-v.edit .sel-jbc { width: auto; min-width: 150px; margin-left: auto; }
.fi-v.edit .sel-jbc-vrai + .sel-jbc { display: inline-flex; }
.fi-attente { color: var(--muted); font-weight: 600; font-size: 14px; }
.fi-notes textarea {
  width: 100%; min-height: 84px; border: 1.5px solid var(--border); border-radius: 12px;
  padding: 11px 13px; font: inherit; font-size: 16px; font-weight: 500; line-height: 1.5;
  background: #FFFFFF; color: var(--ink); resize: vertical; outline: none;
}
.fi-notes textarea:focus { border-color: var(--accent); }
.fi-notes-etat { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 6px; text-align: right; min-height: 18px; }
@media (max-width: 760px) { .fiche-infos { grid-template-columns: 1fr; gap: 0; } }

/* Forfait / cure */
.forfait { padding: 14px 16px; border-radius: 14px; background: var(--violet-soft); border: 1px solid #DDD4F0; }
.forfait b { display: block; font-size: 15px; color: var(--violet-ink); }
.forfait small { color: var(--muted); font-weight: 600; }
.forfait .bar-track { height: 10px; border-radius: 8px; background: #fff; overflow: hidden; margin-top: 10px; }
.forfait .bar-fill { height: 100%; border-radius: 8px; background: var(--violet-ink); }
.forfait .seances { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.forfait .seances i { width: 22px; height: 22px; border-radius: 6px; background: #fff; border: 1.5px solid #DDD4F0; display: inline-flex; align-items: center; justify-content: center; }
.forfait .seances i.faite { background: var(--violet-ink); border-color: var(--violet-ink); }
.forfait .seances i.faite::after { content: ''; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) translate(-1px, -1px); }

/* Photos & documents */
.fichiers-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fichier { margin: 0; cursor: pointer; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; transition: box-shadow .15s; }
.fichier:hover { box-shadow: 0 4px 16px rgba(90, 60, 60, .12); }
.fichier-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.fichier-doc .doc-ic { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: var(--accent-softer); color: var(--accent); }
.fichier-doc .doc-ic .ic { width: 40px; height: 40px; }
.fichier figcaption { padding: 8px 10px; }
.fichier figcaption b { display: block; font-size: 12.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fichier figcaption span { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.modal-photo img { width: 100%; border-radius: 12px; display: block; }
.modal-photo .legende { text-align: center; color: var(--muted); font-size: 14px; font-weight: 600; margin-top: 12px; }

/* Fil SMS */
.sms-fil { display: flex; flex-direction: column; gap: 10px; }
.sms-out, .sms-in { padding: 12px 14px; font-size: 14px; font-weight: 600; line-height: 1.45; max-width: 88%; }
.sms-out { background: var(--cream); border-radius: 14px 14px 14px 4px; align-self: flex-start; }
.sms-in { background: var(--sms-bg); border: 1px solid var(--sms-bd); border-radius: 14px 14px 4px 14px; align-self: flex-end; color: var(--sms-txt); }
.sms-meta { display: block; color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 5px; }
.sms-in .sms-meta { color: #A67A1B; text-align: right; }

/* Timeline */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; padding: 4px 0 14px; }
.tl-item::before { content: ''; position: absolute; left: -20px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.tl-item small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.tl-item .txt { font-size: 14.5px; font-weight: 600; }
.tl-item .txt .ic { width: 15px; height: 15px; color: var(--accent); margin-right: 4px; }

/* Historique soins (liste) */
.histo-ligne { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: center; font-weight: 600; }
.histo-ligne:last-child { border-bottom: 0; }
.histo-ligne .qd { width: 128px; color: var(--muted); font-size: 13.5px; flex-shrink: 0; }
.histo-ligne .qq { flex: 1; min-width: 0; }
.histo-ligne .px { font-weight: 800; white-space: nowrap; }
.gros-chiffre { font-size: 40px; font-weight: 800; color: var(--accent); letter-spacing: -1.4px; line-height: 1.1; }
.sous-chiffre { color: var(--muted); font-weight: 600; font-size: 13.5px; margin-top: 4px; }

/* ---------- Soins ---------- */
.cat-titre { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 800; margin: 22px 0 12px; color: var(--accent-dark); }
.cat-titre:first-child { margin-top: 0; }
.cat-titre .ic { width: 19px; height: 19px; }
.cat-titre small { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.soins-grille { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.soin-carte { padding: 18px 20px; cursor: pointer; transition: box-shadow .15s, border-color .15s; position: relative; }
.soin-carte:hover { border-color: var(--accent); box-shadow: 0 6px 20px rgba(var(--accent-rgb), .12); }
.soin-carte h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; padding-right: 26px; }
.soin-carte .meta { color: var(--muted); font-size: 14px; font-weight: 600; display: flex; gap: 14px; align-items: center; }
.soin-carte .meta b { color: var(--ink); font-size: 16px; font-weight: 800; }
.soin-carte .meta .ic { width: 14px; height: 14px; margin-right: 3px; }
.soin-carte .en-ligne { position: absolute; top: 16px; right: 16px; color: var(--green-ink); }
.soin-carte .en-ligne .ic { width: 18px; height: 18px; }
.soin-carte .hors-ligne { color: var(--soft); }
.soin-carte .nb-mois { display: block; margin-top: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* ---------- Stock ---------- */
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button {
  width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--accent);
  background: #fff; color: var(--accent); font-size: 17px; font-weight: 800; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.stepper button:hover { background: var(--accent); color: #fff; }
.stepper span { min-width: 26px; text-align: center; font-weight: 800; }
.prod-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }
.prod-thumb { width: 34px; height: 34px; border-radius: 9px; background: var(--accent-softer); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 34px; }
.prod-thumb .ic { width: 17px; height: 17px; }

/* ---------- Statistiques ---------- */
.seg { display: inline-flex; background: var(--card); border-radius: 12px; border: 1px solid var(--border); padding: 4px; gap: 2px; }
.seg button { border-radius: 9px; padding: 8px 16px; font-size: 14px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--accent); color: #fff; }
.chart-svg { width: 100%; height: auto; display: block; }
.barres-h { display: flex; flex-direction: column; gap: 13px; }
.barre-jour { display: flex; align-items: center; gap: 14px; font-size: 14.5px; font-weight: 600; }
.barre-jour .j { width: 84px; flex-shrink: 0; }
.barre-jour .jlarge { width: 230px; }
.barre-jour .piste { flex: 1; height: 12px; border-radius: 8px; background: var(--cream-deep); overflow: hidden; }
.barre-jour .rempli { height: 100%; border-radius: 8px; background: var(--accent); }
.barre-jour .pct { width: 52px; text-align: right; font-weight: 800; flex-shrink: 0; }
.top-liste { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.top-liste li { display: flex; align-items: center; gap: 11px; font-weight: 600; }
.top-liste li .rang { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.top-liste li .nom-lien { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-liste li .eur { font-weight: 800; color: var(--accent); white-space: nowrap; }

/* ---------- Robots ---------- */
.robots-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.robot-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.robot-card .rc-tete { display: flex; align-items: center; gap: 12px; }
.robot-card .rc-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.robot-card .rc-ic .ic { width: 23px; height: 23px; }
.robot-card h3 { font-size: 16.5px; font-weight: 800; }
.robot-card .rc-role { color: var(--muted); font-size: 13px; font-weight: 600; }
.robot-card p { color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.5; }
.robot-card .rc-pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.robot-card .rc-dernier { color: var(--muted); font-size: 12.5px; font-weight: 600; }

/* ---------- Rappels SMS ---------- */
.tir-list { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 18px; }
.tir-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 12px; cursor: pointer; background: #fff;
}
.tir-item:has(input:checked) { border-color: var(--accent); background: var(--accent-softer); }
.tir-item input { width: 19px; height: 19px; accent-color: var(--accent); flex-shrink: 0; }
.tir-item .who { font-weight: 700; flex: 1; min-width: 0; }
.tir-item .who small { display: block; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.tir-item .txt-sms { display: none; }
.sms-apercu {
  background: var(--cream); border-radius: 14px 14px 14px 4px; padding: 13px 15px;
  font-size: 14px; font-weight: 600; line-height: 1.5; margin-bottom: 14px;
}
.sms-apercu small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 6px; }
.success-note { display: none; background: var(--green-soft); color: var(--green-ink); border-radius: 12px; padding: 11px 14px; font-weight: 700; font-size: 14px; text-align: center; margin-top: 12px; }
.success-note.on { display: block; }

/* ---------- Connexions ---------- */
.connexions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cx-carte { padding: 20px 22px; display: flex; flex-direction: column; }
.cx-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.cx-logo { width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--border); color: var(--accent); display: flex; align-items: center; justify-content: center; flex: 0 0 42px; }
.cx-logo .ic { width: 22px; height: 22px; }
.cx-tete h2 { font-size: 16.5px; font-weight: 800; flex: 1; min-width: 0; }
.cx-desc { color: var(--muted); font-size: 14px; font-weight: 500; line-height: 1.55; margin-bottom: 12px; }
.cx-etat { color: var(--green-ink); font-size: 13px; font-weight: 700; margin-top: auto; }
.lien-mini { color: var(--accent); font-size: 13.5px; font-weight: 700; padding: 0; margin-top: 8px; text-decoration: underline; text-underline-offset: 3px; align-self: flex-start; }
.lien-mini:hover { color: var(--accent-dark); }
.cx-btn { width: 100%; margin-top: auto; }

.btn-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; background: #fff; border: 1px solid #dadce0; border-radius: 10px; padding: 13px 18px; font-size: 15px; font-weight: 700; color: #3c4043; }
.btn-google:hover { background: #f7f8f8; border-color: #c9cdd1; }
.logo-g { width: 20px; height: 20px; flex: 0 0 20px; }
.btn-sumup { display: flex; align-items: center; justify-content: center; width: 100%; background: #0e2b4b; color: #fff; border-radius: 10px; padding: 14px 18px; font-size: 15px; font-weight: 700; }
.btn-sumup:hover { background: #163d67; }
.logo-su { font-size: 23px; font-weight: 800; color: #0e2b4b; letter-spacing: -.4px; }
.logo-su sup { color: #23c1a4; font-size: 22px; }
.oauth-fen { max-width: 400px; margin: 0 auto; background: #fff; border: 1px solid #e3e4e6; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 22px rgba(40, 30, 35, .10); }
.oauth-barre { display: flex; align-items: center; gap: 6px; background: #f1f3f4; padding: 9px 12px; }
.oauth-barre .pt { width: 9px; height: 9px; border-radius: 50%; background: #d8dbdf; flex: 0 0 9px; }
.oauth-barre .url { margin-left: 8px; flex: 1; text-align: center; background: #fff; border-radius: 20px; padding: 3px 12px; font-size: 11.5px; color: #5f6368; font-weight: 500; }
.oauth-corps { padding: 22px 20px 20px; }
.oauth-tete { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 16px; color: #202124; line-height: 1.4; }
.oauth-tete .logo-g { width: 28px; height: 28px; flex: 0 0 28px; }
.oauth-q { text-align: center; color: #5f6368; font-size: 14px; margin: 14px 0; line-height: 1.5; font-weight: 500; }
.oauth-q b { color: #202124; }
.oauth-compte { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border-top: 1px solid #eceef0; padding: 12px 4px; }
.oauth-compte:hover { background: #f7f8fa; }
.oauth-compte b { display: block; font-size: 14.5px; color: #202124; font-weight: 700; }
.oauth-compte small { display: block; font-size: 13px; color: #5f6368; font-weight: 500; }
.oauth-compte .rond-plus { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; border: 1px solid #dadce0; display: inline-flex; align-items: center; justify-content: center; color: #5f6368; font-size: 19px; }
.oauth-compte-choisi { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 13.5px; color: #5f6368; margin: 16px 0; font-weight: 500; }
.oauth-scopes { list-style: none; margin: 0 0 20px; padding: 0; }
.oauth-scopes li { position: relative; padding: 9px 0 9px 26px; font-size: 14px; color: #3c4043; line-height: 1.45; border-top: 1px solid #f1f2f4; font-weight: 500; }
.oauth-scopes li::before { content: '✓'; position: absolute; left: 4px; top: 9px; color: var(--green-ink); font-weight: 800; }
.oauth-actions { display: flex; justify-content: flex-end; gap: 8px; }
.btn-oauth-gris { color: #1a73e8; font-size: 14.5px; font-weight: 700; padding: 9px 14px; border-radius: 8px; }
.btn-oauth-gris:hover { background: #f1f6fe; }
.btn-oauth-bleu { background: #1a73e8; color: #fff; font-size: 14.5px; font-weight: 700; padding: 9px 20px; border-radius: 8px; }
.btn-oauth-bleu:hover { background: #1765cc; }
.btn-oauth-bleu.su { background: #0e2b4b; }
.btn-oauth-bleu.su:hover { background: #163d67; }
.cx-fini { text-align: center; }
.cx-check { width: 54px; height: 54px; margin: 0 auto 12px; display: block; }

/* ---------- Modales (pattern JBC) ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(31, 26, 30, .5);
  display: none; align-items: center; justify-content: center; padding: 20px; z-index: 100;
}
.modal-overlay.open { display: flex; }
body.modal-open { overflow: hidden; }
.modal__content {
  position: relative; background: var(--card); border-radius: 20px;
  width: 100%; max-width: 500px; max-height: min(94dvh, 940px);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(31, 26, 30, .25);
}
.modal__content.large { max-width: 620px; }
.modal__scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  scrollbar-width: none; -ms-overflow-style: none;
  padding: 34px 30px 30px; overscroll-behavior: contain;
}
.modal__scroll::-webkit-scrollbar { display: none; width: 0; }
.modal__pied { flex: 0 0 auto; padding: 16px 30px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--card); border-radius: 0 0 20px 20px; }
.modal__pied-info { text-align: center; color: var(--muted); font-weight: 600; font-size: 14px; margin: 0 0 12px; }
.modal__pied-info:empty { display: none; }
.modal__pied-info.ambre { color: var(--orange-ink); font-weight: 800; font-size: 15.5px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--cream); color: var(--muted); font-size: 17px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.modal-close:hover { background: var(--cream-deep); }
.modal__scroll h3 { font-size: 21px; font-weight: 800; text-align: center; margin-bottom: 6px; letter-spacing: -.4px; display: flex; align-items: center; justify-content: center; gap: 9px; }
.modal__scroll h3 .ic { width: 22px; height: 22px; color: var(--accent); }
.modal__scroll .intro { text-align: center; color: var(--muted); font-weight: 600; font-size: 14.5px; line-height: 1.5; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; border: 1.5px solid var(--border); border-radius: 11px;
  padding: 11px 13px; background: #FFFFFF; color: var(--ink); outline: none; font-weight: 600;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form-field textarea { resize: vertical; min-height: 96px; line-height: 1.5; font-weight: 500; }
.form-aide { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }
.modal-actions .btn.ghost { flex: 0 0 auto; }
.fineprint { text-align: center; color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 14px; line-height: 1.5; }
.detail-rdv p { padding: 9px 0; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; font-weight: 600; }
.detail-rdv p span { color: var(--muted); }
.detail-rdv p b { text-align: right; }
.detail-rdv p:last-of-type { border-bottom: 0; }
.choix-liste { display: flex; flex-direction: column; gap: 10px; }
.choix-c { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 15px; border: 1.5px solid var(--border); border-radius: 12px; background: #fff; }
.choix-c:hover { border-color: var(--accent); background: var(--accent-softer); }
.choix-c .ic { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
.choix-c b { display: block; font-size: 15px; font-weight: 800; }
.choix-c small { display: block; color: var(--muted); font-weight: 600; font-size: 13px; }

/* Boîte de dialogue (confirmation) */
.dlg-fond { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(31, 26, 30, .5); }
.dlg { background: var(--card); border-radius: 20px; padding: 26px 24px; max-width: 400px; width: 100%; box-shadow: var(--shadow); text-align: center; }
.dlg h3 { font-size: 19px; font-weight: 800; margin-bottom: 9px; }
.dlg p { color: var(--muted); font-weight: 600; font-size: 15px; line-height: 1.5; margin-bottom: 20px; }
.dlg-btns { display: flex; gap: 10px; }
.dlg-btns button { flex: 1; font-size: 15.5px; font-weight: 800; padding: 11px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--card); color: var(--muted); }
.dlg-btns .dlg-oui, .dlg-btns .btn { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.dlg-btns .dlg-oui:hover, .dlg-btns .btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #FFFFFF; }
.dlg-btns .dlg-non { border-color: var(--accent); color: var(--accent); background: var(--card); }
.dlg-btns .dlg-non:hover { border-color: var(--accent-dark); color: var(--accent-dark); }

/* Fiche express */
.qk-head { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 18px; }
.qk-head .avatar-ini { width: 60px; height: 60px; flex-basis: 60px; font-size: 21px; margin-bottom: 2px; }
.qk-head h3 { margin: 0; }
.qk-head .intro { margin: 0; }
.qk-card { background: var(--cream); border: 1px solid var(--border); border-radius: 16px; padding: 15px 17px; }
.qk-card + .qk-card { margin-top: 12px; }
.qk-card > h4 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 11px; }
.qk-contact { display: grid; gap: 8px; padding: 12px; }
.qk-ct { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 11px; padding: 9px 12px; font-size: 14.5px; font-weight: 700; color: var(--ink); min-width: 0; }
.qk-ct > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.qk-ct .ic { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.qk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qk-info { background: #fff; border: 1px solid var(--border); border-radius: 11px; padding: 9px 11px; min-width: 0; }
.qk-info:last-child:nth-child(odd) { grid-column: 1 / -1; }
.qk-info dt { color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.qk-info dd { font-size: 15px; font-weight: 700; margin-top: 3px; overflow-wrap: anywhere; }
.qk-card .rep { background: var(--sms-bg); border: 1px solid var(--sms-bd); border-radius: 12px 12px 12px 4px; padding: 12px 14px; font-size: 14.5px; font-weight: 600; line-height: 1.5; color: var(--sms-txt); }
.qk-quand { color: var(--muted); font-size: 12.5px; font-weight: 700; margin-top: 8px; text-align: right; }
.qk-liste { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.qk-liste li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 11px; padding: 9px 12px; font-size: 14.5px; font-weight: 700; flex-wrap: wrap; }
.qk-liste .qk-eur { color: var(--accent); }
.qk-liste small { color: var(--muted); font-weight: 600; margin-left: auto; }
@media (max-width: 520px) { .qk-grid { grid-template-columns: 1fr; } .qk-card { padding: 13px 14px; } .qk-liste small { margin-left: 0; width: 100%; } }

/* ---------- Menus déroulants maison (habillage du select natif) ---------- */
.sel-jbc-vrai { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; pointer-events: none; }
.sel-jbc {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-width: 0; font-size: 15px; font-weight: 700; color: var(--ink); text-align: left;
  background: #FFFFFF; border: 1.5px solid var(--border); border-radius: 11px; padding: 10px 13px;
  transition: border-color .15s, box-shadow .15s;
}
.sel-jbc:hover { border-color: var(--accent); }
.sel-jbc:focus-visible, .sel-jbc.ouvert { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.sel-jbc.vide .sel-jbc-t { color: var(--soft); font-weight: 600; }
.sel-jbc-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-jbc-fl { width: 9px; height: 9px; flex: 0 0 auto; margin-right: 1px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s, border-color .15s; }
.sel-jbc:hover .sel-jbc-fl, .sel-jbc.ouvert .sel-jbc-fl { border-color: var(--accent); }
.sel-jbc.ouvert .sel-jbc-fl { transform: rotate(-135deg) translate(-3px, -3px); }
.menu-jbc {
  position: fixed; z-index: 1200; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 44px rgba(24, 20, 14, .18), 0 2px 6px rgba(24, 20, 14, .06);
  padding: 6px; max-height: min(420px, 68vh); overflow-y: auto;
  width: max-content; max-width: calc(100vw - 16px);
  scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
.menu-jbc::-webkit-scrollbar { display: none; width: 0; }
.menu-jbc-o { display: flex; align-items: center; gap: 9px; width: 100%; font-size: 15px; font-weight: 700; color: var(--ink); text-align: left; padding: 9px 11px; border-radius: 10px; }
.menu-jbc-o:hover, .menu-jbc-o:focus-visible { background: var(--accent-soft); color: var(--accent-dark); outline: none; }
.menu-jbc-o.on { color: var(--accent); }
.menu-jbc-o.rien .menu-jbc-t { color: var(--soft); font-weight: 600; font-style: italic; }
.menu-jbc-o.rien.on .menu-jbc-t { color: var(--accent); font-style: normal; }
.menu-jbc-c { width: 14px; height: 14px; flex: 0 0 auto; position: relative; }
.menu-jbc-o.on .menu-jbc-c::after { content: ''; position: absolute; left: 2px; top: 0; width: 6px; height: 11px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); }
.menu-jbc-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Personnalisation ---------- */
.perso-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.perso-sw { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--border); cursor: pointer; position: relative; }
.perso-sw.on { box-shadow: 0 0 0 2.5px var(--ink); }
.perso-sw.on::after { content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 12px; border-right: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translate(-50%, -60%) rotate(45deg); }
.perso-swatches { margin-bottom: 10px; }
.perso-intro-visuel { text-align: center; margin-bottom: 8px; }
.perso-intro-visuel img { width: 92px; height: auto; }
.perso-cases { display: flex; flex-wrap: wrap; gap: 8px; }
.perso-case { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1.5px solid var(--border); border-radius: 11px; font-size: 14px; font-weight: 700; cursor: pointer; background: #fff; }
.perso-case input { display: none; }
.perso-case:has(input:checked) { border-color: var(--accent); background: var(--accent-softer); color: var(--accent-dark); }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 1300; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  background: var(--ink); color: #fff; border-radius: 14px; padding: 13px 22px;
  font-size: 14.5px; font-weight: 600; box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  animation: toast-in .2s ease; max-width: min(92vw, 480px); text-align: center; line-height: 1.4;
}
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Vues ---------- */
.vue { display: none; }
.vue.active { display: block; }
.sk { display: inline-block; background: var(--cream-deep); color: transparent; border-radius: 6px; }

/* ---------- Signalement (vocal simulé) ---------- */
.vocal { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 16px; }
.vocal-rond { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(var(--accent-rgb), .35); }
.vocal-rond .ic { width: 26px; height: 26px; }
.vocal-rond.rec { background: var(--ink); animation: pulse 1s infinite; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.06); } 100% { transform: scale(1); } }
.vocal-etat { color: var(--muted); font-size: 13.5px; font-weight: 700; }

/* ---------- Tabbar & mobile ---------- */
.tabbar { display: none; }
.topbar { display: none; }
.br-mobile { display: none; }

@media (max-width: 1023px) {
  .demo-banner { position: relative; }
  .sidebar { display: none; }
  .main { margin-left: 0; padding: 18px 16px calc(96px + env(safe-area-inset-bottom)); }
  .topbar {
    display: flex; align-items: center; gap: 10px;
    position: sticky; top: 0; z-index: 50;
    background: var(--card); border-bottom: 1px solid var(--border);
    padding: 10px 16px; margin: -18px -16px 18px;
  }
  .topbar .brand { padding: 0; }
  .topbar .brand .logo { width: 30px; height: 25px; flex-basis: 30px; }
  .topbar .brand span { font-size: 21px; }
  .topbar .tb-droite { margin-left: auto; display: flex; align-items: center; gap: 8px; }
  .topbar .user-chip { padding: 5px 9px 5px 5px; margin: 0; gap: 8px; border-radius: 30px; }
  .topbar .user-chip .avatar-ini, .topbar .user-chip img.avatar-photo { width: 30px; height: 30px; flex-basis: 30px; font-size: 12px; }
  .topbar .user-chip b { font-size: 13.5px; }
  .topbar .user-chip small, .topbar .user-chip .ic-chev { display: none; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--card); border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a, .tabbar button {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px; font-size: 10.5px; font-weight: 700; color: var(--muted); border-radius: 10px; min-height: 44px;
  }
  .tabbar .ic { width: 22px; height: 22px; }
  .tabbar a.active { color: var(--accent); }
  .page-head { margin-bottom: 22px; align-items: center; }
  .page-head h1 { font-size: 26px; }
  .page-head .sub { margin-top: 8px; font-size: 14.5px; padding: 6px 12px; }
  .sub-deco { display: none; }
  .kpis, .kpis.k3, .kpis.k2 { grid-template-columns: 1fr; gap: 12px; }
  .kpi { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; }
  .kpi .chip { margin-bottom: 0; width: 44px; height: 44px; flex-shrink: 0; }
  .kpi .kpi-txt { display: flex; flex-direction: column-reverse; min-width: 0; }
  .kpi .label { margin-top: 0; font-size: 14px; }
  .kpi .value { font-size: 27px; }
  .kpi .value small { font-size: 16px; }
  .kpi-corner { top: 10px; right: 12px; font-size: 11.5px; }
  .tir-card { flex-direction: column; }
  .grid-2, .grid-2eq, .grid-3 { grid-template-columns: 1fr; }
  .soins-grille, .robots-grid, .connexions { grid-template-columns: 1fr; }
  .block { padding: 18px 16px; }
  .client-side { margin-left: 0; border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 12px; width: 100%; }
  .fichiers-grille { grid-template-columns: 1fr 1fr; }
  .barre-jour .jlarge { width: 100%; }
  .barre-jour:has(.jlarge) { flex-wrap: wrap; }
  .br-mobile { display: inline; }
  .demo-banner { font-size: 12px; gap: 8px; padding: 7px 10px; }
  .demo-banner .db-txt { flex: 0 0 100%; }
  .agenda-outils .sem { min-width: 0; }
  .modal__scroll { padding: 30px 20px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  th, td { padding: 10px 9px; font-size: 13.5px; }
}
@media (min-width: 700px) and (max-width: 1023px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .soins-grille, .robots-grid, .connexions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .tabbar a, .tabbar button { font-size: 10px; }
  .page-head h1 { font-size: 23px; }
}

/* Feuille « plus » du tabbar */
.plus-sheet { position: fixed; inset: 0; z-index: 95; background: rgba(31, 26, 30, .45); display: none; align-items: flex-end; }
.plus-sheet.open { display: flex; }
.plus-sheet .ps { background: var(--card); width: 100%; border-radius: 22px 22px 0 0; padding: 14px 16px calc(90px + env(safe-area-inset-bottom)); }
.plus-sheet .ps a, .plus-sheet .ps button { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 12px; font-weight: 700; font-size: 15.5px; width: 100%; text-align: left; }
.plus-sheet .ps a .ic, .plus-sheet .ps button .ic { width: 20px; height: 20px; color: var(--accent); }
.plus-sheet .ps a:hover, .plus-sheet .ps button:hover { background: var(--cream); }
.plus-sheet .ps .barre { width: 40px; height: 4px; border-radius: 2px; background: var(--border); margin: 0 auto 10px; }

/* Impression (facture) */
@media print { .demo-banner, .sidebar, .tabbar, .topbar, .toasts { display: none !important; } .main { margin: 0; padding: 0; } }

/* ---------- v6 : journée type, visite guidée, logo, cartes ---------- */
.fraicheur.simu { border-color: var(--orange-ink); color: var(--orange-ink); background: var(--orange-soft); font-weight: 700; }
.fraicheur.simu:hover { color: #fff; background: var(--orange-ink); }
.perso-logo { display: flex; align-items: center; gap: 12px; }
.perso-logo-apercu { width: 56px; height: 56px; border-radius: 14px; border: 1.5px dashed var(--border); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--soft); overflow: hidden; flex-shrink: 0; }
.perso-logo-apercu img { width: 100%; height: 100%; object-fit: cover; }
.perso-logo-apercu .ic { width: 22px; height: 22px; }
.tour-fond { position: fixed; inset: 0; z-index: 1100; background: transparent; }
.tour-cadre { position: fixed; z-index: 1101; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(31, 26, 30, .55), 0 0 0 3px var(--accent); pointer-events: none; transition: top .25s, left .25s, width .25s, height .25s; }
.tour-carte { position: fixed; z-index: 1102; width: 360px; max-width: calc(100vw - 24px); background: var(--card); border-radius: 18px; padding: 18px 20px 16px; box-shadow: 0 24px 60px rgba(31, 26, 30, .35); }
.tour-carte .tour-n { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.tour-carte h4 { font-size: 18px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.3px; }
.tour-carte p { font-size: 14.5px; font-weight: 500; line-height: 1.5; color: var(--ink); }
.tour-btns { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.tour-nav { display: flex; gap: 8px; }
.tour-quit { color: var(--muted); font-size: 13.5px; font-weight: 700; padding: 6px 4px; }
.tour-quit:hover { color: var(--accent); }
.tour-fin { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
body.tour-on { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .tour-cadre { transition: none; } }

/* ---------- v9 : mobile soigné (Julien 02/09 : « doit super bien fonctionner sur mobile ») ---------- */
@media (max-width: 1023px) {
  /* bandeau de démo sur une ligne : le texte se raccourcit, les boutons se serrent */
  .demo-banner { flex-wrap: nowrap; gap: 6px; padding: 6px 8px; font-size: 11.5px; justify-content: space-between; }
  .demo-banner .db-txt { flex: 1 1 auto; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .demo-banner .db-txt .db-long { display: none; }
  .demo-banner button, .demo-banner a.db-lien { padding: 5px 8px; font-size: 11px; flex-shrink: 0; }
  .demo-banner button .db-lib, .demo-banner a.db-lien .db-lib { display: none; }
  /* la cloche vit en haut à droite de l'en-tête, les boutons d'action dessous */
  .page-head { position: relative; padding-right: 54px; }
  .page-head .notif-wrap { position: absolute; top: 0; right: 0; }
  .page-head .head-tools { width: 100%; }
  .page-head .head-tools > .btn, .page-head .head-tools > .seg, .page-head .head-tools > .agenda-outils, .page-head .head-tools > .sync-pill { flex: 1 1 auto; }
  .page-head .head-tools > .btn { justify-content: center; }
  .page-head .sub .fraicheur { font-size: 11.5px; padding: 2px 8px; }
  /* cartes KPI : pastille d'angle et horloge restent en haut à droite */
  .kpi { padding-right: 16px; }
  .kpi .kpi-corner, .kpi .hz-pill.kpi-coin { position: absolute; top: 10px; right: 12px; margin: 0; }
  .kpi:has(.kpi-corner) .kpi-txt, .kpi:has(.hz-pill.kpi-coin) .kpi-txt { padding-right: 96px; }
  .kpi .label { font-size: 13.5px; line-height: 1.3; }
  .tir-card { padding: 22px 18px 18px; }
  .tir-card .hz-pill.kpi-coin { position: static; margin-top: 8px; }
  /* colonnes secondaires masquées : le tableau tient dans l'écran */
  .cache-mob { display: none !important; }
  td, th { padding: 10px 8px; }
  .av-cell .avatar-ini { width: 30px; height: 30px; flex-basis: 30px; font-size: 12px; }
  /* agenda en vue jour */
  .agenda { min-width: 0; grid-template-columns: 44px 1fr; padding: 14px 10px 16px; }
  .agenda .jour-tete { font-size: 15px; }
  .bloc-rdv { font-size: 12.5px; padding-right: 26px; }
  .bloc-rdv b { font-size: 13.5px; }
  .agenda-outils { justify-content: space-between; width: 100%; }
  .agenda-outils .sem { flex: 1; }
  .agenda-outils .btn { width: 100%; justify-content: center; margin-top: 4px; }
  .legende-cat { gap: 6px 12px; font-size: 12px; }
  .chips-filtres { gap: 8px; }
  .chip-f { padding: 6px 11px; font-size: 13px; }
  .recap-badges .badge { font-size: 12.5px; padding: 6px 10px; }
  .block-head h2 { font-size: 17px; }
  .robots-grid, .connexions { gap: 12px; }
}
.mob-seul { display: none; }
@media (max-width: 1023px) { .mob-seul { display: inline; color: var(--muted); font-weight: 600; } }
@media (max-width: 1023px) {
  .kpi:has(.hz-pill.kpi-coin) .kpi-txt { padding-right: 118px; }
  td .badge { white-space: normal; line-height: 1.3; text-align: left; }
  .mob-seul { display: block; max-width: 190px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  td .btn.small { padding: 7px 10px; font-size: 12.5px; }
  .table-wrap table { width: 100%; }
}

/* ---------- Illustrations GetIllustrations (Hero Chapter 2), recolorées par l'accent ---------- */
.illus { display: block; color: var(--accent); line-height: 0; }
.illus svg { width: 100%; height: auto; display: block; }
.illus.illus-modale { width: 150px; margin: -10px auto 4px; }
.illus.illus-tour { width: 120px; margin: 0 auto 6px; }
.vide-illus { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0 4px; }
.vide-illus .illus { width: 170px; }
.vide-illus .vide { padding-top: 4px; }
@media (max-width: 380px) {
  .mob-seul { max-width: 118px; }
  td .btn.small { padding: 6px 8px; font-size: 12px; }
  td, th { padding: 9px 6px; }
  .av-cell { gap: 8px; }
}
@media (max-width: 1023px) {
  .kpis > * { min-width: 0; }
  .kpi .kpi-txt { min-width: 0; overflow-wrap: anywhere; }
  .kpi .value { flex-wrap: wrap; }
}
