/* Café Maasai - design system de marque (Le Maasaï). Vert profond + or + creme chaud.
   Montserrat (display) + PT Sans (corps/UI). Jamais dark global, jamais AI-purple, jamais emoji.
   Charte mesuree : docs/refonte/2026-06-18-charte-et-design-system.md */
:root {
  /* couleurs de marque */
  --vert-900: #013A2F; --vert-800: #024A3D; --vert-700: #005C53; --vert-600: #0A6A5E;
  --emeraude: #289D72;
  --or: #F8A000; --or-d: #D98A00; --or-soft: #FFE9BF;
  --bg: #FBF6EC; --surface: #FFFFFF; --surface-2: #FFFCF7; --creme: #FFF6E9;
  --ink: #1C2B27; --corps: #44615E; --muted: #7C8C86;
  --line: #E9E4D6; --line-2: #F0EBDE;
  --rouge: #C8102E; --rouge-d: #A50C24; --rouge-soft: #FBE9E6; --terre: #3E5124;
  /* espacement (4pt) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  /* rayons */
  --r: 16px; --r-lg: 22px; --r-sm: 11px; --r-pill: 999px;
  /* elevation (ombres chaudes teintees vert, 3 niveaux max) */
  --shadow: 0 1px 2px rgba(0,52,44,.05), 0 10px 28px -14px rgba(0,52,44,.18);
  --shadow-lg: 0 2px 6px rgba(0,52,44,.06), 0 28px 60px -24px rgba(0,52,44,.28);
  --ring: 0 0 0 3px rgba(40,157,114,.35);
  --ring-gold: 0 0 0 3px rgba(248,160,0,.5);
  --ease: cubic-bezier(.32,.72,0,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "PT Sans", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--corps);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
.mono, .num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

/* ---------- titres / labels ---------- */
h1, h2, h3 { font-family: Montserrat, "PT Sans", sans-serif; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: 27px; font-weight: 800; line-height: 1.08; }
.eyebrow { display: inline-block; font-family: "PT Sans", sans-serif; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--vert-700); margin-bottom: var(--s2); }
.eyebrow.em { color: var(--emeraude); }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 7px; font-family: "PT Sans", sans-serif;
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--vert-900); background: var(--or); padding: 6px 13px; border-radius: var(--r-pill); }
.section-title { display: flex; align-items: center; gap: var(--s2); font-family: "PT Sans", sans-serif;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
  margin: var(--s6) 0 var(--s3); }
.sub { color: var(--muted); margin-top: 4px; font-size: 15px; }
.ic-svg { flex: none; display: inline-block; vertical-align: middle; }

/* separateur lance (motif de marque, sobre) */
.rule-spear { display: flex; align-items: center; gap: var(--s3); color: var(--emeraude); margin: var(--s5) 0; }
.rule-spear::before, .rule-spear::after { content: ""; height: 1.5px; flex: 1; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(40,157,114,.45)); }
.rule-spear::after { background: linear-gradient(90deg, rgba(40,157,114,.45), transparent); }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 30;
  background: linear-gradient(120deg, var(--vert-900), var(--vert-700) 70%, var(--vert-600));
  box-shadow: 0 8px 24px -18px rgba(0,52,44,.6); }
.topbar .inner { max-width: 1140px; margin: 0 auto; padding: 12px var(--s5);
  display: flex; align-items: center; gap: var(--s5); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { height: 38px; width: auto; }
.brand-tag { font-family: "PT Sans", sans-serif; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: rgba(255,255,255,.62); padding-left: 11px; border-left: 1px solid rgba(255,255,255,.22); }
.nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav a { padding: 8px 14px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 700;
  color: rgba(255,255,255,.78); transition: color .2s var(--ease), background .2s var(--ease); white-space: nowrap; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav a.active { color: var(--vert-900); background: var(--or); }
.topbar a:focus-visible { box-shadow: var(--ring-gold); }

/* ---- Menu mobile : bouton hamburger + tiroir (caches en desktop) ---- */
.nav-toggle { display: none; }
.nav-toggle:focus-visible { box-shadow: var(--ring-gold); outline: none; }
.nav-toggle-bars { position: relative; display: block; width: 19px; height: 13px; }
.nav-toggle-bars span { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: #fff; transition: transform .26s var(--ease), opacity .18s var(--ease); }
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5.5px; }
.nav-toggle-bars span:nth-child(3) { top: 11px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.drawer, .drawer-backdrop { display: none; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(1,30,24,.5);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); }
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 41; width: min(82vw, 320px);
  flex-direction: column; gap: var(--s5);
  background: linear-gradient(165deg, var(--vert-900), var(--vert-800) 72%);
  box-shadow: var(--shadow-lg); overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: max(env(safe-area-inset-top), var(--s5)) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom));
  visibility: hidden; transform: translateX(-100%);
  transition: transform .32s var(--ease), visibility 0s linear .32s; }
.drawer.show { visibility: visible; transform: translateX(0);
  transition: transform .32s var(--ease), visibility 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-logo { height: 42px; width: auto; }
.drawer-close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: var(--r-sm); color: rgba(255,255,255,.85); background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16); cursor: pointer; transition: background .2s var(--ease); }
.drawer-close:hover { background: rgba(255,255,255,.16); }
.drawer-close:active { transform: scale(.94); }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a { display: flex; align-items: center; padding: 14px 16px; border-radius: var(--r-sm);
  font-family: "PT Sans", sans-serif; font-size: 16px; font-weight: 700; color: rgba(255,255,255,.82);
  transition: background .2s var(--ease), color .2s var(--ease); }
.drawer-nav a:not(.active):hover { color: #fff; background: rgba(255,255,255,.1); }
.drawer-nav a:active { transform: scale(.985); }
.drawer-nav a.active { color: var(--vert-900); background: var(--or); }
.drawer a:focus-visible, .drawer button:focus-visible { box-shadow: var(--ring-gold); outline: none; }

.wrap { max-width: 1140px; margin: 0 auto; padding: var(--s6) var(--s5) 96px; }
.page-head { margin-bottom: var(--s5); }

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: none;
  border-radius: var(--r-pill); padding: 11px 18px; font-size: 14.5px; font-weight: 700; font-family: "PT Sans", sans-serif;
  background: var(--vert-700); color: #fff; transition: transform .16s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: 0 8px 18px -10px rgba(0,92,83,.7); }
.btn:hover { background: var(--vert-600); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn.gold { background: var(--or); color: var(--vert-900); box-shadow: 0 9px 20px -10px rgba(248,160,0,.75); }
.btn.gold:hover { background: var(--or-d); }
.btn.ghost { background: var(--surface); color: var(--vert-700); box-shadow: none; border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--creme); border-color: var(--emeraude); }
.btn.sm { padding: 8px 14px; font-size: 13.5px; }
.btn.xs { padding: 6px 12px; font-size: 12.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .ic-svg { margin: -2px 0; }
/* chevron CSS (zero glyphe) */
.btn-ic, .btn .ic { width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s var(--ease); display: inline-block; margin-left: 2px; }
.btn:hover .btn-ic, .btn:hover .ic { transform: rotate(45deg) translate(1px, -1px); }

/* ---------- surfaces / cartes ---------- */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line-2); }
.shell { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.core { background: var(--surface); border-radius: var(--r-lg); }
.pad { padding: var(--s5); }

/* ---------- accueil cockpit ---------- */
.welcome { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s5);
  padding: var(--s5); border-radius: var(--r-lg); color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--vert-900), var(--vert-700) 78%, var(--vert-600)); box-shadow: var(--shadow); }
.welcome::after { content: ""; position: absolute; right: -30px; bottom: -50px; width: 230px; height: 230px;
  background: url("../img/logo-maasai-couleur.png") center/contain no-repeat; opacity: .07;
  filter: brightness(0) invert(1); pointer-events: none; }
.welcome .w-txt { position: relative; }
.welcome h1 { color: #fff; }
.welcome .w-sub { color: rgba(255,255,255,.82); margin-top: 4px; }
.welcome .w-date { margin-left: auto; position: relative; text-align: right; color: rgba(255,255,255,.8);
  font-weight: 700; font-family: Montserrat, sans-serif; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.kpi { padding: var(--s5) var(--s5) 18px; position: relative; overflow: hidden; }
.kpi .ic-pill { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center;
  justify-content: center; background: rgba(40,157,114,.12); color: var(--vert-700); margin-bottom: 14px; }
.kpi .val { font-family: Montserrat, sans-serif; font-size: 38px; font-weight: 800; letter-spacing: -.02em;
  line-height: 1.04; color: var(--vert-700); font-variant-numeric: tabular-nums; }
.kpi .val .u { font-size: 17px; font-weight: 700; color: var(--muted); margin-left: 4px; }
.kpi .lbl { font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.kpi.gold { border-top: 3px solid var(--or); }
.kpi.gold .ic-pill { background: var(--or-soft); color: var(--or-d); }
.kpi.gold .val { color: var(--vert-800); }
.kpi.alert .ic-pill { background: var(--rouge-soft); color: var(--rouge); }
.kpi.alert .val { color: var(--rouge-d); }
a.kpi { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
a.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ---------- bloc controle "si je m'absente" ---------- */
.controle { margin-top: var(--s4); padding: 18px 20px; display: flex; gap: var(--s4); align-items: flex-start;
  border-left: 3px solid var(--vert-700); background: var(--surface-2); }
.controle .pill { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border-radius: var(--r-pill); font-size: 12px; font-weight: 700; background: rgba(40,157,114,.14); color: var(--vert-700); }
.controle .pill.warn { background: var(--rouge-soft); color: var(--rouge); }
.controle p { font-size: 14px; color: var(--ink); }
.controle p .m { color: var(--muted); }
.controle p strong { color: var(--vert-800); }

/* ---------- tuiles modules ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); margin-top: var(--s3); }
.tile { display: block; padding: 20px; transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile .t-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.tile .t-ic { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center;
  justify-content: center; background: rgba(40,157,114,.12); color: var(--vert-700); }
.tile .badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: var(--r-pill); }
.badge.actif { color: var(--vert-700); background: rgba(40,157,114,.14); }
.badge.venir { color: var(--vert-700); background: var(--creme); border: 1px solid var(--line); }
.badge.deja { color: var(--muted); background: var(--line-2); }
.badge .dot { width: 7px; height: 7px; border-radius: var(--r-pill); background: currentColor; }
.tile h3 { font-family: Montserrat, sans-serif; font-size: 17px; font-weight: 700; margin: 14px 0 4px; }
.tile p { font-size: 13.5px; color: var(--muted); }
.tile .stat { margin-top: 12px; font-size: 13.5px; color: var(--vert-700); font-weight: 700; }

/* ---------- alertes ---------- */
.alertes { margin-top: var(--s5); padding: 16px 18px; border-radius: var(--r);
  background: var(--rouge-soft); border-left: 4px solid var(--rouge); }
.alertes h3 { display: flex; align-items: center; gap: 8px; font-family: "PT Sans", sans-serif; font-size: 12.5px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--rouge-d); margin-bottom: 8px; }
.alertes li { list-style: none; font-size: 13.5px; color: var(--ink); padding: 3px 0 3px 18px; position: relative; }
.alertes li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 6px; height: 6px;
  border-radius: var(--r-pill); background: var(--rouge); }
.alertes.ok { background: rgba(40,157,114,.1); border-color: var(--emeraude); }
.alertes.ok h3 { color: var(--vert-700); }
.alertes.ok li::before { background: var(--emeraude); }

/* ---------- Planning : cartes collaborateur ---------- */
.sectionhead { display: flex; align-items: center; gap: var(--s3); margin: var(--s6) 0 var(--s3); }
.sectionhead .sec-ic { width: 32px; height: 32px; border-radius: 10px; display: inline-flex; align-items: center;
  justify-content: center; background: rgba(40,157,114,.12); color: var(--vert-700); }
.sectionhead .sec-ttl { font-family: Montserrat, sans-serif; font-size: 15px; font-weight: 700; color: var(--ink); }
.sectionhead .sec-sub { margin-left: auto; font-size: 12.5px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }

.collab { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s4);
  padding: 16px 18px; border-top: 1px solid var(--line); }
.collab:first-child { border-top: none; }
.collab.has { align-items: start; }
.avatar { flex: none; width: 42px; height: 42px; border-radius: 13px; display: inline-flex; align-items: center;
  justify-content: center; font-family: Montserrat, sans-serif; font-weight: 800; font-size: 14px; color: #fff;
  background: var(--vert-700); letter-spacing: .02em; }
.avatar.cuisine { background: var(--vert-600); }
.who { min-width: 0; }
.who .nm { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); }
.who .po { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.who .rien { font-size: 13px; color: var(--muted); margin-top: 3px; }
.collab .right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.collab-body { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: var(--s4); margin-top: 10px; }
.jp-block { display: flex; flex-direction: column; gap: 7px; }
.jp-lab { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.jp-head { display: flex; align-items: baseline; gap: 8px; }
.jp-count { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 20px; color: var(--vert-700); }
.jp-eur { font-size: 13px; font-weight: 700; color: var(--emeraude); font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 700; background: var(--creme); border: 1px solid var(--line); color: var(--ink); }
.chip.plus { color: var(--vert-700); background: rgba(40,157,114,.12); border-color: transparent; }
.chip.cong { color: var(--or-d); background: var(--or-soft); border-color: transparent; }
.chip.abs { color: var(--rouge); background: var(--rouge-soft); border-color: transparent; }
.chip.cheval { color: var(--rouge); background: var(--rouge-soft); border-color: rgba(200,16,46,.3); }
.chip .x { cursor: pointer; opacity: .55; font-weight: 700; line-height: 1; padding: 0 1px; }
.chip .x:hover { opacity: 1; }
.qbtns { display: flex; gap: 7px; flex-wrap: wrap; }
.qbtn { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-pill);
  padding: 7px 13px; font-size: 13px; font-weight: 700; color: var(--vert-700); min-height: 38px;
  transition: all .16s var(--ease); display: inline-flex; align-items: center; gap: 5px; }
.qbtn:hover { border-color: var(--emeraude); background: var(--creme); }
.qbtn:active { transform: scale(.96); }
.addbtn { border: 1px dashed var(--line); background: transparent; color: var(--muted); border-radius: var(--r-pill);
  padding: 7px 13px; font-size: 13px; font-weight: 700; min-height: 38px; display: inline-flex; align-items: center; gap: 6px;
  transition: all .16s var(--ease); }
.addbtn:hover { border-color: var(--emeraude); color: var(--vert-700); border-style: solid; }
.collab.flash { animation: flash 1.1s var(--ease); }

/* pied de planning : total a verser */
.planning-foot { margin-top: var(--s5); display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap;
  padding: 18px 22px; border-radius: var(--r-lg); border-left: 4px solid var(--or); }
.planning-foot .pf-lab { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.planning-foot .pf-val { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 30px; color: var(--vert-700);
  font-variant-numeric: tabular-nums; line-height: 1.05; }
.planning-foot .pf-j { font-size: 14px; color: var(--corps); font-weight: 700; }
.planning-foot .grow { flex: 1; }

/* ---------- appro ---------- */
.bon { margin-top: var(--s4); overflow: hidden; }
.bon-head { display: flex; align-items: center; gap: var(--s3); padding: 14px 16px; }
.cat-pill { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center;
  justify-content: center; background: rgba(40,157,114,.12); color: var(--vert-700); flex: none; }
.bon-head .fnom { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 15.5px; color: var(--ink); }
.bon-head .fcat { font-size: 12.5px; color: var(--muted); }
.bon-head .ftot { margin-left: auto; font-family: Montserrat, sans-serif; font-weight: 800; color: var(--vert-700);
  font-variant-numeric: tabular-nums; }
.bon-lines { border-top: 1px solid var(--line); }
.bl { display: grid; grid-template-columns: 1.6fr auto auto; gap: var(--s3); align-items: center;
  padding: 11px 16px; border-top: 1px solid var(--line-2); }
.bl:first-child { border-top: none; }
.bl .pn { font-weight: 700; color: var(--ink); }
.bl .u { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.bl .mt { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 84px; text-align: right; color: var(--corps); }
.bl.off .pn, .bl.off .mt { text-decoration: line-through; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--surface); overflow: hidden; }
.stepper button { width: 38px; height: 38px; border: none; background: transparent; color: var(--vert-700);
  display: inline-flex; align-items: center; justify-content: center; }
.stepper button:hover { background: var(--creme); }
.stepper button:active { background: rgba(40,157,114,.14); }
.stepper input { width: 50px; border: none; text-align: center; font: inherit; font-weight: 700; font-size: 15px;
  background: transparent; color: var(--ink); -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.bigtot { display: flex; align-items: center; gap: var(--s3); padding: 18px 22px; margin-top: var(--s4);
  border-left: 4px solid var(--or); }
.bigtot .v { font-family: Montserrat, sans-serif; font-size: 30px; font-weight: 800; color: var(--vert-700);
  font-variant-numeric: tabular-nums; }
.bigtot .l { color: var(--muted); font-size: 14px; font-weight: 700; }

/* ---------- toolbar / selects / barre de base ---------- */
.toolbar { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin: 4px 0; }
.toolbar .grow { flex: 1; }
.selectish { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  background: var(--surface); border-radius: var(--r-pill); padding: 8px 15px; font-weight: 700; font-size: 14px; color: var(--vert-700); }
.selectish input { border: none; background: transparent; font: inherit; color: var(--ink); }
.basebar { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; background: var(--creme);
  border: 1px solid var(--line); border-radius: var(--r); padding: 11px 16px; margin: var(--s4) 0 4px; }
.basebar:empty { display: none; }
.bb-txt { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.bb-txt strong { color: var(--vert-800); font-weight: 700; }
.basebar .btn.xs { margin-left: auto; }

/* ---------- modale ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; background: rgba(1,40,33,.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease); }
.overlay.show { opacity: 1; pointer-events: auto; }
.modal { width: 100%; max-width: 460px; background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 26px; transform: translateY(10px) scale(.99); transition: transform .3s var(--ease); }
.overlay.show .modal { transform: none; }
.modal h3 { font-family: Montserrat, sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.modal .sub { margin-bottom: 16px; }
.modal .actions { display: flex; gap: 10px; margin-top: var(--s2); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--vert-700); }
.field input, .field select, .field textarea { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 13px;
  font: inherit; background: var(--surface-2); color: var(--ink); transition: border .16s var(--ease), box-shadow .16s var(--ease); }
.field textarea { width: 100%; resize: vertical; min-height: 64px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--emeraude); box-shadow: var(--ring); }
.field.error input, .field.error select, .field.error textarea { border-color: var(--rouge); }
.field .field-err { font-size: 12px; color: var(--rouge); font-weight: 700; }
.preview { background: var(--creme); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px;
  font-size: 13px; white-space: pre-wrap; max-height: 230px; overflow: auto; color: var(--ink); }
.motifs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 9px; }
.motif-chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--r-pill);
  padding: 7px 13px; font-size: 13px; font-weight: 700; transition: all .16s var(--ease); }
.motif-chip:hover { border-color: var(--emeraude); color: var(--vert-700); }
.motif-chip.on { background: var(--vert-700); color: #fff; border-color: transparent; }

/* menu d'ajout (Planning) */
.menu-list { display: flex; flex-direction: column; gap: 8px; }
.menu-it { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); color: var(--ink);
  transition: all .16s var(--ease); }
.menu-it:hover { border-color: var(--emeraude); background: var(--creme); }
.menu-it .ic-svg { color: var(--vert-700); flex: none; }
.menu-it span { display: flex; flex-direction: column; }
.menu-it strong { font-weight: 700; font-size: 14.5px; }
.menu-it em { font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 1px; }

/* ---------- login (hero premium) ---------- */
.login { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow: hidden;
  background: radial-gradient(120% 100% at 80% 0%, var(--vert-600), var(--vert-900) 70%); }
.login-deco { position: absolute; right: -60px; bottom: -80px; width: 360px; height: 360px;
  background: url("../img/logo-maasai-couleur.png") center/contain no-repeat; opacity: .08;
  filter: brightness(0) invert(1); pointer-events: none; }
.login .box { position: relative; width: 100%; max-width: 380px; text-align: center; }
.login-logo { height: 60px; width: auto; margin: 0 auto 18px; }
.login .eyebrow-pill { margin-bottom: 16px; }
.login-title { font-family: Montserrat, sans-serif; font-size: 30px; font-weight: 800; color: #fff; }
.login-sub { color: rgba(255,255,255,.78); margin: 4px 0 22px; }
.login-card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 24px; text-align: left; border-top: 3px solid var(--or); }
.login-card .field { margin-bottom: 16px; }
.login-card input:focus { box-shadow: var(--ring); }
.login .err { color: var(--rouge); font-size: 13.5px; margin-top: 10px; min-height: 18px; text-align: center; font-weight: 700; }
.login *:focus-visible { box-shadow: var(--ring-gold); }

/* ---------- saisie equipe (page publique autonome) ---------- */
.topbar .tb-label { margin-left: auto; color: rgba(255,255,255,.8); font-size: 13px; font-weight: 700; }
.saisir-page .wrap { max-width: 640px; padding-bottom: 130px; }
.saisir-page .bl { grid-template-columns: 1fr auto; padding: 16px; }
.saisir-page .stepper button { width: 46px; height: 46px; }
.saisir-page .stepper input { width: 58px; font-size: 17px; }
.saisir-page .pn { font-size: 15.5px; }
.saisir-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 14px 20px;
  background: rgba(251,246,236,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.saisir-bar .inner { max-width: 640px; margin: 0 auto; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 90; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 700; box-shadow: var(--shadow-lg); animation: toastin .4s var(--ease); }
.toast.ok { background: var(--vert-700); }
.toast.err { background: var(--rouge); }

/* ---------- etats vide / skeleton ---------- */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .ic-pill { width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center;
  justify-content: center; background: rgba(40,157,114,.1); color: var(--emeraude); margin-bottom: 14px; }
.empty .big { font-family: Montserrat, sans-serif; font-size: 16px; color: var(--ink); font-weight: 700; margin-bottom: 4px; }
.skel { background: linear-gradient(90deg, var(--line-2), var(--creme), var(--line-2)); background-size: 200% 100%;
  animation: shimmer 1.3s infinite; border-radius: 10px; height: 16px; }

/* ---------- animations ---------- */
@keyframes toastin { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes flash { 0% { background: rgba(248,160,0,.16); } 100% { background: transparent; } }
.fade-up { animation: fadeup .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes fadeup { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .welcome { flex-direction: column; align-items: flex-start; }
  .welcome .w-date { margin-left: 0; text-align: left; }
}
@media (max-width: 720px) {
  .wrap { padding: var(--s5) var(--s4) 110px; }
  .topbar .inner { gap: var(--s3); }
  .nav { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 44px; height: 44px; border-radius: var(--r-sm); cursor: pointer;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
    transition: background .2s var(--ease), transform .1s var(--ease); }
  .nav-toggle:hover { background: rgba(255,255,255,.16); }
  .nav-toggle:active { transform: scale(.94); }
  .brand { margin-right: auto; }
  .drawer { display: flex; }
  .drawer-backdrop { display: block; }
  h1 { font-size: 23px; }
  .kpi .val { font-size: 32px; }
  .collab { grid-template-columns: auto 1fr; }
  .collab .right { grid-column: 1 / 3; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
  .collab-body { grid-column: 1 / 3; }
  .bl { grid-template-columns: 1fr auto; row-gap: 8px; }
  .bl .mt { grid-column: 2; }
  .planning-foot { position: sticky; bottom: 0; z-index: 20; margin-left: calc(var(--s4) * -1); margin-right: calc(var(--s4) * -1);
    border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -10px 30px -18px rgba(0,52,44,.4); }
}
@media (max-width: 420px) {
  .kpis { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .planning-foot .pf-val { font-size: 26px; }
}
@media (max-width: 360px) {
  .topbar .inner { padding: 10px var(--s4); gap: var(--s3); }
  .qbtn, .addbtn { padding: 7px 11px; }
}
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- Apercu telephone (validations type Telegram, demo sans token) ---------- */
.phone-card { padding: 0; overflow: hidden; margin-top: var(--s4); }
.phone-head { display: flex; align-items: center; gap: var(--s3); padding: 14px 18px;
  background: linear-gradient(120deg, var(--vert-900), var(--vert-700)); color: #fff; }
.phone-head .ph-ic { width: 34px; height: 34px; border-radius: 11px; flex: none; display: inline-flex;
  align-items: center; justify-content: center; background: rgba(255,255,255,.14); }
.phone-head .ph-t { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 15px; }
.phone-head .ph-s { font-size: 12px; color: rgba(255,255,255,.78); }
.phone-head .ph-badge { margin-left: auto; font-size: 11px; font-weight: 700; background: var(--or);
  color: var(--vert-900); padding: 5px 11px; border-radius: var(--r-pill); text-align: right; }
.tg-list { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; background: var(--surface-2); }
.tg-msg { background: var(--surface); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px;
  padding: 13px 15px; box-shadow: var(--shadow); max-width: 580px; }
.tg-msg .tg-mod { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--vert-700); margin-bottom: 6px; }
.tg-msg .tg-txt { font-size: 14px; color: var(--ink); line-height: 1.5; }
.tg-acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tg-act { flex: 1; min-width: 130px; border: none; border-radius: 12px; padding: 10px 14px; font-weight: 700;
  font-size: 13.5px; font-family: "PT Sans", sans-serif; transition: transform .16s var(--ease), background .2s var(--ease); }
.tg-act:active { transform: scale(.97); }
.tg-act.yes { background: var(--vert-700); color: #fff; }
.tg-act.yes:hover { background: var(--vert-600); }
.tg-act.no { background: var(--creme); color: var(--vert-700); border: 1px solid var(--line); }
.tg-act.no:hover { background: var(--or-soft); }
.tg-done { font-size: 13px; font-weight: 700; color: var(--emeraude); margin-top: 10px;
  display: flex; align-items: center; gap: 6px; }
.tg-empty { padding: 28px 18px; text-align: center; color: var(--muted); background: var(--surface-2); }
.tg-empty .big { font-family: Montserrat, sans-serif; color: var(--ink); font-weight: 700; margin-bottom: 3px; }

/* ---------- suivi technique ---------- */
.tech-filters { display: flex; gap: 7px; flex-wrap: wrap; margin: var(--s4) 0 var(--s2); }
.ti { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s4); align-items: center;
  padding: 14px 18px; border-top: 1px solid var(--line); }
.ti:first-child { border-top: none; }
.st-dot { width: 12px; height: 12px; border-radius: var(--r-pill); flex: none; box-shadow: 0 0 0 4px rgba(0,52,44,.04); }
.st-dot.a_faire { background: var(--muted); }
.st-dot.en_cours { background: var(--vert-600); }
.st-dot.fait { background: var(--emeraude); }
.st-dot.retard { background: var(--rouge); }
.ti .ti-main { min-width: 0; }
.ti .ti-titre { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 15px; color: var(--ink); }
.ti .ti-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.ti .ti-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.prio { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 4px 9px; border-radius: var(--r-pill); }
.prio.urgent { color: var(--rouge); background: var(--rouge-soft); }
.prio.pas_urgent { color: var(--muted); background: var(--line-2); }
.ti.is-retard { background: rgba(200,16,46,.035); }
.statut-sel { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-pill);
  padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 700; color: var(--vert-700); min-height: 38px; }
.statut-sel:focus { outline: none; border-color: var(--emeraude); box-shadow: var(--ring); }
.retard-flag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700;
  color: var(--rouge); background: var(--rouge-soft); padding: 4px 9px; border-radius: var(--r-pill); }

/* ---------- privatisation B2B ---------- */
.dem { margin-top: var(--s4); padding: 0; overflow: hidden; }
.dem-head { display: flex; align-items: center; gap: var(--s3); padding: 16px 18px; cursor: pointer; }
.dem-head .d-ic { width: 40px; height: 40px; border-radius: 12px; flex: none; display: inline-flex;
  align-items: center; justify-content: center; background: rgba(40,157,114,.12); color: var(--vert-700); }
.dem-head .d-nom { font-family: Montserrat, sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); }
.dem-head .d-meta { font-size: 12.5px; color: var(--muted); }
.dem-head .d-stat { margin-left: auto; }
.dstat { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: 5px 11px; border-radius: var(--r-pill); white-space: nowrap; }
.dstat.nouvelle { color: var(--or-d); background: var(--or-soft); }
.dstat.devis_pret { color: var(--vert-700); background: rgba(40,157,114,.14); }
.dstat.devis_envoye { color: #fff; background: var(--vert-700); }
.dstat.acceptee { color: #fff; background: var(--emeraude); }
.dstat.refusee { color: var(--muted); background: var(--line-2); }
.dem-body { border-top: 1px solid var(--line); padding: 16px 18px; display: none; }
.dem.open .dem-body { display: block; }
.dem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3) var(--s4); margin-bottom: var(--s4); }
.dem-grid .l { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.dem-grid .v { font-family: Montserrat, sans-serif; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.dem-montant { display: flex; align-items: baseline; gap: 10px; margin: var(--s2) 0 var(--s3); }
.dem-montant .m { font-family: Montserrat, sans-serif; font-weight: 800; font-size: 26px; color: var(--vert-700);
  font-variant-numeric: tabular-nums; }
.dem-montant .a { font-size: 13px; color: var(--corps); font-weight: 700; }
.dem-devis textarea { width: 100%; min-height: 160px; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px; font: inherit; font-size: 13.5px; background: var(--surface-2); color: var(--ink);
  resize: vertical; line-height: 1.55; }
.dem-devis textarea:focus { outline: none; border-color: var(--emeraude); box-shadow: var(--ring); }
.dem-actions { display: flex; gap: 10px; margin-top: var(--s3); flex-wrap: wrap; }
@media (max-width: 720px) {
  .ti { grid-template-columns: auto 1fr; }
  .ti .ti-right { grid-column: 1 / 3; justify-content: flex-start; }
  .dem-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Reglages (admin) : reutilise les tokens de charte (vert/or/creme, Montserrat) ---- */
.adm-sec{margin-bottom:var(--s5)}
.adm-head{display:flex;gap:var(--s3);align-items:flex-start;margin-bottom:var(--s4)}
.adm-ic{display:grid;place-items:center;width:38px;height:38px;border-radius:var(--r-sm);background:var(--creme);color:var(--vert-700);flex:0 0 auto;border:1px solid var(--line)}
.adm-titre{font-family:Montserrat,sans-serif;font-weight:800;color:var(--ink);font-size:1.05rem;line-height:1.15}
.adm-sub{color:var(--corps);font-size:.9rem;margin-top:2px;max-width:62ch}
.adm-grid2{display:grid;grid-template-columns:1fr 1fr;gap:var(--s3) var(--s4)}
.adm-actions{display:flex;align-items:center;gap:var(--s3);margin-top:var(--s4);flex-wrap:wrap}
.adm-badge{font-size:.8rem;font-weight:700;padding:5px 12px;border-radius:var(--r-pill);border:1px solid var(--line);white-space:nowrap}
.adm-badge.ok{background:rgba(40,157,114,.12);color:var(--terre);border-color:rgba(40,157,114,.3)}
.adm-badge.wait{background:var(--or-soft);color:var(--or-d);border-color:rgba(248,160,0,.35)}
.adm-four-list{display:flex;flex-direction:column;gap:var(--s3)}
.adm-four{border:1px solid var(--line);border-radius:var(--r-sm);padding:var(--s4);background:var(--surface-2)}
.adm-four-grid{display:grid;grid-template-columns:1.2fr 1.6fr 1fr .8fr;gap:var(--s3)}
.adm-four-foot{display:flex;align-items:center;gap:var(--s2);margin-top:var(--s3)}
.adm-tag{font-size:.78rem;color:var(--muted);background:var(--creme);padding:3px 10px;border-radius:var(--r-pill);border:1px solid var(--line)}
.adm-add{margin-top:var(--s4)}
.adm-empty{color:var(--muted);padding:var(--s4);text-align:center;border:1px dashed var(--line);border-radius:var(--r-sm)}
.adm-note{color:var(--corps);font-size:.9rem;margin:var(--s3) 0;max-width:64ch}
.adm-tg-line{display:flex;gap:var(--s2);flex-wrap:wrap}
.adm-pairing{margin-top:var(--s3);padding:var(--s3) var(--s4);border-radius:var(--r-sm);background:var(--or-soft);color:var(--or-d);font-size:.9rem;display:flex;align-items:center;gap:var(--s3);flex-wrap:wrap}
.btn.danger{color:var(--rouge)}
@media(max-width:680px){.adm-grid2{grid-template-columns:1fr}.adm-four-grid{grid-template-columns:1fr 1fr}}

/* Page Equipe (salaries.js) */
.grow{flex:1}
.adm-sal-head{display:flex;align-items:center;gap:var(--s3);margin-bottom:var(--s3)}
.adm-sal-lien{display:flex;align-items:center;gap:var(--s2);flex-wrap:wrap}
.adm-sal-lien .field-lien{flex:1;min-width:160px;padding:.4rem .6rem;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface-2)}
.adm-inactif{opacity:.62}
@media(max-width:680px){.adm-sal-lien .field-lien{min-width:100%}}

/* ===== Appro refonte : accordeon par fournisseur, cartes equipe, modale mail (27/06) ===== */
.acc{padding:0;overflow:hidden;margin-bottom:12px}
.acc-head{display:flex;align-items:center;gap:14px;width:100%;background:none;border:0;cursor:pointer;
  padding:16px 18px;text-align:left;font:inherit;color:var(--ink)}
.acc-head:hover{background:var(--surface-2)}
.acc-titles{min-width:0;flex:1}
.acc-titles .fnom{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.acc-tot{font-weight:800;color:var(--vert-900);white-space:nowrap}
.acc-chevron{color:var(--muted);transition:transform .22s var(--ease);flex:0 0 auto}
.acc.open .acc-chevron{transform:rotate(90deg)}
.acc-body{border-top:1px solid var(--line-2);padding:6px 18px 16px}
.acc-note{color:var(--muted);font-size:14px;padding:14px 2px}
.acc-warn{display:flex;align-items:center;gap:8px;background:var(--rouge-soft);color:var(--rouge-d);
  border-radius:var(--r-sm);padding:9px 12px;font-size:13.5px;font-weight:600;margin:10px 0}
.acc-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px}
.pill.ok{background:rgba(10,106,94,.12);color:var(--vert-700)}
.fcard{padding:16px 18px;margin-bottom:12px}
.fcard-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.fcard .fnom{font-weight:800;color:var(--vert-900)}
.bic{display:inline-flex;vertical-align:middle;margin-right:4px}
.s-back{margin-bottom:12px}
.mail-area{width:100%;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--surface-2);
  padding:12px 14px;font:14px/1.5 "PT Sans",sans-serif;color:var(--ink);resize:vertical;margin:12px 0}
.actions-wrap{flex-wrap:wrap;gap:8px}
.modal-eyebrow{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--or-d);margin-bottom:6px}
.modal-foot-note{margin-top:12px;font-size:13px;color:var(--muted);background:var(--creme);
  border-radius:var(--r-sm);padding:10px 12px;line-height:1.45}
.modal-body h3{margin:0 0 6px}
