/* SJS Missions — style épuré « Apple », charte SAISON JOB SOLUTIONS (sjs-france.com) */
:root {
  color-scheme: light;
  --vert: #13843F;
  --vert-2: #0F6E34;
  --vert-pale: rgba(19, 132, 63, .10);
  --sauge: #13843F;
  --or: #C8A96E;
  --or-fonce: #8A6D35;
  --or-clair: #F1E6CF;
  --creme: #F4F1EA;
  --sable: #EDE8DD;
  --papier: #FFFFFF;
  --encre: #1D1D1F;
  --gris: #6E6E73;
  --gris-2: #86868B;
  --trait: rgba(0, 0, 0, .08);
  --champ: rgba(0, 0, 0, .14);
  --danger: #C4361C;
  --st-soumise: #B07D1E;
  --st-info_demandee: #2F6FB0;
  --st-refus_motive: #C2581F;
  --st-reponse_client: #12807A;
  --st-acceptee: #13843F;
  --st-refusee: #A8322A;
  --st-annulee: #8E8E93;
  --st-chiffrage: #7A5AC2;
  --st-prix_propose: #B07D1E;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: var(--display);
  --r: 14px;
  --r-s: 10px;
  --ombre: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px rgba(0, 0, 0, .04);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--creme);
  color: var(--encre);
  font: 400 17px/1.47 var(--sans);
  letter-spacing: -.012em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; }
a { color: var(--vert); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--encre); margin: 0; }
h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.025em; }
h2 { font-size: 21px; line-height: 1.2; letter-spacing: -.018em; font-weight: 650; }
h3 { font-size: 17px; line-height: 1.3; letter-spacing: -.012em; font-weight: 600; }
p { margin: 0 0 12px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--papier); padding: 8px 12px; z-index: 100; border-radius: var(--r-s); }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(19, 132, 63, .45); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--gris); }
.small { font-size: 15px; }
.nowrap { white-space: nowrap; }

/* ---------- Barre du haut : matériau translucide ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(244, 241, 234, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 -.5px 0 rgba(0, 0, 0, .12);
  color: var(--encre);
  padding: calc(6px + var(--safe-t)) 10px 6px 14px;
  min-height: 52px;
}
.brand { display: flex; align-items: center; gap: 9px; color: var(--encre); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand span { font: 600 17px/1 var(--display); letter-spacing: -.02em; }
.topnav { display: flex; align-items: center; gap: 4px; }
.iconbtn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--encre);
  transition: background-color .2s;
}
.iconbtn:hover { background: rgba(0, 0, 0, .05); }
.iconbtn svg { width: 23px; height: 23px; fill: currentColor; }
.badge {
  position: absolute;
  top: 6px;
  right: 5px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--danger);
  color: #fff;
  font: 600 11.5px/18px var(--sans);
  letter-spacing: 0;
  text-align: center;
  box-shadow: 0 0 0 2px var(--creme);
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--vert);
  color: #fff;
  font: 600 13.5px/1 var(--sans);
  letter-spacing: 0;
  text-decoration: none;
}

/* ---------- Mise en page ---------- */
main, main:focus, main:focus-visible { outline: none; }
.page { max-width: 720px; margin: 0 auto; padding: 24px 18px calc(160px + var(--safe-b)); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head p { margin: 6px 0 0; color: var(--gris); }
.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: -6px 0 12px -8px;
  padding: 6px 8px;
  border-radius: 980px;
  color: var(--vert);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}
.back:hover { background: var(--vert-pale); }
.back svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Boutons : pilules ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border: 0;
  border-radius: 980px;
  font: 600 17px/1.1 var(--sans);
  letter-spacing: -.015em;
  text-decoration: none;
  cursor: pointer;
  background: var(--vert);
  color: #fff;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color .2s, transform .12s ease-out, opacity .2s;
}
.btn:hover { background: var(--vert-2); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.dark { background: var(--encre); color: #fff; }
.btn.dark:hover { background: #000; }
.btn.ghost { background: rgba(0, 0, 0, .06); color: var(--vert); box-shadow: none; }
.btn.ghost:hover { background: rgba(0, 0, 0, .09); }
.btn.danger { background: rgba(196, 54, 28, .09); color: var(--danger); box-shadow: none; }
.btn.danger:hover { background: rgba(196, 54, 28, .14); }
.btn.link { background: none; color: var(--vert); padding: 0 6px; min-height: 40px; font-weight: 500; text-decoration: none; }
.btn.link:hover { background: none; text-decoration: underline; }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 15px; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.fab {
  position: fixed;
  right: 18px;
  bottom: calc(20px + var(--safe-b));
  z-index: 20;
  min-height: 56px;
  padding: 0 24px;
  font-size: 17px;
  box-shadow: 0 8px 24px rgba(19, 132, 63, .32), 0 2px 6px rgba(0, 0, 0, .08);
}
.actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 .5px 0 rgba(0, 0, 0, .12);
  padding: 10px 18px calc(10px + var(--safe-b));
}
.actionbar .inner { max-width: 720px; margin: 0 auto; display: flex; gap: 10px; flex-wrap: wrap; }
.actionbar .btn { flex: 1 1 140px; }

/* ---------- Onglets : pastilles ---------- */
.tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -18px 16px;
  padding: 2px 18px 4px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 980px;
  border: 0;
  background: rgba(0, 0, 0, .05);
  color: var(--encre);
  font: 500 15px/1 var(--sans);
  letter-spacing: -.01em;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.tab:hover { background: rgba(0, 0, 0, .08); }
.tab .n { font-weight: 600; color: var(--gris); font-variant-numeric: tabular-nums; }
.tab[aria-selected="true"] { background: var(--encre); color: #fff; }
.tab[aria-selected="true"] .n { color: rgba(255, 255, 255, .7); }
.tab.alert .n { color: var(--danger); }
.tab.alert[aria-selected="true"] .n { color: #FFB4A6; }
.search { position: relative; margin-bottom: 14px; }
.search input { padding-left: 40px; background: rgba(0, 0, 0, .05); border-color: transparent; }
.search input:focus { background: var(--papier); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: var(--gris-2); }

/* ---------- Liste des demandes ---------- */
.list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--papier);
  border-radius: var(--r);
  box-shadow: var(--ombre);
  overflow: hidden;
}
.list li + li { box-shadow: inset 0 .5px 0 var(--trait); }
.row {
  display: grid;
  grid-template-columns: 4px 1fr auto;
  gap: 0 14px;
  padding: 14px 16px 14px 0;
  color: inherit;
  text-decoration: none;
  transition: background-color .15s;
}
.row:hover { background: rgba(0, 0, 0, .025); }
.row:active { background: rgba(0, 0, 0, .05); }
.row .bar { border-radius: 0 3px 3px 0; background: var(--st, var(--gris)); }
.row .main { min-width: 0; }
.row .client { display: block; font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .when { display: block; color: var(--encre); font-size: 15px; }
.row .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; font-size: 13.5px; color: var(--gris); }
.row .st { color: var(--st); font-weight: 600; }
.row .head-n { text-align: right; align-self: center; }
.row .head-n b { display: block; font: 700 28px/1 var(--display); letter-spacing: -.03em; color: var(--encre); font-variant-numeric: tabular-nums; }
.row .head-n span { font-size: 12.5px; color: var(--gris); }
.row.todo .client::after {
  content: "À traiter";
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 980px;
  background: var(--or-clair);
  color: var(--or-fonce);
  font-size: 12px;
  font-weight: 600;
  vertical-align: 2px;
}
.empty {
  padding: 44px 24px;
  text-align: center;
  background: var(--papier);
  border-radius: var(--r);
  box-shadow: var(--ombre);
}
.empty h2 { margin-bottom: 6px; }
.empty p { color: var(--gris); }
.empty .btn { margin-top: 14px; }

/* ---------- Fiche mission ---------- */
.hero {
  background: var(--papier);
  color: var(--encre);
  margin: -24px -18px 0;
  padding: 20px 18px 24px;
  box-shadow: inset 0 -.5px 0 var(--trait);
}
.hero .ref { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; color: var(--gris); }
.hero h1 { color: var(--encre); font-size: 28px; margin: 10px 0 16px; }
.hero .figures { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.hero .count b { display: block; font: 700 60px/.9 var(--display); letter-spacing: -.04em; color: var(--vert); font-variant-numeric: tabular-nums; }
.hero .count span { font-size: 15px; color: var(--gris); }
.hero .dates { font-size: 17px; line-height: 1.4; padding-bottom: 4px; }
.hero .dates strong { color: var(--encre); font-weight: 600; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 980px;
  font: 600 13px/1 var(--sans);
  letter-spacing: 0;
  background: color-mix(in srgb, var(--st) 13%, #fff);
  color: var(--st);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mapbox, .mapwrap { isolation: isolate; z-index: 0; }
.mapbox { position: relative; margin: 0 -18px; height: 240px; background: var(--sable); }
.mapbox .leaflet-container, .mapwrap .leaflet-container { width: 100%; height: 100%; font: 13px var(--sans); background: var(--sable); }
.maplinks { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 0 4px; }
.block { margin-top: 28px; }
.block > h2 { margin-bottom: 10px; }
.facts { background: var(--papier); border-radius: var(--r); box-shadow: var(--ombre); margin: 0; overflow: hidden; }
.facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; padding: 12px 16px; }
.facts div + div { box-shadow: inset 0 .5px 0 var(--trait); }
.facts dt { color: var(--gris); font-size: 15px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 400px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }
.callout {
  background: var(--papier);
  border-radius: var(--r);
  box-shadow: var(--ombre), inset 3px 0 0 var(--st, var(--or));
  padding: 14px 16px;
  margin-top: 16px;
}
.callout .who { font-size: 14px; color: var(--gris); margin-bottom: 4px; }
.callout p { margin: 0; white-space: pre-line; }

/* Historique */
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: rgba(0, 0, 0, .08); }
.timeline li { position: relative; padding: 0 0 20px 8px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -18px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--papier);
  border: 2.5px solid var(--ev, var(--gris));
}
.timeline .t-head { font-weight: 600; }
.timeline .t-meta { font-size: 13.5px; color: var(--gris); }
.timeline .t-msg { margin-top: 6px; background: var(--papier); border-radius: var(--r-s); box-shadow: var(--ombre); padding: 10px 13px; white-space: pre-line; }
.timeline .t-changes { margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; }
.timeline .t-changes li { padding: 0; }
.timeline .t-changes li::before { display: none; }
.timeline del { color: var(--gris); }

/* ---------- Formulaires ---------- */
form .section { margin-top: 30px; }
form .section:first-of-type { margin-top: 10px; }
form .section > h2 { margin-bottom: 4px; }
form .section > .hint { margin-bottom: 10px; }
.hint { color: var(--gris); font-size: 14.5px; }
.field { margin-top: 16px; }
.field > label, .label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 7px; }
.field .opt { font-weight: 400; color: var(--gris); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=time], input[type=number], input[type=search], select, textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--champ);
  border-radius: 12px;
  background: var(--papier);
  color: var(--encre);
  font: 400 17px/1.35 var(--sans);
  letter-spacing: -.012em;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
input::placeholder, textarea::placeholder { color: var(--gris-2); }
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--gris) 50%), linear-gradient(135deg, var(--gris) 50%, transparent 50%);
  background-position: calc(100% - 19px) 22px, calc(100% - 14px) 22px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
textarea { min-height: 116px; resize: vertical; }
input[type=date], input[type=time] { display: block; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--vert); box-shadow: 0 0 0 4px rgba(19, 132, 63, .16); }
.invalid input, .invalid textarea, .invalid select, input.invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(196, 54, 28, .1); }
.err { color: var(--danger); font-size: 14.5px; margin-top: 6px; }
.ok-text { color: var(--vert); font-size: 14.5px; margin-top: 6px; font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: end; }
@media (max-width: 380px) { .grid2 { grid-template-columns: 1fr; } }
.check { display: flex; align-items: flex-start; gap: 11px; margin-top: 16px; cursor: pointer; font-size: 15.5px; }
.field > label.check { display: flex; font-weight: 400; font-size: 15.5px; margin-bottom: 0; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--vert); flex: none; }
.stepper {
  display: flex;
  align-items: stretch;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .05);
  overflow: hidden;
}
.stepper button {
  width: 56px;
  border: 0;
  background: none;
  color: var(--vert);
  font: 500 26px/1 var(--sans);
  cursor: pointer;
  transition: background-color .15s;
}
.stepper button:hover { background: rgba(0, 0, 0, .04); }
.stepper button:active { background: rgba(0, 0, 0, .08); }
.stepper input {
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  font: 700 24px/1 var(--display);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--encre);
  min-height: 0;
  height: 100%;
  -moz-appearance: textfield;
}
.stepper input:focus { box-shadow: none; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Recherche entreprise */
.results {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  background: var(--papier);
  border-radius: var(--r);
  box-shadow: var(--ombre), 0 0 0 .5px var(--trait);
  max-height: 380px;
  overflow-y: auto;
}
.results .co {
  padding: 10px 16px 6px;
  font-weight: 600;
  background: rgba(250, 249, 246, .92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
}
.results .co small { font-weight: 400; color: var(--gris); }
.results button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 11px 16px;
  cursor: pointer;
  box-shadow: inset 0 .5px 0 var(--trait);
  font: 400 15px/1.4 var(--sans);
  color: var(--encre);
}
.results button:hover, .results button:focus-visible { background: var(--vert-pale); }
.results .s { font-variant-numeric: tabular-nums; font-weight: 500; }
.results .tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 980px; font-size: 12px; font-weight: 500; background: var(--vert-pale); color: var(--vert); }
.results .tag.closed { background: rgba(0, 0, 0, .06); color: var(--gris); }
.results button:disabled { cursor: default; opacity: .5; background: none; }
.results .msg { padding: 13px 16px; color: var(--gris); }
.picked { background: var(--papier); border-radius: var(--r); box-shadow: var(--ombre), inset 3px 0 0 var(--vert); padding: 13px 16px; }
.picked .name { font-weight: 600; }
.picked .s { font-variant-numeric: tabular-nums; }

/* Carte du formulaire */
.mapwrap { position: relative; height: 300px; border-radius: var(--r); overflow: hidden; box-shadow: var(--ombre); margin-top: 10px; }
.maptools { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.layerswitch { position: absolute; z-index: 500; top: 10px; right: 10px; display: flex; gap: 2px; padding: 2px; border-radius: 980px; background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.layerswitch button { border: 0; border-radius: 980px; padding: 7px 12px; font: 600 13px/1 var(--sans); background: transparent; color: var(--encre); cursor: pointer; }
.layerswitch button[aria-pressed="true"] { background: var(--papier); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.coords { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--gris); margin-top: 8px; }
.pin-icon { background: none; border: 0; }

/* ---------- Feuille d'action (bas d'écran) ---------- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, .32);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade .3s var(--ease);
}
.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--creme);
  border-radius: 22px 22px 0 0;
  padding: 22px 18px calc(18px + var(--safe-b));
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .18);
  animation: up .42s var(--ease);
}
@media (min-width: 700px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 22px; animation-name: pop; }
}
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet h2 { margin-bottom: 6px; }
.sheet .actions { display: flex; gap: 10px; margin-top: 20px; }
.sheet .actions .btn { flex: 1; }

/* ---------- Connexion / inscription ---------- */
.auth { max-width: 440px; margin: 0 auto; padding: calc(44px + var(--safe-t)) 20px 48px; }
.auth .logo { text-align: center; margin-bottom: 22px; }
.auth .logo img.emblem { width: 84px; height: auto; border-radius: 19px; box-shadow: 0 6px 20px rgba(19, 132, 63, .25); }
.auth .logo img.word { display: none; }
.auth h1 { text-align: center; font-size: 32px; margin-bottom: 8px; }
.auth .sub { text-align: center; color: var(--gris); margin-bottom: 24px; font-size: 17px; }
.auth form { background: var(--papier); border-radius: 18px; box-shadow: var(--ombre); padding: 6px 20px 22px; }
.auth .btn.block { margin-top: 22px; }
.auth .alt { text-align: center; margin-top: 16px; color: var(--gris); font-size: 15.5px; }
.auth .alt a { text-decoration: none; font-weight: 500; }
.auth .alt a:hover { text-decoration: underline; }
.auth .alt a.btn { color: #fff; text-decoration: none; }
.auth .done { text-align: center; background: var(--papier); border-radius: 18px; box-shadow: var(--ombre); padding: 28px 22px; }
.auth .done .ok-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--vert-pale); color: var(--vert); margin-bottom: 12px; }
.auth .done .ok-icon svg { width: 28px; height: 28px; fill: currentColor; }
.auth .done h2 { margin-bottom: 8px; }
.auth .done p { color: var(--gris); }
.auth .legal { font-size: 13px; color: var(--gris); text-align: center; margin-top: 28px; line-height: 1.8; }
.auth .legal a { color: var(--gris); text-decoration: none; }
.auth .legal a:hover { color: var(--vert); text-decoration: underline; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Prix proposé au client */
.price-card { background: var(--papier); border-radius: var(--r); box-shadow: var(--ombre); padding: 16px 18px; }
.price-card.wait { box-shadow: var(--ombre), inset 3px 0 0 var(--st-prix_propose); }
.price-card .price { font: 700 26px/1.15 var(--display); letter-spacing: -.025em; color: var(--vert); margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.price-card p { margin: 0 0 6px; }

/* ---------- Divers ---------- */
.card { background: var(--papier); border-radius: var(--r); box-shadow: var(--ombre); padding: 16px; }
.card + .card { margin-top: 12px; }
.notif { display: block; padding: 14px 16px; color: inherit; text-decoration: none; }
.notif.unread { background: rgba(19, 132, 63, .05); }
.notif.unread .nt::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--vert); margin-right: 8px; vertical-align: 2px; }
.notif .nt { font-weight: 600; }
.notif .nb { font-size: 15px; }
.notif .nd { font-size: 13px; color: var(--gris); margin-top: 2px; }
.menu { list-style: none; margin: 0; padding: 0; background: var(--papier); border-radius: var(--r); box-shadow: var(--ombre); overflow: hidden; }
.menu li + li { box-shadow: inset 0 .5px 0 var(--trait); }
.menu a, .menu button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 15px 16px;
  color: var(--encre);
  text-decoration: none;
  background: none;
  border: 0;
  font: 400 17px/1.3 var(--sans);
  letter-spacing: -.012em;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s;
}
.menu a:hover, .menu button:hover { background: rgba(0, 0, 0, .025); }
.menu .chev { color: var(--gris-2); }
.banner { background: var(--vert); color: #fff; border-radius: var(--r); padding: 16px; margin-bottom: 16px; box-shadow: 0 6px 20px rgba(19, 132, 63, .22); }
.banner p { margin: 0 0 10px; }
.banner .btn { min-height: 40px; background: #fff; color: var(--vert); }
.banner .btn:hover { background: rgba(255, 255, 255, .9); }
.banner .btn.link { background: none; color: rgba(255, 255, 255, .85); }
.banner.light { background: var(--papier); color: var(--encre); box-shadow: var(--ombre), inset 3px 0 0 var(--or); }
.banner.light .btn { background: var(--vert); color: #fff; }
.userrow { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 13px 16px; }
.userrow .r { font-size: 13.5px; color: var(--gris); }
.tagline { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 980px; background: rgba(0, 0, 0, .06); color: var(--gris); margin-left: 6px; }
.copybox { display: flex; gap: 8px; margin-top: 8px; }
.copybox input { font-size: 14px; }
.spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid rgba(0, 0, 0, .1);
  border-top-color: var(--vert);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 36px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(96px + var(--safe-b));
  z-index: 80;
  width: max-content;
  max-width: calc(100% - 32px);
  background: rgba(29, 29, 31, .88);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: #fff;
  padding: 12px 20px;
  border-radius: 980px;
  font-weight: 500;
  font-size: 15.5px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
  animation: toast .4s var(--ease);
}
.toast.error { background: rgba(196, 54, 28, .94); }
@keyframes toast { from { transform: translate(-50%, 12px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }

/* ---------- Accessibilité : mouvement, transparence, contraste ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .spinner { animation: spin 1.6s linear infinite !important; }
  .btn:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar { background: var(--creme); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .actionbar { background: var(--papier); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .toast { background: var(--encre); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --gris: #4A4A4F; --champ: rgba(0, 0, 0, .5); --trait: rgba(0, 0, 0, .25); }
  .list, .facts, .menu, .card, .empty, .auth form { box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); }
}

/* ---------- Impression : fiche mission ---------- */
@media print {
  .topbar, .actionbar, .fab, .maplinks, .back, .no-print, .leaflet-control-container { display: none !important; }
  body { background: #fff; }
  .page { padding: 0; max-width: none; }
  .hero { margin: 0; box-shadow: none; }
  .mapbox { margin: 12px 0; height: 260px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .list, .facts, .callout, .timeline .t-msg { box-shadow: 0 0 0 1px #ddd; }
  .facts, .callout, .timeline .t-msg { break-inside: avoid; }
}


/* ---------- Suivi de l'avancement (clients) ---------- */
.track { margin: 20px 0 18px; background: var(--papier); border-radius: var(--r); box-shadow: var(--ombre); padding: 18px 18px 4px; }
.track h2 { font-size: 19px; margin-bottom: 16px; }
.track-list { list-style: none; margin: 0; padding: 0; }
.track-list li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-bottom: 18px; }
.track-list li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; border-radius: 1px; background: rgba(0, 0, 0, .1); }
.track-list li.done:not(:last-child)::before { background: var(--vert); }
.track-list .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--papier); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .14); }
.track-list .dot svg { width: 17px; height: 17px; fill: currentColor; }
.track-list li.done .dot { background: var(--vert); color: #fff; box-shadow: none; }
.track-list li.current .dot { box-shadow: inset 0 0 0 2px var(--vert), 0 0 0 5px rgba(19, 132, 63, .12); }
.track-list li.current .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--vert); }
.track-list li.current.action .dot { box-shadow: inset 0 0 0 2px var(--st-prix_propose), 0 0 0 5px rgba(176, 125, 30, .14); }
.track-list li.current.action .dot::after { background: var(--st-prix_propose); }
.track-list li.stop .dot { background: var(--st-refusee); color: #fff; box-shadow: none; }
.track-list li.stop.annulee .dot { background: var(--st-annulee); }
.track-list b { display: block; font-weight: 600; font-size: 16.5px; line-height: 1.3; margin-top: 3px; }
.track-list li:not(.done):not(.current):not(.stop) b { color: var(--gris-2); font-weight: 500; }
.track-list .when { display: block; margin-top: 2px; font-size: 14.5px; color: var(--gris); }
.track-list li.current .when { color: var(--encre); }
.track-list li.action .when { color: var(--or-fonce); font-weight: 500; }
.track-end { margin: -4px 0 16px 40px; font-size: 14.5px; color: var(--vert); font-weight: 500; }
.mini-track { display: block; height: 4px; max-width: 220px; margin-top: 9px; border-radius: 2px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.mini-track i { display: block; height: 100%; border-radius: 2px; background: var(--vert); }


/* ---------- Guide d'installation ---------- */
.steps { list-style: none; counter-reset: st; margin: 0; padding: 4px 20px; background: var(--papier); border-radius: 18px; box-shadow: var(--ombre); }
.steps li { counter-increment: st; position: relative; padding: 15px 0 15px 46px; }
.steps li + li { box-shadow: inset 0 .5px 0 var(--trait); }
.steps li::before { content: counter(st); position: absolute; left: 0; top: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--vert-pale); color: var(--vert); font-weight: 700; font-size: 15px; display: grid; place-items: center; }
.steps b { display: block; font-weight: 600; }
.steps span { display: block; margin-top: 2px; font-size: 14.5px; color: var(--gris); }
.steps svg.inl { width: 21px; height: 21px; vertical-align: -4px; color: var(--vert); }
.qr-card { text-align: center; background: var(--papier); border-radius: 18px; box-shadow: var(--ombre); padding: 26px 20px 22px; margin-bottom: 14px; }
.qr-card img { display: block; width: 200px; height: 200px; margin: 0 auto 16px; }
.qr-card p { margin: 0; }

.auth .install-cta { margin-top: 26px; min-height: 52px; font-size: 16.5px; }
.auth .install-cta svg { width: 20px; height: 20px; }

/* ---------- Administration ---------- */
.seg { display: flex; gap: 2px; padding: 2px; margin-bottom: 14px; border-radius: 11px; background: rgba(0, 0, 0, .06); }
.seg button { flex: 1; min-height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--encre); font: 500 15px/1 var(--sans); cursor: pointer; transition: background-color .2s, box-shadow .2s; }
.seg button[aria-selected="true"] { background: var(--papier); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); font-weight: 600; }
.seg .n { color: var(--gris); font-weight: 600; margin-left: 2px; font-variant-numeric: tabular-nums; }
.seg .n.alert { display: inline-block; min-width: 20px; padding: 2px 6px; border-radius: 980px; background: var(--st-prix_propose); color: #fff; font-size: 12px; }
.urow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--encre); transition: background-color .15s; }
.urow:hover { background: rgba(0, 0, 0, .025); }
.uav { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--vert-pale); color: var(--vert); font-weight: 600; font-size: 14px; }
.uav.off { background: rgba(0, 0, 0, .06); color: var(--gris); }
.uav.wait, .uav.inv { background: var(--or-clair); color: var(--or-fonce); }
.umain { flex: 1; min-width: 0; }
.umain strong { display: block; font-weight: 600; }
.usub { display: block; font-size: 13.5px; color: var(--gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ust { flex: none; display: inline-block; padding: 3px 9px; border-radius: 980px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ust.on { background: var(--vert-pale); color: var(--vert); }
.ust.inv, .ust.wait { background: var(--or-clair); color: var(--or-fonce); }
.ust.off { background: rgba(0, 0, 0, .06); color: var(--gris); }
.urow .chev { color: var(--gris-2); }
@media (max-width: 420px) { .urow .ust.on { display: none; } }
.org-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.org-head h2 { margin: 0; font-size: 18px; }
.pend { box-shadow: var(--ombre), inset 3px 0 0 var(--st-prix_propose); padding: 16px 18px; }
.pend + .pend { margin-top: 12px; }
.pend-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pend-who { margin-top: 10px; }
.pend-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.sheet-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 4px; }
.sheet-more { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; box-shadow: inset 0 .5px 0 var(--trait); }

.tab-hint { margin: -6px 0 14px; font-size: 14px; color: var(--gris); }
@media (min-width: 700px) { .tabs { flex-wrap: wrap; overflow: visible; margin: 0 0 14px; padding: 2px 0 4px; } }
.search input[type=search] { padding-left: 42px; }
.banner.light .btn.link { background: none; color: var(--vert); }
.banner.light .btn.link:hover { background: none; text-decoration: underline; }
#admin-link .badge { background: var(--st-prix_propose); }

/* Grand écran : même rendu que sur téléphone, à plus grande échelle (hors écrans avec carte) */
@media (min-width: 1100px) {
  .page:not(:has(.mapwrap, .mapbox)) { zoom: 1.15; }
  .auth { zoom: 1.1; }
  .sheet { zoom: 1.1; }
}

.org-link { text-decoration: none; color: inherit; padding: 6px 8px; margin: 0 -8px 8px; border-radius: 12px; transition: background-color .15s; }
.org-link:hover { background: rgba(0, 0, 0, .04); }
.org-link h2 { display: inline; margin-right: 8px; }
.org-go { flex: none; font-size: 14.5px; font-weight: 500; color: var(--vert); }
.org-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 6px; }
.org-stats div { background: var(--papier); border-radius: var(--r); box-shadow: var(--ombre); padding: 14px 14px 12px; }
.org-stats b { display: block; font: 700 28px/1 var(--display); letter-spacing: -.03em; color: var(--vert); font-variant-numeric: tabular-nums; }
.org-stats span { display: block; margin-top: 6px; font-size: 13px; color: var(--gris); }
@media (max-width: 520px) { .org-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.org-stats { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }

/* Bouton « Voir les missions » dans la carte d'une entreprise */
.org-title { justify-content: flex-start; }
.menu .menu-foot { display: flex; justify-content: flex-end; padding: 10px 12px; }
.menu .menu-foot a.org-btn { display: inline-flex; align-items: center; gap: 6px; width: auto; min-height: 38px; padding: 0 16px; border-radius: 980px; background: rgba(19, 132, 63, .1); color: var(--vert); font: 600 15px/1 var(--sans); letter-spacing: -.01em; transition: background-color .15s, transform .12s ease-out; }
.menu .menu-foot a.org-btn span { font-size: 18px; line-height: 1; margin-top: -2px; }
.menu .menu-foot a.org-btn:hover { background: rgba(19, 132, 63, .16); }
.menu .menu-foot a.org-btn:active { transform: scale(.97); }
@media (max-width: 520px) { .menu .menu-foot a.org-btn { width: 100%; justify-content: center; } }
@media (prefers-contrast: more) { .menu .menu-foot a.org-btn { background: var(--vert); color: #fff; } }

/* ============ 1.4 : menu latéral, page « À faire », fiche mission, clients ============ */
#sidenav { display: none; }
@media (min-width: 1000px) {
  body.side .shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); align-items: start; }
  body.side #sidenav { display: block; position: sticky; top: 52px; box-sizing: border-box; height: calc(100dvh - 52px); overflow-y: auto; padding: 18px 12px 28px; box-shadow: inset -.5px 0 0 rgba(0, 0, 0, .12); }
  body.side .home .tabs, body.side .fab, body.side #admin-link { display: none !important; }
}
.side-new { width: 100%; min-height: 42px; font-size: 15px; margin-bottom: 6px; }
.side-new svg { width: 18px; height: 18px; fill: currentColor; }
.side-h { margin: 18px 10px 6px; font-size: 12px; font-weight: 600; color: var(--gris); text-transform: uppercase; letter-spacing: .05em; }
.side-item { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 9px; color: var(--encre); text-decoration: none; font-size: 15px; transition: background-color .15s; }
.side-item:hover { background: rgba(0, 0, 0, .05); }
.side-item.on { background: var(--vert-pale); color: var(--vert-2); font-weight: 600; }
.side-item svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-item .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-n { font-size: 13px; color: var(--gris); font-variant-numeric: tabular-nums; }
.side-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px; background: var(--vert); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0; vertical-align: 3px; }
#print svg, #copy svg, .maplinks svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Page Missions */
.page.home { max-width: 880px; }
.page.wide { max-width: 1040px; }
.eyebrow { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--gris); }
.page-head .view-hint { margin: 6px 0 0; font-size: 15px; color: var(--gris); }
.grp { margin-top: 22px; }
.grp:first-child { margin-top: 4px; }
.grp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 4px 10px; }
.grp-head h2 { margin: 0; font-size: 19px; }
.grp-head .who { font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 980px; background: var(--vert-pale); color: var(--vert-2); }
.grp-hint { font-size: 14px; color: var(--gris); }
.grp.quiet { margin-top: 30px; }
.grp.quiet h2 { font-size: 17px; color: #3A3A3C; }
.grp.quiet .list { background: rgba(255, 255, 255, .6); box-shadow: none; }
.row .client .org { font-weight: 400; font-size: 14px; color: var(--gris); }
.list li.has-act { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.row-act { padding: 0 16px 0 4px; }
@media (max-width: 560px) {
  .list li.has-act { grid-template-columns: 1fr; }
  .row-act { padding: 0 16px 14px 18px; }
  .row-act .btn { width: 100%; }
}

/* Fiche mission */
.page.fiche { max-width: 780px; }
.mhead { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin: 2px 0 18px; }
.mref { margin: 0; font-size: 14px; color: var(--gris); }
.mtitle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 4px; }
.mtitle h1 { margin: 0; font-size: 30px; letter-spacing: -.025em; }
.mpill { font-size: 13px; font-weight: 600; padding: 4px 11px; border-radius: 980px; color: var(--st); background: color-mix(in srgb, var(--st) 13%, transparent); white-space: nowrap; }
.hsteps { list-style: none; margin: 0; padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 14px 0; background: var(--papier); border-radius: var(--r); box-shadow: var(--ombre); }
.hsteps li { display: flex; align-items: center; flex: 1 1 0; min-width: 0; }
.hsteps li:last-child { flex: 0 0 auto; }
.hsteps li:last-child .ln { display: none; }
.hsteps .hs { display: flex; align-items: center; gap: 8px; }
.hsteps .dot { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--papier); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .14); }
.hsteps .dot svg { width: 15px; height: 15px; fill: currentColor; }
.hsteps li.done .dot { background: var(--vert); color: #fff; box-shadow: none; }
.hsteps li.current .dot { box-shadow: inset 0 0 0 2px var(--vert), 0 0 0 4px rgba(19, 132, 63, .12); }
.hsteps li.stop .dot { background: var(--st-refusee); color: #fff; box-shadow: none; }
.hsteps b { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.hsteps li:not(.done):not(.current):not(.stop) b { color: var(--gris-2); font-weight: 500; }
.hsteps small { display: block; font-size: 12px; color: var(--gris); }
.hsteps .ln { flex: 1; min-width: 10px; height: 2px; margin: 0 10px; border-radius: 1px; background: rgba(0, 0, 0, .1); }
.hsteps li.done .ln { background: var(--vert); }
.fiche .track { margin: 0; }
.mtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.mtile { background: var(--papier); border-radius: var(--r); box-shadow: var(--ombre); padding: 14px 16px; min-width: 0; }
.mtile b { display: block; font: 700 23px/1.15 var(--display); letter-spacing: -.025em; overflow-wrap: anywhere; }
.mtile.big b { color: var(--vert); font-size: 30px; }
.mtile span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--gris); }
.mcard { background: var(--papier); border-radius: var(--r); box-shadow: var(--ombre); padding: 18px 20px; margin-top: 16px; }
.mcard > h2 { font-size: 17px; margin: 0 0 14px; }
.mcard .price-card { box-shadow: none; padding: 0; background: none; }
.fiche .callout { margin-top: 16px; }
.fiche .mapbox { margin: 0; height: 300px; border-radius: 10px; overflow: hidden; }
.mapcard { padding: 10px; }
.mapcard .maplinks { padding: 12px 6px 4px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 0; }
.fgrid > div { min-width: 0; }
.fgrid .full { grid-column: 1 / -1; }
.fgrid dt { font-size: 13px; color: var(--gris); }
.fgrid dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.mcard .timeline .t-msg { background: var(--creme); box-shadow: none; }
@media (max-width: 640px) {
  .hsteps .ln { display: none; }
  .hsteps li, .hsteps li:last-child { flex: 1 1 45%; }
  .mtitle h1 { font-size: 26px; }
}
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } }

/* Entreprises clientes */
.okline { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 16px; border-radius: 12px; background: var(--vert-pale); color: var(--vert-2); font-size: 15px; }
.okline svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.org-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.org-card { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px 18px 16px; background: var(--papier); border-radius: var(--r); box-shadow: var(--ombre); }
.oc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.oc-head h2 { margin: 0; font-size: 19px; }
.oc-head .tagline { margin: 0; }
.oc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.oc-stats div { padding: 10px 12px; border-radius: 12px; background: var(--creme); }
.oc-stats b { display: block; font: 700 22px/1 var(--display); color: var(--vert); font-variant-numeric: tabular-nums; }
.oc-stats span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--gris); }
.oc-h { margin: 0 0 -8px; font-size: 12px; font-weight: 600; color: var(--gris); text-transform: uppercase; letter-spacing: .05em; }
.org-card .menu { margin: 0 -18px; border-radius: 0; box-shadow: none; background: transparent; }
.oc-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
@media print {
  #sidenav { display: none !important; }
  .mcard, .hsteps, .mtile { box-shadow: 0 0 0 1px #ddd; break-inside: avoid; }
}

@media (min-width: 1100px) and (max-width: 1399px) { body.side .page:not(:has(.mapwrap, .mapbox)) { zoom: 1; } }
.org-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* Prix : heures, déplacement, estimation */
.sheet-h { margin: 10px 0 8px; font-size: 12px; font-weight: 600; color: var(--gris); text-transform: uppercase; letter-spacing: .05em; }
.segr { display: flex; gap: 2px; padding: 2px; border-radius: 11px; background: rgba(0, 0, 0, .06); }
.segr label { position: relative; flex: 1; }
.segr input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.segr span { display: flex; align-items: center; justify-content: center; min-height: 38px; border-radius: 9px; font: 500 15px/1 var(--sans); transition: background-color .2s, box-shadow .2s; }
.segr input:checked + span { background: var(--papier); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 0 0 .5px rgba(0, 0, 0, .04); font-weight: 600; }
.segr input:focus-visible + span { outline: 2px solid var(--vert); outline-offset: 1px; }
#sf [hidden] { display: none !important; }
.price-card .depl { margin: 6px 0 4px; font-size: 16px; font-weight: 600; color: var(--encre); }
.est-box { display: flex; flex-direction: column; gap: 3px; margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px; background: var(--vert-pale); }
.est-box b { font-size: 16px; color: var(--vert-2); }
.est-box span { font-size: 13.5px; color: var(--gris); }
.dist-info b { color: var(--vert-2); }
.dist-info .btn.link { padding: 0 4px; min-height: 0; vertical-align: baseline; }
.okline.reprise { margin: 4px 0 12px; font-size: 14px; align-items: flex-start; }
.okline.reprise svg { margin-top: 1px; }

/* Barre d'onglets (téléphone et tablette) */
.tabbar, .mobile-only { display: none; }
.app-ver { margin: 28px 0 0; text-align: center; font-size: 13px; color: var(--gris-2); }
@media (max-width: 999px) {
  body.side .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 26; padding: 6px 4px calc(4px + var(--safe-b)); background: rgba(250, 248, 243, .84); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: inset 0 .5px 0 rgba(0, 0, 0, .16); }
  body.side .mobile-only { display: block; }
  body.side .fab, body.side .topnav { display: none !important; }
  body.side .page { padding-bottom: calc(120px + var(--safe-b)); }
  body.side .actionbar { bottom: calc(56px + var(--safe-b)); padding-bottom: 10px; }
}
.tab-it { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 46px; padding: 3px 0 0; color: var(--gris); text-decoration: none; font-size: 10.5px; font-weight: 500; letter-spacing: 0; -webkit-tap-highlight-color: transparent; }
.tab-it svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tab-it.on { color: var(--vert); }
.tab-it.on svg { stroke-width: 2.1; }
.tab-it.new { color: var(--vert); }
.tab-it:active svg { transform: scale(.92); transition: transform .1s; }
.tb-badge { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px rgba(250, 248, 243, 1); }
@media print { .tabbar { display: none !important; } }

/* Menu en page (téléphone) et menu latéral : même contenu */
.side-chev { display: none; }
body.side .home .tabs { display: none !important; }
.phone-only { display: none !important; }
#sidenav .side-new { margin-bottom: 0; }
.menu-page h1 { margin: 0; }
.menu-page .side-new { width: 100%; min-height: 50px; font-size: 17px; margin: 0 0 8px; }
.menu-page .side-g { margin-top: 20px; }
.menu-page .side-h { margin: 0 16px 8px; font-size: 13px; }
.menu-page .side-list { background: var(--papier); border-radius: var(--r); box-shadow: var(--ombre); overflow: hidden; }
.menu-page .side-item { min-height: 52px; padding: 0 16px; border-radius: 0; gap: 14px; font-size: 17px; }
.menu-page .side-item + .side-item { box-shadow: inset 0 .5px 0 var(--trait); }
.menu-page .side-item svg { width: 22px; height: 22px; color: var(--vert); }
.menu-page .side-n { font-size: 16px; }
.menu-page .side-chev { display: inline; margin-left: 2px; color: var(--gris-2); font-size: 20px; line-height: 1; }
@media (max-width: 999px) {
  body.side .phone-only { display: inline-flex !important; }
}

/* Équipe et planning Combo */
.mc-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.mc-head h2 { margin: 0; font-size: 17px; }
.mc-head .tagline { margin: 0; }
.eq-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.eq-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--creme); min-width: 0; }
.eq-list .umain, .eq-pick .umain { display: flex; flex-direction: column; min-width: 0; }
.eq-list .usub, .eq-pick .usub { font-size: 13px; color: var(--gris); }
.chef { align-self: flex-start; margin: 2px 0; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 980px; background: var(--or-clair); color: var(--or-fonce); }
.eq-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.combo-box { display: flex; flex-direction: column; gap: 3px; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--or-clair); color: var(--encre); font-size: 14px; }
.combo-box.ok { background: var(--vert-pale); }
.combo-box b { font-size: 15px; }
.eq-ul li { display: flex; align-items: center; }
.eq-row[hidden] { display: none !important; }
.eq-pick { flex: 1; display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; min-width: 0; }
.eq-pick input { width: 20px; height: 20px; flex: none; accent-color: var(--vert); }
.eq-warn { font-size: 12.5px; color: var(--or-fonce); }
.eq-chef { display: flex; align-items: center; gap: 4px; padding: 0 14px; font-size: 13px; color: var(--gris); cursor: pointer; }
.eq-chef input { accent-color: var(--vert); }
.eq-foot { position: sticky; bottom: 0; align-items: center; padding: 10px 0 4px; background: inherit; }
#eq-count { margin-right: auto; }
.combo-steps { margin: 0 0 14px; padding-left: 22px; }
.combo-steps li { margin: 4px 0; }

/* Bon de livraison */
.bon-page { max-width: 640px; }
.bon-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.bon-head img { border-radius: 10px; }
.bon-head strong { display: block; font-size: 17px; }
.bon-head span { font-size: 14px; color: var(--gris); }
.sig-pad { display: block; width: 100%; height: 200px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--champ); touch-action: none; cursor: crosshair; }
#bon .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.bf-h { font-size: 17px; margin: 0 0 4px; }
.hr-row { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 6px 10px; align-items: end; padding: 10px 0; border-top: .5px solid var(--trait); }
.hr-row:first-child { border-top: 0; padding-top: 0; }
.hr-day { font-weight: 600; font-size: 15px; align-self: center; }
.hr-row label span { display: block; font-size: 12px; color: var(--gris); margin-bottom: 2px; }
.hr-row input[type=time], .hr-row select { width: 100%; min-height: 40px; box-sizing: border-box; }
.hr-row .hr-off { grid-column: 2 / -1; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gris); }
.hr-row .hr-off span { display: inline; margin: 0; font-size: 13px; }
.hr-row.off input[type=time], .hr-row.off select { opacity: .35; }
.hr-total { margin: 8px 0 0; font-weight: 600; color: var(--vert-2); }
@media (max-width: 480px) { .hr-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hr-day { grid-column: 1 / -1; } .hr-row .hr-off { grid-column: 1 / -1; } }

.bon-days { list-style: none; margin: 0 0 12px; padding: 0; }
.bon-days li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 12px; align-items: center; padding: 9px 0; border-top: .5px solid var(--trait); font-size: 15px; }
.bon-days li:first-child { border-top: 0; }
.bon-days .bd-day { font-weight: 600; }
.bon-days .bd-st { display: inline-flex; align-items: center; gap: 6px; color: var(--vert-2); font-size: 14px; }
.bon-days .bd-st svg { width: 16px; height: 16px; flex: none; }
.bon-days a { font-size: 14px; }
.hr-row.hr-one { grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; padding-top: 0; }
@media (max-width: 480px) { .bon-days li { grid-template-columns: minmax(0, 1fr) auto; } .bon-days .bd-st { grid-column: 1; grid-row: 2; } }
.hsteps li.current.warn .dot { border-color: var(--or-fonce, #b25e09); box-shadow: 0 0 0 4px var(--or-clair, #fdf0e1); }
.hsteps li.current.warn small { color: var(--or-fonce, #b25e09); font-weight: 600; }

.side-new.side-bl { margin-top: 8px; }
.bl-seg { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--fond-2, #eceae4); width: fit-content; max-width: 100%; }
.bl-seg a { padding: 7px 14px; border-radius: 8px; font-size: 14px; font-weight: 500; color: inherit; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-seg a.on { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.eq-man .eq-row { display: flex !important; align-items: center; gap: 10px; padding: 8px 12px; }
.eq-man .eq-nom { flex: 1 1 auto; min-width: 0; width: 100%; min-height: 40px; box-sizing: border-box; }
.eq-man .eq-chef { flex: none; }
.eq-man .eq-del { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--gris); padding: 4px 8px; cursor: pointer; }
.oc-foot { display: flex; gap: 8px; flex-wrap: wrap; }

.qr-card { display: flex; gap: 20px; align-items: center; }
.qr-card img { flex: none; width: 150px; height: 150px; border-radius: 10px; background: #fff; padding: 6px; border: .5px solid var(--trait); }
@media (max-width: 700px) { .qr-install { display: none; } }
.eq-man .eq-nom { flex: 1 1 60%; }
.eq-grp[hidden] { display: none !important; }
#eq-msa a { cursor: pointer; }
.nb-ecart { color: #C62828; font-weight: 700; }
/* 1.9.6 — écart équipe / demande */
.mtile.big.ecart b { color: #C62828; }
.mc-head .eq-pill { font-size: 14px; font-weight: 600; padding: 5px 14px; margin-left: 10px; background: #E6F2EA; color: #13843F; }
.mc-head .eq-pill.warn { background: #FDECEA; color: #C62828; box-shadow: inset 0 0 0 1px #F3B9B3; }
.eq-pill .nb-ecart { color: inherit; font-weight: 800; }
/* 1.9.19 — validation de l'équipe */
.eq-valid-row { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, .07); }
.eq-valid-row .btn { width: 100%; justify-content: center; }
.eq-valid-row p { margin: 8px 0 0; }
.btn.eq-ko { background: #C62828; border-color: #C62828; color: #fff; }
.btn.eq-ko:hover { background: #A61F1F; border-color: #A61F1F; }
.btn.eq-ok { background: #13843F; border-color: #13843F; color: #fff; cursor: default; }

/* =====================================================================
   1.9.21 — Relook « Apple design » : style uniquement (aucune structure,
   aucun texte, aucun comportement modifié). Couche ajoutée en fin de
   feuille : la supprimer suffit à revenir à l'ancien rendu.
   ===================================================================== */
:root {
  --r: 18px;
  --r-s: 12px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --hairline: 0 0 0 .5px rgba(0, 0, 0, .06);
  --ombre: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .05);
  --ombre-haute: 0 2px 6px rgba(0, 0, 0, .06), 0 18px 48px rgba(0, 0, 0, .14);
  --focus: 0 0 0 4px rgba(19, 132, 63, .22);
}
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }

/* Typographie : approche négative sur les grands titres, chiffres alignés */
h1, .mtitle h1 { letter-spacing: -.026em; line-height: 1.08; font-optical-sizing: auto; }
h2 { letter-spacing: -.019em; line-height: 1.15; }
h3 { letter-spacing: -.012em; }
.mtile b { letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.side-n, .tab .n, .badge, .tagline, .hs, .bd-st { font-variant-numeric: tabular-nums; }
.muted, .small { letter-spacing: -.003em; }

/* Surfaces : cartes plus douces, filet très fin, ombre en deux couches */
.mcard, .mtile, .mapcard, .row, .sheet { border-radius: var(--r); }
.mcard, .mtile, .mapcard { box-shadow: var(--hairline), var(--ombre); }
.mtile { transition: box-shadow .25s var(--ease-out), transform .25s var(--ease-out); }
.uav { box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .08); }
.eq-list li, .eq-row { border-radius: 14px; }

/* Barre latérale : survol discret, élément actif en « pastille » */
.side-item { transition: background-color .18s var(--ease-out), color .18s var(--ease-out); }
.side-item:hover { background: rgba(0, 0, 0, .045); }
.side-item.on { background: rgba(0, 0, 0, .075); font-weight: 600; }

/* Boutons : retour immédiat à l'appui, anneau de focus net */
.btn { transition: background-color .2s var(--ease-out), box-shadow .2s var(--ease-out), opacity .2s var(--ease-out), transform .1s ease-out; }
.btn:active:not(:disabled), .tab:active, .iconbtn:active { transform: scale(.97); }
.btn:not(.ghost):not(.link):not(:disabled):hover { box-shadow: 0 4px 14px rgba(19, 132, 63, .22); }
.btn.eq-ko:hover { box-shadow: 0 4px 14px rgba(198, 40, 40, .25); }
.btn:focus-visible, .tab:focus-visible, .iconbtn:focus-visible, .side-item:focus-visible, .row:focus-visible { outline: none; box-shadow: var(--focus); }
.tab { transition: background-color .18s var(--ease-out), color .18s var(--ease-out), transform .1s ease-out; }

/* Champs : coins doux, anneau vert à la saisie */
input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea {
  border-radius: var(--r-s);
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), background-color .2s var(--ease-out);
}
input:not([type=checkbox]):not([type=radio]):not([type=range]):focus, select:focus, textarea:focus {
  outline: none; border-color: var(--vert); box-shadow: var(--focus);
}

/* Listes : appui ressenti, sans saut */
.row { transition: background-color .15s var(--ease-out), transform .1s ease-out, box-shadow .2s var(--ease-out); }
.row:active { transform: scale(.992); }

/* Feuilles (panneaux du bas) : fond flouté, matière plus profonde */
.sheet-backdrop { background: rgba(0, 0, 0, .26); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet { border-radius: 24px; box-shadow: var(--ombre-haute); }
.toast { border-radius: 16px; box-shadow: var(--ombre-haute); letter-spacing: -.01em; }

/* Accessibilité : on respecte les réglages de l'appareil */
@media (prefers-reduced-motion: reduce) {
  .btn:active:not(:disabled), .tab:active, .iconbtn:active, .row:active { transform: none; }
  .mtile, .row, .btn, .tab, .side-item { transition-duration: .01ms; }
}
@media (prefers-reduced-transparency: reduce) {
  .sheet-backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0, 0, 0, .45); }
}
@media (prefers-contrast: more) {
  .mcard, .mtile, .mapcard { box-shadow: 0 0 0 1px rgba(0, 0, 0, .45); }
  .side-item.on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5); }
}

/* 1.9.24 — Fond de page identique au site sjs-france.com (#FBFBF9, plus clair que le crème) */
:root { --fond-site: #FBFBF9; }
html, body { background-color: var(--fond-site); }
.side { background-color: var(--fond-site); }
.topbar { background: rgba(251, 251, 249, .72); }
.tabbar { background-color: rgba(251, 251, 249, .72); }
@media (prefers-reduced-transparency: reduce) { .topbar, .tabbar { background: var(--fond-site); } }
/* 1.9.26 — Questionnaire de satisfaction */
.av-title { font-size: 26px; margin: 2px 0 6px; }
.av-list { margin: 16px 0 8px; }
.av-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; box-shadow: inset 0 .5px 0 var(--trait); }
.av-q > span { font-size: 15px; }
.av-stars { display: flex; gap: 2px; flex: none; }
.av-stars button { border: 0; background: none; padding: 2px 3px; font-size: 28px; line-height: 1; color: #D2D2D7; cursor: pointer; transition: color .15s, transform .1s ease-out; }
.av-stars button.on { color: var(--or); }
.av-stars button:active { transform: scale(.88); }
.av-reco { margin: 18px 0 14px; }
.av-lab { font-weight: 600; margin: 0 0 10px; }
.av-scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.av-scale button { min-height: 40px; border: 0; border-radius: 10px; background: rgba(0, 0, 0, .05); font: 600 15px var(--sans); color: var(--encre); cursor: pointer; transition: background-color .15s, color .15s, transform .1s ease-out; }
.av-scale button.on { background: var(--vert); color: #fff; }
.av-scale button:active { transform: scale(.94); }
.av-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--gris); margin-top: 6px; }
@media (max-width: 420px) { .av-q { flex-direction: column; align-items: flex-start; gap: 4px; } .av-scale { grid-template-columns: repeat(6, 1fr); } }
.av-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; box-shadow: inset 0 .5px 0 var(--trait); font-size: 15px; }
.av-row .s { color: var(--or); letter-spacing: 1px; white-space: nowrap; }
.av-row .s i { color: #D2D2D7; font-style: normal; }
.av-reco-n.ok { color: var(--vert); } .av-reco-n.mid { color: var(--or-fonce); } .av-reco-n.ko { color: #C62828; }
.av-com { margin: 12px 0 0; padding: 12px 14px; background: rgba(0, 0, 0, .035); border-radius: 12px; font-style: italic; }
@media (prefers-reduced-motion: reduce) { .av-stars button:active, .av-scale button:active { transform: none; } }
/* 1.9.27 — Heures prévues / réelles sur les bons */
.bd-cmp { display: flex; flex-direction: column; gap: 3px; font-size: 14px; line-height: 1.35; }
.bd-cmp em { font-style: normal; font-weight: 600; display: inline-block; min-width: 46px; }
.bd-plan { color: var(--gris); }
.bd-reel em { color: var(--vert); }
.bd-sig { color: var(--gris-2); font-size: 13px; }
/* 1.9.28 — Questionnaire : bouton d'envoi plus discret */
#av-send { display: flex; width: auto; min-height: 42px; margin: 4px auto 0; padding: 0 22px; font-size: 15px; }
.av-stars button { font-size: 24px; }
.av-title { font-size: 22px; }