/* JLAB BOOST : le design avocat (mélange de JLAB APP et JLAB PROJECT : cartes, gros chiffres, petites étiquettes).
   Vert chair et jaune : remplissages, barres, boutons, toujours avec du texte foncé dessus. Contraste 4,5 au moins partout. */
@font-face { font-family: "Hellix"; src: url(/fonts/Hellix-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hellix"; src: url(/fonts/Hellix-600.woff2) format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Hellix"; src: url(/fonts/Hellix-700.woff2) format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url(/fonts/MartianMono.woff2) format("woff2"); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }
:root {
  --bg: #F5EFE2; --panel: #FDFAF4; --panel-2: #F8F2E6; --sunk: #EDE4D2; --line: #E3D7C0; --line-2: #D2C3A6;
  --ink: #2B1F14; --ink-2: #6E4B2A; --ink-3: #715C47; --accent: #2F4B26; --brand: #4E7A2C;
  --fill: #9BBF5A; --fill-2: #EFE3A0; --on-fill: #2B1F14; --skin: #2F4B26; --pit: #6E4B2A; --pit-hi: #E6D6B8;
  --ok-bg: rgba(155,191,90,.34); --ok-fg: #2F4B26; --wait-bg: #EFE3A0; --wait-fg: #4A3420;
  --bad-bg: rgba(163,54,31,.11); --bad-fg: #A3361F; --off-bg: #EDE4D2; --off-fg: #6E4B2A;
  --piste: #E9DFCB; --glass: rgba(245,239,226,.84); --dot: rgba(110,75,42,.15);
  --sh: 0 1px 2px rgba(43,31,20,.05), 0 18px 40px -26px rgba(47,75,38,.45);
  --glow: 0 22px 50px -28px rgba(78,122,44,.6);
  --btn-sh: inset 0 1px 0 rgba(255,255,255,.5), 0 12px 26px -14px rgba(47,75,38,.75);
  --ressort: cubic-bezier(.34, 1.4, .64, 1);
  --sans: "Hellix", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141A12; --panel: #1A2217; --panel-2: #1F281B; --sunk: #0F140D; --line: #2A3423; --line-2: #3B4732;
    --ink: #F1E8D6; --ink-2: #CFC3A8; --ink-3: #A39880; --accent: #9BBF5A; --brand: #9BBF5A;
    --ok-bg: rgba(155,191,90,.17); --ok-fg: #B5D47E; --wait-bg: rgba(239,227,160,.15); --wait-fg: #EFE3A0;
    --bad-bg: rgba(255,138,107,.15); --bad-fg: #FF9A80; --off-bg: #232C1E; --off-fg: #CFC3A8;
    --piste: #0E130C; --glass: rgba(20,26,18,.84); --dot: rgba(230,214,184,.07);
    --sh: inset 0 1px 0 rgba(255,255,255,.04), 0 24px 60px -34px rgba(0,0,0,.9);
    --glow: 0 0 0 1px rgba(155,191,90,.08), 0 26px 60px -30px rgba(155,191,90,.4);
    --btn-sh: inset 0 1px 0 rgba(255,255,255,.35), 0 0 30px -8px rgba(155,191,90,.55);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.5px); background-size: 22px 22px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }

/* ---------- Composants ---------- */
.lbl { font: 500 9.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.big { font-family: var(--mono); font-weight: 650; font-stretch: 112.5%; letter-spacing: -.06em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font: 600 9.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.ok { background: var(--ok-bg); color: var(--ok-fg); } .wait { background: var(--wait-bg); color: var(--wait-fg); }
.bad { background: var(--bad-bg); color: var(--bad-fg); } .off { background: var(--off-bg); color: var(--off-fg); }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; padding: 0 22px; border-radius: 16px;
  border: 1px solid rgba(47,75,38,.28); background: var(--fill); color: var(--on-fill); font-size: 16px; font-weight: 700; letter-spacing: .01em;
  text-decoration: none; box-shadow: var(--btn-sh); transition: transform .5s var(--ressort), opacity .2s; }
.btn:hover { color: var(--on-fill); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.jaune { background: var(--fill-2); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); box-shadow: none; }
.btn.ghost:hover { color: var(--ink); }
.btn.petit { width: auto; height: 40px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.lien { display: block; width: 100%; padding: 8px; border: 0; background: transparent; text-align: center; font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.lien:hover { color: var(--ink); }
.bar { height: 4px; border-radius: 4px; background: var(--sunk); overflow: hidden; }
.bar > b { display: block; height: 100%; border-radius: 4px; background: var(--fill); }
.f { display: grid; gap: 7px; }
.in { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); font-size: 16px; outline: none; }
.in:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(155,191,90,.28); }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--ok-bg); color: var(--accent); }
.li { display: flex; gap: 12px; align-items: center; font-size: 14px; line-height: 1.4; }
.erreur { margin: 0; min-height: 0; font-size: 14px; font-weight: 600; color: var(--bad-fg); }
.erreur:empty { display: none; }
.test { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: var(--wait-bg); color: var(--wait-fg); font-size: 13px; line-height: 1.35; }
.test .chip { background: var(--panel); color: var(--wait-fg); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 50; max-width: min(92vw, 420px);
  padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--bg); font-size: 14px; font-weight: 600; box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }

/* ---------- Espace client (appli installable) ---------- */
.scr { width: 100%; max-width: 440px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column;
  padding: calc(18px + env(safe-area-inset-top)) 22px calc(26px + env(safe-area-inset-bottom)); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; }
.steps { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; margin-top: 16px; }
.steps > span { height: 4px; border-radius: 3px; background: var(--sunk); }
.steps > .d { background: var(--fill); }
.steps > .c { background: var(--fill-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.h1 { margin: 28px 0 0; font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.12; }
.sub { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.body { margin-top: 22px; display: grid; gap: 12px; }
.foot { margin-top: auto; display: grid; gap: 10px; padding-top: 22px; }
.kv { display: grid; gap: 6px; }
.sep { height: 1px; background: var(--line); }
.verrou { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.ordre { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ordre li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; }
.ordre .n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; font: 650 11px var(--mono); background: var(--sunk); color: var(--ink-2); }
.ordre .fait .n { background: var(--fill); color: var(--on-fill); }
.ordre .ici .n { background: var(--fill-2); color: var(--on-fill); }

/* ---------- Onglet de Dali (dans JLAB APP) ---------- */
.adm { min-height: 100vh; }
.wrap { max-width: 1360px; margin: 0 auto; padding: 20px 28px 48px; display: grid; gap: 18px; }
.subnav { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--piste); box-shadow: inset 0 0 0 1px var(--line); width: max-content; max-width: 100%; }
.sn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-size: 13.5px; font-weight: 600; transition: color .2s, background-color .25s; }
.sn:hover { color: var(--ink); }
.sn[aria-current="page"] { background: var(--panel); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 6px 16px -10px rgba(47,75,38,.6); }
.cnt { font: 650 10px var(--mono); padding: 2px 6px; border-radius: 999px; background: var(--off-bg); color: var(--off-fg); }
.tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.tete h1 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.kpi { padding: 16px 18px; display: grid; gap: 10px; align-content: start; }
.kt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sec { padding: 16px 0 4px; overflow: hidden; }
.sec-t { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px 12px; }
.sec-t h2 { font-size: 17px; font-weight: 700; }
.scrollx { overflow-x: auto; }
.tr { display: grid; grid-template-columns: minmax(200px, 1.6fr) 170px 150px 150px 170px; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); min-width: 900px; }
.tr:last-child { border-bottom: 0; }
.tr.h { padding-top: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tr.vu { background: color-mix(in srgb, var(--fill) 12%, transparent); }
.tj { display: grid; grid-template-columns: 118px minmax(160px, 1fr) minmax(240px, 2fr) 230px 100px; align-items: center; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); min-width: 980px; }
.tj:last-child { border-bottom: 0; }
.nom { display: grid; gap: 3px; min-width: 0; }
.nom b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vide { display: grid; justify-items: start; gap: 8px; padding: 22px 18px; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.attente { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 100vh; padding: 24px; text-align: center; color: var(--ink-2); }
.attente p { max-width: 380px; margin: 0; }
@media (max-width: 760px) {
  .wrap { padding: 16px 14px 36px; }
  .tete h1 { font-size: 26px; }
  .subnav { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .sn { white-space: nowrap; padding: 0 12px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 13px 13px 14px; }
  .kpi .big { font-size: 26px !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.form { flex: 1; display: flex; flex-direction: column; }
.champ-mdp { position: relative; display: block; }
.voir { position: absolute; right: 6px; top: 6px; height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--sunk); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.voir:hover { color: var(--ink); }
.tj.h { padding-top: 2px; padding-bottom: 10px; }
::placeholder { color: var(--ink-3); opacity: 1; }
