/* Kit V3 (refonte novembre 2026) : chargé en DERNIER sur toutes les pages, il remplace l'habillage sans toucher aux règles des pages.
   Sobre partout (fond crème uni, cartes blanches arrondies, texte normal), pixel seulement pour : boutons d'action importants
   (.px-btn plein, .btn-primary), petites étiquettes d'en-tête (.pixel), icônes d'étape (.pxa, icons.js), Pixguy, pastille « En direct ».
   Pour revenir à l'ancien habillage : retirer la ligne <link … kit.css> des vues. */
/* Règle (06/11) : jamais de beige sur beige. Le beige reste le fond de page (--paper) ; tout ce qui est posé dessus est blanc,
   les blocs dans un bloc sont gris clair neutre, traits et textes secondaires en gris neutre bien lisible (plus de brun clair). */
:root { --surface: #FFFFFF; --cream-2: #F3F3F1; --line: #E2E2DF; --line-soft: #EDEDEA; --ink-soft: #4D4D4D; --muted: #5C5C5C;
  --st-lock: #A8A8A4; --st-lock-bg: #EDEDEA; }
:root { --r: 18px; --r-sm: 12px; --edge: #E2E2DF; --soft-shadow: 0 10px 24px -20px rgba(35, 35, 35, .45);
  --px-ink: 0 -3px 0 0 var(--ink), 0 3px 0 0 var(--ink), -3px 0 0 0 var(--ink), 3px 0 0 0 var(--ink); }

/* ---------- Fonds : léger quadrillage de 24 px, une couleur par face (repris de la version initiale) ----------
   Interne (admin, fiche, Jour J) : papier crème ; client : bleu ; CityMaker : vert (violet avant le 06/11). L'ordre compte : le CityMaker
   et le client portent aussi la classe .admin. */
body.admin, body.jourj { background-color: var(--paper);
  background-image: linear-gradient(rgba(35, 35, 35, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(35, 35, 35, .035) 1px, transparent 1px); background-size: 24px 24px; }
body.client-page { background-color: #EDF2FB;
  background-image: linear-gradient(rgba(32, 105, 247, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(32, 105, 247, .05) 1px, transparent 1px); background-size: 24px 24px; }
body.terrain { background-color: #EEF8F2;
  background-image: linear-gradient(rgba(18, 162, 90, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 162, 90, .09) 1px, transparent 1px); background-size: 24px 24px; }

/* ---------- Cartes : blanches, arrondies, filet fin ---------- */
.px-box { background: #fff; margin: 0; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--soft-shadow); }
section.card, details.acc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.sec-head { border-bottom-color: var(--line-soft); }
details.acc > summary { background: var(--cream-2); }
details.acc > summary:hover { background: #EAEAE7; }
section.emph { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
section.emph > .sec-head { background: #fff; }
section.emph > .sec-head h2 { color: var(--ink); }
details.acc.prio { border: 1.5px solid var(--yellow); box-shadow: none; }
.keyfacts { border-radius: 16px; box-shadow: none; }
.fieldgrid, .crew-co, .cl-sec, .tiles-imp .chk { border-radius: var(--r-sm); }
.notice { border-left: 0; border-radius: var(--r-sm); background: var(--amber-tint); color: #5A4300; }
.notice.lock { background: var(--st-lock-bg); color: var(--ink-soft); }
.banner { border: 0; border-radius: var(--r-sm); }

/* ---------- Champs ---------- */
.px-input { border: 1.5px solid var(--edge); border-radius: var(--r-sm); background: #fff; }
.px-input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }

/* ---------- Boutons ----------
   Secondaires (Annuler, Copier, Voir, Quitter…) : arrondis, texte normal.
   Importants (.px-btn plein, .btn-primary) : coins en escalier et police 8 bits, pour qu'on ne les rate pas. */
.btn { border: 1.5px solid var(--edge); border-radius: var(--r-sm); background: #fff; box-shadow: none; }
.btn:hover:not(:disabled) { background: var(--cream-2); border-color: var(--ink-soft); }
.btn:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
.btn-primary, .sheet .px-btn.primary, .sheet-foot .px-btn:last-child {
  font: 9.5px/1.4 var(--pixel); letter-spacing: .02em; text-transform: uppercase; color: #fff; background: var(--blue); border: 0; border-radius: 0;
  padding: 13px 15px; margin: 3px; box-shadow: var(--px-ink), inset 0 -3px 0 0 rgba(0, 0, 0, .22), inset 0 3px 0 0 rgba(255, 255, 255, .25); transition: transform .08s steps(2); }
.btn-primary:hover:not(:disabled) { background: #3a7cff; transform: translateY(-2px); }
.btn-primary:disabled { opacity: .45; box-shadow: var(--px-ink); }
.px-btn.ghost, .px-btn.small { font: 700 13px var(--font); letter-spacing: 0; text-transform: none; color: var(--ink); background: #fff; margin: 0;
  padding: 8px 13px; border: 1.5px solid var(--edge); border-radius: var(--r-sm); box-shadow: none; }
.px-btn.ghost:hover, .px-btn.small:hover { background: var(--cream-2); transform: none; }
.px-btn.small:not(.ghost) { background: var(--blue); border-color: var(--blue); color: #fff; }
.bar .px-btn.ghost, .bar .px-btn.small { box-shadow: var(--soft-shadow); }

/* ---------- Texte normal pour les petites étiquettes de contenu (les en-têtes .pixel restent en pixel) ---------- */
.lab, .kv dt, .refs-title, .contacts-title, .ct-role, .kicker, .jx-time, .jx-count, .cd-caption, .sealed-badge, .seal-foot, .pill, .dsub, .src,
.sheet .need, .sheet .mod, .sheet .part-req, .cl-sec-head .cnt {
  font-family: var(--font); text-transform: none; letter-spacing: 0; }
.lab, .kv dt, .refs-title, .contacts-title, .ct-role { font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.kicker { font-size: 12px; font-weight: 600; }
.pill { font-size: 11.5px; font-weight: 700; border: 0; }
.sealed-badge { font-size: 11.5px; font-weight: 700; border-radius: 999px; }

/* ---------- En-tête flottant : pastilles arrondies, titre « PS TRACKER » toujours en pixel ---------- */
.bar .brand { border-radius: 14px; box-shadow: var(--soft-shadow); border: 1px solid var(--line); background: #fff; }
.bar .who { border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 6px 12px; }
.lang-switch { box-shadow: none; border: 1.5px solid var(--edge); border-radius: 10px; overflow: hidden; background: #fff; }
.lang-switch button { background: #fff; }
.lang-switch button + button { border-left: 1.5px solid var(--edge); }
.tab { font: 700 13px var(--font); border-radius: 999px; box-shadow: none; border: 1px solid var(--line); background: #fff; padding: 8px 14px; }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Icônes pixel art (icons.js) : deux images superposées, la seconde alterne sur l'étape en cours ---------- */
.pxa { display: inline-grid; place-items: center; line-height: 0; }
.pxa > .ico { grid-area: 1 / 1; image-rendering: pixelated; }
.pxa > .ico + .ico { visibility: hidden; }
.cur .pxa > .ico { animation: pxa-f .9s steps(1) infinite; }
.cur .pxa > .ico + .ico { animation-delay: -.45s; }
@keyframes pxa-f { 0% { visibility: visible; } 50%, 100% { visibility: hidden; } }
.next .pxa, .lock .pxa, .st-next .pxa { filter: grayscale(1); opacity: .45; }
/* Symbole de carte devenu icône (page CityMaker) */
.sec-tag { width: 34px; height: 34px; border: 0; border-radius: 11px; box-shadow: none; background: var(--cream-2); font-family: var(--font); font-weight: 800; }
.sec-tag.px-tag .ico { width: 22px; height: 22px; }
section.emph > .sec-head .sec-tag { background: var(--blue-tint); color: var(--ink); }

/* ---------- Pastille « En direct » en pixel ---------- */
.live8 { display: inline-flex; align-items: center; gap: 7px; margin: 3px 3px 3px auto; padding: 7px 8px 6px; font: 8px/1 var(--pixel); text-transform: uppercase; color: #fff; background: var(--red);
  box-shadow: 0 -2px 0 0 var(--ink), 0 2px 0 0 var(--ink), -2px 0 0 0 var(--ink), 2px 0 0 0 var(--ink); }
.live8 i { width: 6px; height: 6px; background: #fff; animation: onair 1.2s steps(1, end) infinite; }
.live8 + .sealed-badge { margin-left: 6px; }

/* ---------- Compte à rebours : texte normal, gros et lisible ---------- */
.cd-box { border-radius: 14px; box-shadow: none; }
.cd-num { font: 800 2.4rem/1.05 var(--font); letter-spacing: -.02em; }
.cd-label { font: 600 12px var(--font); text-transform: none; letter-spacing: 0; }
.cd-caption { font-size: 13px; }

/* ---------- Page CityMaker ---------- */
.terrain .top { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.terrain .top > img { border-radius: 50%; }
.terrain .keyfacts { background: transparent; border: 0; gap: 10px; }
.terrain .kf { background: var(--cream-2); border-radius: var(--r-sm); }
.terrain .progress i { border-radius: 2px; }
.terrain .cl-item.missing { background: var(--amber-tint); }

/* ---------- Écran des missions ---------- */
.block { border-radius: 20px; }
.block.hl { background: #FFF8E1; box-shadow: 0 0 0 3px var(--yellow), var(--soft-shadow); }
.b-head { display: flex; align-items: center; gap: 12px; }
.b-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--cream-2); }
.b-ico.cur { background: var(--blue-tint); }
.b-ico.done { background: var(--st-done-bg); }
.b-ico .ico { width: 30px; height: 30px; }
.b-head h3 { flex: 1; min-width: 0; }
.who-chip { border-radius: 999px; }
.b-acts { display: flex; align-items: stretch; gap: 8px; margin-top: 14px; }
.b-acts .btn { flex: none; min-height: 46px; padding: 0 18px; text-decoration: none; display: inline-flex; align-items: center; font-weight: 700; color: var(--ink); }
.block .b-acts .edit-btn { flex: 1; margin: 3px; }
.empty { border-radius: var(--r); }
.searchbar .px-input { border-radius: 14px; }

@media (prefers-reduced-motion: reduce) {
  .cur .pxa > .ico { animation: none; visibility: visible; }
  .cur .pxa > .ico + .ico { visibility: hidden; }
  .live8 i { animation: none; }
}

/* ---------- Fiche mission (interne) et page client : même charpente, les deux faces d'une même pièce ----------
   Bureau : à gauche la mission et son avancement (colonne qui reste visible), à droite les étapes. Téléphone : une colonne. */
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--soft-shadow); }
.step-card.st-now { border: 2px solid var(--blue); box-shadow: 0 12px 28px -20px rgba(32, 105, 247, .7); }
.step-card.st-done { border-color: #BFE3CC; }
.step-card.st-next { background: var(--cream-2); border: 1.5px dashed var(--st-lock); box-shadow: none; }
.sc-body:not([hidden]) { border-top: 1px solid var(--line-soft); }
.sc-foot { border-top: 1px solid var(--line-soft); }
.sc-toggle { border: 1.5px solid var(--edge); border-radius: 10px; }
.sc-toggle:hover { background: var(--cream-2); }
.sc-ico { border: 0; border-radius: 12px; background: var(--cream-2); }
.sc-ico.cur { background: var(--blue-tint); } .sc-ico.done { background: var(--st-done-bg); }
.task { border: 0; border-radius: 8px; }
.sc-status { font: 700 11.5px var(--font); border: 0; border-radius: 999px; padding: 3px 10px; }
.st-next .sc-status { background: var(--st-lock-bg); }
.sc-req { font-family: var(--font); font-size: 12px; font-weight: 700; }
.tk-ico { border-radius: 14px; box-shadow: none; }
.tk.next .tk-ico { box-shadow: none; }
.tk.cur .tk-ico { animation: none; box-shadow: 0 0 0 2px var(--blue); }
.tk.cur .tk-sub { font: 700 11.5px var(--font); }
.history-box summary .pixel { color: var(--ink); }

@media (min-width: 1000px) {
  .ps-page .page.ps-main { width: min(1340px, 100%); max-width: none; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
  .ps-main > #mission { grid-column: 1; grid-row: 1 / span 6; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; overscroll-behavior: contain;
    gap: 18px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--soft-shadow); }
  .ps-main > :not(#mission) { grid-column: 2; min-width: 0; }
  .ps-main > #mission h1 { font-size: 28px; }
  #mission .mh-top { flex-direction: column; align-items: flex-start; }
  /* Avancement : la frise devient un fil vertical (icône, nom, état), relié par un trait vert quand l'étape est finie */
  #mission .trk { grid-template-columns: 1fr; gap: 0; margin-top: 14px; }
  #mission .tk { flex-direction: row; align-items: center; text-align: left; gap: 12px; padding-bottom: 14px;
    background: linear-gradient(var(--line), var(--line)) 23px 50px / 2px calc(100% - 52px) no-repeat; }
  #mission .tk.done { background-image: linear-gradient(var(--st-done), var(--st-done)); }
  #mission .tk:last-child { background: none; padding-bottom: 0; }
  #mission .tk-ico { flex: none; }
  #mission .tk-bar { display: none; }
  #mission .tk-txt b { font-size: 14px; white-space: normal; }
  #mission .tk-sub { font-size: 12px; }
  #mission .keyline { flex-direction: column; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
  #mission .keyline .more { margin-left: 0; }
  #mission .links-box { border-top: 1px solid var(--line-soft); }
  #mission .link-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
  #mission .link-row .lab { flex-basis: 100%; }
  #mission .ct-list { grid-template-columns: 1fr; }
}

/* ---------- Page client : fil d'étapes (toutes tailles) et relecture du script en liste ---------- */
.fil { list-style: none; margin: 4px 0 0; padding: 0; display: grid; }
.fs a { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; color: var(--ink); text-decoration: none;
  background: linear-gradient(var(--line), var(--line)) 21px 46px / 2px calc(100% - 48px) no-repeat; }
.fs.done a { background-image: linear-gradient(var(--st-done), var(--st-done)); }
.fs:last-child a { background: none; padding-bottom: 0; }
.fs-ico { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--cream-2); }
.fs-ico .ico { width: 30px; height: 30px; }
.fs.done .fs-ico { background: var(--st-done-bg); }
.fs.cur .fs-ico { background: var(--blue-tint); box-shadow: 0 0 0 2px var(--blue); }
.fs.attn .fs-ico { background: var(--amber-tint); box-shadow: 0 0 0 2px var(--yellow); }
.fs-txt { display: grid; line-height: 1.25; }
.fs-txt b { font-size: 14.5px; }
.fs-txt small { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.fs.done small { color: var(--st-done); } .fs.cur small { color: var(--blue); } .fs.attn small { color: #7A5600; }
.client-page .now-wrap > .step-card { background: #fff; border: 2px solid var(--blue); box-shadow: 0 12px 28px -20px rgba(32, 105, 247, .7); }
.client-page .now-wrap.attn > .step-card { background: #fff; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.now-kick, .dossier-title { font: 700 13px var(--font); text-transform: none; letter-spacing: 0; }
.dossier-info { border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.cb-head .kick { font-family: var(--font); }

.sc-item { border-radius: 14px; }
.vd .o { border-radius: 10px; }
.vd .vd-comment { border-radius: 10px; }
.sc-close { display: none; }
.sc-dim { display: none; }
/* En liste : chaque élément replié montre son titre et son état ; ouvert, tout son contenu */
.review-list .sc-item > h4 { cursor: pointer; }
.review-list .sc-item:has(> h4):not(.is-open) > :not(h4) { display: none; }
.review-list .sc-item:has(> h4):not(.is-open) > h4::after { content: '▸'; margin-left: 4px; color: var(--ink-soft); }
.review-list .sc-item.is-open { border: 2px solid var(--ink); }
.review-list .sc-item.is-open > .sc-close { display: inline-flex; justify-content: center; }
.sc-st { margin-left: auto; font: 700 11.5px var(--font); padding: 3px 10px; border-radius: 999px; background: var(--st-lock-bg); color: var(--ink-soft); white-space: nowrap; }
.sc-st.ok { background: var(--st-done-bg); color: #0C7A43; }
.sc-st.com { background: var(--amber-tint); color: #7A5600; }
@media (max-width: 999px) {
  body.item-open { overflow: hidden; }
  body.item-open .sc-dim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(35, 35, 35, .4); }
  .review-list .sc-item.is-open { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 85vh; overflow-y: auto; margin: 0;
    border: 0; border-radius: 24px 24px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -12px 30px rgba(0, 0, 0, .2); }
  .review-list .sc-item.is-open > .sc-close { min-height: 48px; }
}

/* ---------- Administration : mêmes cartes et pastilles que le reste ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r); }
.table th { background: var(--cream-2); color: var(--ink-soft); font: 700 12px var(--font); }
.table td { border-top: 1px solid var(--line-soft); }
.table tr:hover td { background: var(--cream-2); }
.table .person, .person { border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.stat { border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }
.stat b { font: 800 18px var(--font); }
.seg { border: 1.5px solid var(--edge); border-radius: 12px; overflow: hidden; }
.seg button + button { border-left: 1.5px solid var(--edge); }
.px-btn.small.del, .px-btn.del { background: #fff; color: #C4122F; border-color: #F7B7C2; }
.px-btn.small.del:hover, .px-btn.del:hover { background: var(--m-red-t, #FFE6EA); }

.ct { border-radius: 14px; }

/* ---------- 06/11 : colonne de gauche flottante (pas de carte autour), tuiles d'icônes blanches ---------- */
@media (min-width: 1000px) {
  .ps-main > #mission { background: transparent; border: 0; box-shadow: none; padding: 8px 4px 20px; }
}
#mission .tk-ico, .fs-ico, .dz-ico { background: #fff; box-shadow: 0 6px 16px -12px rgba(35, 35, 35, .55); }
#mission .tk.done .tk-ico, .fs.done .fs-ico { background: #fff; }
#mission .tk.done .tk-ico::after, .fs.done .fs-ico::after { content: ''; position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 5px;
  background: var(--st-done) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M5 1h1v1H5zM4 2h1v1H4zM3 3h1v1H3zM1 3h1v1H1zM2 4h1v1H2z'/%3E%3C/svg%3E") center / 11px no-repeat; box-shadow: 0 0 0 2px #fff; }
.fs-ico { position: relative; }

/* Page client : le fil choisit l'étape. L'étape affichée grossit, les autres restent compactes */
.fs a { cursor: pointer; border-radius: 16px; transition: background .15s; }
.fs:not(.sel) .fs-ico { width: 38px; height: 38px; border-radius: 12px; }
.fs:not(.sel) .fs-ico .ico { width: 24px; height: 24px; }
.fs:not(.sel) .fs-txt b { font-size: 14px; color: var(--ink-soft); }
.fs:not(.sel) a:hover .fs-txt b { color: var(--ink); }
.fs.sel .fs-ico { width: 56px; height: 56px; border-radius: 18px; }
.fs.sel .fs-ico .ico { width: 38px; height: 38px; }
.fs.sel .fs-txt b { font-size: 18px; font-weight: 800; }
@media (min-width: 1000px) {
  .fs a { background-position: 19px 44px; }
  .fs.sel a { background: #fff; box-shadow: 0 10px 24px -18px rgba(35, 35, 35, .5); padding: 10px; margin: 0 -10px 12px; }
}
/* Téléphone : le fil passe à l'horizontale, l'étape choisie ressort */
@media (max-width: 999px) {
  .fil { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 -4px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .fil::-webkit-scrollbar { display: none; }
  .fs { flex: none; scroll-snap-align: center; }
  .fs a, .fs:last-child a { flex-direction: column; align-items: center; text-align: center; gap: 6px; width: 86px; padding: 8px 4px; background: none; }
  .fil .fs a, .fil .fs.done a { background-image: none; }
  .fs.sel a { background: #fff; box-shadow: 0 8px 20px -14px rgba(35, 35, 35, .55); }
  .fs.sel .fs-ico { width: 46px; height: 46px; } .fs.sel .fs-ico .ico { width: 30px; height: 30px; }
  .fs.sel .fs-txt b { font-size: 14px; }
  .fs-txt b, .fs:not(.sel) .fs-txt b { font-size: 12.5px; } .fs-txt small { font-size: 11px; }
}

/* « Votre dossier » sous le fil : lignes à icône, valeurs en gras, contacts en cartes blanches */
.dossier { margin-top: 6px; }
.dossier > summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 15px; padding: 10px 0; display: flex; align-items: center; justify-content: space-between; }
.dossier > summary::-webkit-details-marker { display: none; }
.dossier > summary::after { content: '▾'; font-size: 12px; color: var(--ink-soft); }
.dossier:not([open]) > summary::after { content: '▸'; }
.dossier[open] { display: grid; gap: 10px; }
.dz { display: flex; align-items: center; gap: 12px; }
.dz-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.dz-ico .ico { width: 24px; height: 24px; }
.dz-txt { display: grid; min-width: 0; line-height: 1.3; }
.dz-txt b { font-size: 14.5px; overflow-wrap: anywhere; }
.dossier .contacts-sec { margin-top: 6px; }
.dossier .ct-list { grid-template-columns: 1fr; gap: 8px; }
.dossier .ct { background: #fff; border: 0; box-shadow: 0 8px 20px -16px rgba(35, 35, 35, .5); }
.dossier .ct-role { color: var(--blue); }

/* Jour J côté client : volet « Fiche infos du photoshoot » par-dessus la même page */
body.infos-open { overflow: hidden; }
body.infos-open .sc-dim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(35, 35, 35, .4); }
.j-sheet:not([hidden]) { position: fixed; z-index: 41; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(680px, calc(100% - 32px)); max-height: 82vh; overflow-y: auto;
  background: #fff; border-radius: 22px; padding: 18px 20px 22px; display: grid; gap: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.j-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: -18px; background: #fff; padding: 4px 0 8px; }
.j-sheet-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
@media (max-width: 999px) {
  .j-sheet:not([hidden]) { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: auto; max-height: 85vh; border-radius: 24px 24px 0 0;
    padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

/* Impératifs du client : bloc pixel (coins en escalier, titre 8 bits) */
.jj-imp { border-radius: 0; margin: 3px; box-shadow: 0 -3px 0 0 var(--ink), 0 3px 0 0 var(--ink), -3px 0 0 0 var(--ink), 3px 0 0 0 var(--ink), 6px 6px 0 0 rgba(35, 35, 35, .25); }
.jj-imp-title { font: 10px/1.6 var(--pixel); text-transform: uppercase; }

/* Saisies dans les cartes d'étape : mêmes règles claires que la page de saisie (photoshoot.css, :is(.sheet, .step-card)) */
.step-card .flds { gap: 20px 24px; }
.part-req { font: 700 11px var(--font); border: 0; border-radius: 999px; padding: 2px 9px; }

/* ---------- 06/11 : moins de beige, plus de blanc et de couleur ----------
   Les zones crème deviennent blanches ; chaque carte d'étape porte la couleur de son étape (--c, ui.js) en bandeau. */
.step-card { border-top: 6px solid var(--c, var(--blue)); }
.step-card.st-now { border-top-width: 6px; border-top-color: var(--c, var(--blue)); }
.step-card.st-next { background: #fff; }
details.acc > summary, .sec-tag, .b-ico, .terrain .kf, .client-page .keyfacts .kf, .j-sheet .kf { background: #fff; }
details.acc > summary:hover { background: var(--blue-tint); }
.sec-tag { box-shadow: 0 4px 12px -8px rgba(35, 35, 35, .5); }
.keyfacts { gap: 8px; background: transparent; border: 0; }
.keyfacts .kf { border: 1px solid var(--line); border-radius: 12px; }
.client-page .now-kick { color: var(--blue); }
.client-page .now-wrap.attn .now-kick { color: #B07A00; }
/* Boutons de repli (▸ ▾) : petits ronds blancs au lieu des carrés à bord noir */
.fold-btn, .sc-toggle { border: 1px solid var(--line); border-radius: 50%; background: #fff; box-shadow: 0 3px 8px -6px rgba(35, 35, 35, .5); }
.fold-btn:hover, .fold-btn:focus-visible, .sc-toggle:hover { background: var(--blue-tint); }
/* Étiquettes d'état des champs dans les cartes : texte normal, pastille douce (comme dans la page de saisie) */
.step-card .need, .step-card .mod, .step-card .part-req { font: 700 11px var(--font); text-transform: none; letter-spacing: 0; border: 0; border-radius: 999px; padding: 2px 9px; }
.step-card .mod { background: transparent; color: var(--ink-soft); font-weight: 500; padding: 2px 0; }
/* Journaux (KO, recrutement, script) : carte blanche, titre en pixel (petite étiquette d'en-tête) */
.journal { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }
.part.locked { background: #fff; border: 1.5px dashed var(--st-lock); border-radius: 14px; }

/* ============ 06/11 (soir) : survol, en-tête fixe, plus de replis, récaps en tuiles, voyants d'état ============ */
/* Plus de parties repliables ni de cartes à replier : l'étape choisie dans le fil s'affiche en entier */
.fold-btn, .sc-toggle { display: none !important; }
.is-folded > * { display: revert; }

/* Survol (ordinateur) : souris sur le grand bloc → la colonne de gauche se réduit aux icônes d'étape, le grand bloc s'élargit */
@media (min-width: 1000px) and (hover: hover) {
  /* Fluide : en réduisant, les textes s'effacent d'abord puis la colonne se resserre ; en revenant, la colonne s'élargit
     puis les textes reviennent en fondu (jamais tassés dans une colonne étroite). .side-small / .hov-back (ui.js) : écran coupé en deux au bord gauche du grand bloc ; fondu seulement au retour. */
  .ps-page .page.ps-main { transition: grid-template-columns .42s cubic-bezier(.4, 0, .2, 1); }
  .side-small .ps-page .page.ps-main, .ps-page.side-small .page.ps-main { grid-template-columns: 84px minmax(0, 1fr); }
  .ps-main > #mission { transition: padding .42s cubic-bezier(.4, 0, .2, 1); }
  .ps-main > #mission > :not(.mh-prog):not(.fil), .ps-main #mission .mh-prog > :not(.trk),
  .ps-main #mission .tk-txt, .ps-main #mission .fs-txt { transition: opacity .12s ease, display .12s allow-discrete; }
  .hov-back:not(.side-small) .ps-main > #mission > :not(.mh-prog):not(.fil),
  .hov-back:not(.side-small) .ps-main #mission .mh-prog > :not(.trk),
  .hov-back:not(.side-small) .ps-main #mission .tk-txt,
  .hov-back:not(.side-small) .ps-main #mission .fs-txt { animation: hov-in .22s ease .36s backwards; }
  .side-small .ps-main > #mission > :not(.mh-prog):not(.fil),
  .side-small .ps-main #mission .mh-prog > :not(.trk),
  .side-small .ps-main #mission .tk-txt,
  .side-small .ps-main #mission .fs-txt { display: none; opacity: 0; }
  .side-small .ps-main > #mission { padding-inline: 0; overflow: visible; }
  .side-small .ps-main #mission .trk, .side-small .ps-main #mission .fil { margin-top: 0; }
  .side-small .ps-main #mission .tk, .side-small .ps-main .fs a { justify-content: center; background-position: 50% 50px; }
  .side-small .ps-main .fs.sel a { background-color: transparent; box-shadow: none; margin: 0 0 14px; padding: 0 0 14px; }
}
@keyframes hov-in { from { opacity: 0; transform: translateX(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .ps-page .page.ps-main, .ps-main > #mission { transition: none !important; }
  .hov-back .ps-main #mission * { animation: none !important; }
}
/* En-tête de la colonne de gauche (n° de mission, type, titre) : reste en haut quand on fait défiler la colonne */
@media (min-width: 1000px) {
  /* même fond que la page (couleur + quadrillage, fixés à l'écran des deux côtés) : rien ne se voit derrière, aucun raccord visible */
  #mission .mh-top, #mission .cb-head { position: sticky; top: -8px; z-index: 2; padding: 8px 4px 12px; margin-inline: -4px;
    background: inherit; background-color: var(--paper); background-image: linear-gradient(rgba(35, 35, 35, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(35, 35, 35, .035) 1px, transparent 1px);
    background-size: 24px 24px; background-attachment: fixed; }
  .client-page #mission .mh-top, .client-page #mission .cb-head { background-color: #EDF2FB;
    background-image: linear-gradient(rgba(32, 105, 247, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(32, 105, 247, .05) 1px, transparent 1px); }
  body.admin, body.jourj, body.client-page { background-attachment: fixed; }
}
/* Carrousel interne : l'étape choisie ressort dans le fil */
#mission .tk.sel .tk-ico { box-shadow: 0 0 0 2px var(--ink), 0 8px 18px -12px rgba(35, 35, 35, .6); }
#mission .tk.sel .tk-txt b { font-size: 16px; font-weight: 800; }
#mission .tk { cursor: pointer; }

/* Blocs beige, cases et tuiles blanches : les parties des étapes et de la page de saisie sur fond beige */
.step-card .part, .step-card .recap-part, .sheet-body .part { background: var(--cream-2); border: 0; border-radius: 16px; padding: 14px 16px; }
.sheet-body .part { background: #fff; box-shadow: var(--soft-shadow); } /* posé sur le fond beige : blanc, pas gris */
.step-card .part + .part { border-top: 0; margin-top: 10px; padding-top: 14px; }
.sheet-body .part > .ph { background: transparent; border-bottom: 1px solid var(--line); border-left: 0; padding: 4px 6px 12px; }
.sheet-body .part > .flds { margin: 14px 6px 6px; }
.step-card .part > h3, .step-card .part > .ph h3 { font-size: 15px; font-weight: 800; }
/* Récapitulatifs en lecture : une tuile blanche par info (intitulé en petit, valeur en gras) */
dl.recap { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin: 8px 0 0; }
dl.recap > div { background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 4px 12px -10px rgba(35, 35, 35, .5); min-width: 0; }
dl.recap > div.wide { grid-column: 1 / -1; }
dl.recap dt { font-size: 12px; font-weight: 600; color: var(--ink-soft); margin: 0 0 2px; }
dl.recap dd { margin: 0; font-weight: 700; font-size: 14.5px; overflow-wrap: anywhere; }
/* Tableaux (catégories, attendus…) : lignes en cartes blanches, intitulés de colonnes discrets */
.tbl-wrap { border: 0 !important; background: transparent; overflow-x: auto; }
table.rp { border-collapse: separate; border-spacing: 0 6px; width: 100%; }
table.rp th { background: transparent !important; color: var(--ink-soft); font: 600 12px var(--font) !important; text-transform: none !important; letter-spacing: 0 !important; text-align: left; padding: 2px 12px; }
table.rp td { background: #fff; padding: 10px 12px; border: 0 !important; }
table.rp tr td:first-child { border-radius: 12px 0 0 12px; } table.rp tr td:last-child { border-radius: 0 12px 12px 0; }

/* Voyants d'état, sur le modèle de la pastille « En direct » : ils indiquent, ils ne se cliquent pas */
.st-now .sc-status, .step-card.st-now .sc-status, .tk.cur .tk-sub, .fs.cur small {
  display: inline-flex; align-items: center; gap: 6px; font: 7.5px/1 var(--pixel) !important; text-transform: uppercase; letter-spacing: .02em; }
.st-now .sc-status, .step-card.st-now .sc-status { color: #fff; background: var(--blue); border-radius: 0; padding: 6px 7px 5px; margin: 2px;
  box-shadow: 0 -2px 0 0 var(--ink), 0 2px 0 0 var(--ink), -2px 0 0 0 var(--ink), 2px 0 0 0 var(--ink); }
.st-now .sc-status::before, .tk.cur .tk-sub::before, .fs.cur small::before { content: ''; width: 6px; height: 6px; flex: none; background: currentColor; animation: onair 1.2s steps(1, end) infinite; }
.tk.cur .tk-sub, .fs.cur small { color: var(--blue); }
/* « À remplir » : plus une pastille (on la prenait pour un bouton) mais un voyant clignotant ; « Rempli » : coche verte */
.fld .need, .sheet .need, .step-card .need { background: transparent !important; border: 0 !important; padding: 0 !important; border-radius: 0 !important;
  font: 7px/1 var(--pixel) !important; text-transform: uppercase; letter-spacing: .02em; color: var(--blue); display: inline-flex; align-items: center; gap: 5px; }
.fld.missing > .fl .need::before { content: ''; width: 6px; height: 6px; background: var(--blue); animation: onair 1.2s steps(1, end) infinite; }
.fld.missing > .fl .need::after { content: 'À remplir'; }
.fld.ok > .fl .need { color: var(--st-done); }
.fld.ok > .fl .need::before { content: '✓'; font-family: var(--font); font-size: 12px; animation: none; width: auto; height: auto; background: none; }
.fld.ok > .fl .need::after { content: 'Rempli'; }
:lang(en) .fld.missing > .fl .need::after { content: 'To fill'; }
:lang(en) .fld.ok > .fl .need::after { content: 'Filled'; }
.part-req, .step-card .part-req { background: transparent !important; color: var(--blue); font: 7px/1 var(--pixel) !important; text-transform: uppercase; padding: 0 !important; }
.part-req.ok { color: var(--st-done); }
@media (prefers-reduced-motion: reduce) { .st-now .sc-status::before, .tk.cur .tk-sub::before, .fs.cur small::before, .fld.missing > .fl .need::before { animation: none; } }
:lang(en) .fld.missing > .fl .need::before { content: ''; }
:lang(en) .fld.ok > .fl .need::before { content: '✓'; }
/* Champs : bordure gris neutre (plus de beige) */
:is(.sheet, .step-card) .fld .px-input { border-color: #CFCFCB; }
:is(.sheet, .step-card) .fld .px-input:hover:not(:disabled) { border-color: #A8A8A4; }
/* Blocs qui étaient crème (--cream) : gris clair neutre ; survols idem. Le fond de page reste beige. */
.history, .memo, .archived-note, .cl-sec-head, .form, .table tr.grp td { background: var(--cream-2); }
.px-btn.ghost { background: #fff; } /* bouton secondaire : blanc sur le fond beige, gris clair au survol */

/* ============ 06/11 (nuit) : saisies KO et Script dans la carte (design C), vue client sur demande, Pixguy ============ */
body.sheet-open { overflow: visible; } /* plus de pop-up : la page défile normalement */
.sheet-ov.sheet-inline { position: static; inset: auto; z-index: auto; display: block; padding: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.sheet-inline .sheet { position: static; width: auto; height: auto; overflow: visible; border: 0; border-radius: 0; box-shadow: none; background: transparent;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: none; animation: none; }
.sheet-inline.with-client .sheet { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.sheet-inline .sheet-head { grid-column: 1 / -1; padding: 4px 0 12px; border: 0; background: transparent; }
.sheet-inline .sheet-head::after { display: none; }
.sheet-inline .sheet-head h2 { font-size: 20px; }
.sheet-inline .toc { grid-row: auto; grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 10px 0; overflow: visible;
  position: sticky; top: 72px; z-index: 4; background: #fff; border-bottom: 1px solid var(--line-soft); } /* sous la barre flottante du haut (69 px) */
.sheet-inline .toc a { flex: none; display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid transparent; border-radius: 999px;
  background: var(--cream-2); padding: 6px 12px 6px 6px; font-size: 14px; font-weight: 700; color: var(--ink); transition: background .15s, border-color .15s; }
.sheet-inline .toc a .tn { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; font: 700 12px var(--font); color: var(--ink-soft); }
.sheet-inline .toc a:hover { border-color: var(--blue); }
.sheet-inline .toc a.done { background: var(--st-done-bg); color: var(--teal); }
.sheet-inline .toc a.done .tn { background: var(--st-done); color: #fff; font-size: 0; }
.sheet-inline .toc a.done .tn::before { content: '✓'; font-size: 13px; }
/* la partie à l'écran : pastille bleue pleine */
.sheet-inline .toc a.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.sheet-inline .toc a.on .tn { background: #fff; color: var(--blue); }
.sheet-inline .toc a.on .n { color: #fff; background: rgba(255, 255, 255, .2); }
.sheet-inline .sheet-body { grid-row: auto; overflow: visible; padding: 16px 0; gap: 16px; }
.sheet-inline .sheet-body .part { background: var(--cream-2); border: 0; border-radius: 16px; box-shadow: none; scroll-margin-top: 136px; }
.sheet-inline .sheet-body .part > .ph { background: transparent; border-left: 0; }
.sheet-inline .sheet-side { display: flex; grid-row: auto; overflow: visible; padding: 14px 16px; border-radius: 16px; border: 1.5px dashed var(--line); }
.sheet-inline .sheet-client { grid-row: auto; align-self: stretch; margin: 16px 0 16px 20px; padding: 16px; border-radius: 18px; /* défile avec la page, comme la saisie */
  display: flex; flex-direction: column; gap: 12px;
  background-color: #EDF2FB; background-size: 20px 20px; /* quadrillage bleu de la page client */
  background-image: linear-gradient(rgba(32, 105, 247, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(32, 105, 247, .08) 1px, transparent 1px); }
.sheet-client .cv-kicker { margin: 0; font-size: 9px; color: var(--blue); }
.sheet-client .cv-note { margin: 0; font-size: 13px; color: var(--blue); }
.sheet-client .part { background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--soft-shadow); }
.sheet-client .part > h3 { margin: 0 0 8px; font-size: 15px; font-weight: 800; }
.sheet-client .cv-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
/* 11/11 : retirer un champ de la vue client — croix en haut à gauche, champs qui tremblent (comme sur iPhone) */
.cv-edit { border: 1.5px solid var(--blue); background: #fff; color: var(--blue); border-radius: 999px; padding: 6px 12px; font: 700 13px var(--font); cursor: pointer; }
.cv-edit[aria-pressed="true"] { background: var(--blue); color: #fff; }
.cv-edit:focus-visible, .cv-del:focus-visible, .cv-add:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sheet-client dl.recap > div { position: relative; }
.cv-del, .cv-add { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  font: 700 18px/1 var(--font); color: #fff; box-shadow: 0 2px 6px rgba(35, 35, 35, .3); }
.cv-del { position: absolute; top: -9px; left: -9px; z-index: 1; background: #8a8a8a; }
.cv-del:hover { background: var(--red); }
.cv-add { display: inline-grid; width: 22px; height: 22px; font-size: 16px; background: var(--blue); vertical-align: middle; margin-left: 6px; }
.cv-jiggle { animation: cv-jiggle .28s ease-in-out infinite alternate; }
.cv-jiggle:nth-child(2n) { animation-delay: -.14s; }
@keyframes cv-jiggle { from { transform: rotate(-.7deg); } to { transform: rotate(.7deg); } }
@media (prefers-reduced-motion: reduce) { .cv-jiggle { animation: none; } }
.sheet-client .cv-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.cv-tool { min-width: 36px; height: 32px; padding: 0 10px; border: 1.5px solid var(--blue); border-radius: 999px; background: #fff; color: var(--blue);
  font: 700 15px var(--font); cursor: pointer; }
.cv-tool.cv-all { font-size: 13px; }
.cv-tool:disabled { border-color: var(--line); color: var(--muted); cursor: default; }
.cv-tool:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.cv-gone { background: #fff; border-radius: 14px; padding: 10px 14px; border: 1.5px dashed var(--line); }
.cv-gone-t { margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.cv-gone ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-soft); }
.cv-toggle { margin-left: auto; }
.cv-toggle[aria-pressed="true"] { background: var(--blue-tint); border-color: var(--blue); color: var(--blue); }
.sheet-inline .sheet-foot { grid-column: 1 / -1; position: sticky; bottom: 0; z-index: 4; padding: 12px 0; background: #fff; border-top: 1px solid var(--line); }
.sheet-guide-btn { margin-right: auto; display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 6px 0; cursor: pointer;
  font: 600 13px var(--font); color: var(--blue); text-align: left; }
.sheet-guide-btn:empty { display: none; }
.sheet-guide-btn::before { content: ''; width: 8px; height: 8px; background: var(--blue); flex: none; }
.sheet-guide-btn:hover { text-decoration: underline; }
@media (max-width: 999px) {
  .sheet-inline.with-client .sheet { grid-template-columns: minmax(0, 1fr); }
  .sheet-inline .sheet-client { position: static; margin: 0 0 16px; max-height: none; }
  /* téléphone : pastilles sur une ligne qui défile, barre d'action en fin de saisie (ne mange plus l'écran) */
  .sheet-inline .toc { position: static; flex-wrap: nowrap; overflow-x: auto; }
  .sheet-inline .sheet-foot { position: static; gap: 8px; }
  .sheet-inline .sheet-body .part { scroll-margin-top: 12px; }
}

/* Pixguy (public/js/pixguy.js) : arrive en courant en biais, se pose sur une zone libre, saute, parle, repart */
.pxg { position: fixed; left: 0; top: 0; z-index: 70; width: 48px; height: 62px; pointer-events: none; }
.pxg-body { position: absolute; inset: 0; }
.pxg-body img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; visibility: hidden; }
.pxg.flip .pxg-body { transform: scaleX(-1); }
.pxg.idle .i0, .pxg.hop:not(.talk) .i0, .pxg.jump:not(.talk) .i0 { visibility: visible; }
.pxg.run .w1 { animation: pxg-f2a .2s steps(1) infinite; }
.pxg.run .w2 { animation: pxg-f2b .2s steps(1) infinite; }
.pxg.talk .t1 { animation: pxg-f3 .45s steps(1) infinite; }
.pxg.talk .t2 { animation: pxg-f3 .45s steps(1) infinite -.3s; }
.pxg.talk .t3 { animation: pxg-f3 .45s steps(1) infinite -.15s; }
@keyframes pxg-f2a { 0% { visibility: visible; } 50% { visibility: hidden; } }
@keyframes pxg-f2b { 0% { visibility: hidden; } 50% { visibility: visible; } }
@keyframes pxg-f3 { 0% { visibility: visible; } 33.3% { visibility: hidden; } }
.pxg.jump .pxg-body { animation: pxg-jump .55s steps(6) 2; }
.pxg.hop .pxg-body { animation: pxg-hop .35s steps(4) 1; }
@keyframes pxg-jump { 0%, 100% { translate: 0 0; } 50% { translate: 0 -30px; } }
@keyframes pxg-hop { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.pxg-shadow { position: absolute; left: 10px; right: 10px; bottom: -4px; height: 5px; background: rgba(35, 35, 35, .18); }
.pxg-bubble { position: absolute; top: -8px; margin: 0; width: max-content; max-width: 220px; padding: 9px 12px; background: #fff; border: 3px solid var(--ink);
  border-radius: 14px; font: 700 13px/1.35 var(--font); color: var(--ink); opacity: 0; transition: opacity .15s steps(2); }
.pxg.bubble-left .pxg-bubble { right: calc(100% + 8px); }
.pxg.bubble-right .pxg-bubble { left: calc(100% + 8px); }
.pxg.talk .pxg-bubble { opacity: 1; }
.pxg-confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 69; pointer-events: none; }
/* Le bloc dont il est question */
.px-cheer { animation: px-cheer .8s steps(5) 1; }
.px-cheer.big { animation: px-cheer-big 1s steps(6) 1; }
@keyframes px-cheer { 0% { box-shadow: 0 0 0 0 var(--yellow); } 35% { box-shadow: 0 0 0 5px var(--yellow); translate: 0 -3px; } 100% { box-shadow: 0 0 0 0 transparent; translate: 0 0; } }
@keyframes px-cheer-big { 0% { box-shadow: 0 0 0 0 var(--yellow); } 25% { box-shadow: 0 0 0 7px var(--yellow); translate: 0 -6px; } 55% { translate: 0 0; } 70% { translate: 0 -3px; } 100% { box-shadow: 0 0 0 0 transparent; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .pxg *, .px-cheer, .px-cheer.big { animation: none !important; } .pxg.talk .t1 { visibility: visible; } }

/* ============ Page client : lecture guidée (design 3 du 06/11), KO une partie à la fois, script un élément à la fois ============ */
.guide { display: grid; grid-template-columns: 250px minmax(0, 1fr); border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line-soft); overflow: hidden; }
.guide.g-empty { display: block; box-shadow: none; }
.guide.g-empty .g-nav, .guide.g-empty .g-foot { display: none; }
.guide:not(.g-empty) .g-off { display: none !important; }
.g-nav { padding: 16px 10px; border-right: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.g-count { margin: 0 8px 4px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.g-nav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.g-step { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 12px; background: transparent;
  font: 700 14px var(--font); color: var(--ink); text-align: left; cursor: pointer; }
.g-step:hover { background: var(--cream-2); }
.g-dot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-2); font-size: 12px; font-weight: 800; }
.g-step.read .g-dot, .g-step.ok .g-dot { background: var(--st-done); color: #fff; }
.g-step.com .g-dot { background: var(--blue-tint); color: var(--blue); }
.g-step.cur { background: var(--blue); color: #fff; }
.g-step.cur .g-dot { background: #fff; color: var(--blue); }
.g-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-bar { height: 8px; margin: 10px 8px 0; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.g-bar i { display: block; height: 8px; background: var(--blue); transition: width .3s steps(6); }
.g-pane { padding: 22px 26px; display: flex; flex-direction: column; justify-content: flex-start; gap: 14px; min-width: 0; min-height: 360px; align-self: stretch; }
.guide { align-items: stretch; }
.g-pane > .part { background: transparent !important; box-shadow: none !important; padding: 0 !important; border: 0 !important; }
.g-pane > .part > h3 { font-size: 26px; font-weight: 800; margin: 0 0 12px; }
.g-kick { margin: 0 0 8px; font-size: 9px; color: var(--blue); }
.guide .sc-st { display: none; }
.guide .sc-item > h4 { font-size: 20px; }
.g-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) {
  .guide { grid-template-columns: minmax(0, 1fr); }
  .g-nav { border-right: 0; border-bottom: 1px solid var(--line-soft); padding: 12px 10px 10px; }
  .g-nav ol { flex-direction: row; overflow-x: auto; gap: 6px; }
  .g-step { width: auto; flex: none; padding: 6px; }
  .g-step .g-t { display: none; }
  .g-step.cur { padding-right: 12px; }
  .g-step.cur .g-t { display: inline; max-width: 150px; }
  .g-pane { padding: 18px 16px; min-height: 0; }
  .g-pane > .part > h3 { font-size: 22px; }
  .g-foot .btn { flex: 1 1 auto; }
}

/* « Quoi de neuf » (notifs.js) : une ligne en haut de page, Pixguy immobile, un lien par nouveauté ; badge « Nouveau » sur le fil */
.news-line { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 12px 16px; background: #fff; border-radius: 16px;
  box-shadow: 0 0 0 2px var(--blue), var(--soft-shadow); }
.news-line img { flex: none; width: 30px; height: 40px; image-rendering: pixelated; }
.nl-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nl-txt > b { font-size: 14px; }
.nl-list { display: flex; flex-wrap: wrap; gap: 6px; }
.nl-chip { border: 1.5px solid var(--line); border-radius: 999px; background: #fff; padding: 5px 11px; font: 700 13px var(--font); color: var(--ink); cursor: pointer; }
.nl-chip:hover, .nl-chip:focus-visible { border-color: var(--blue); background: var(--blue-tint); }
.nl-new { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 3px 5px; background: var(--yellow); color: var(--ink);
  font: 7px/1 var(--pixel); }
.terrain .t-news { max-width: 760px; margin: 84px auto 0; padding: 0 16px; } /* sous la barre flottante ; la page reprend juste après */
.terrain .t-news:has(.news-line) + .doc { padding-top: 16px; }
.terrain .t-news:empty { display: none; }
.terrain .t-news .news-line { box-shadow: 0 0 0 2px var(--green), var(--soft-shadow); margin: 0; }
.side-small .news-line img { display: block; }

/* ============ 09/11 : pop-up « Créer un fichier de livraison » — chercher d'abord, créer à la main ensuite ============ */
.q-search { position: relative; display: block; }
.q-search .q-ico { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--blue); pointer-events: none; }
.q-search .px-input { width: 100%; padding-left: 44px; }
.create-alt { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 12px; }
.create-alt .create-manual { justify-self: stretch; text-align: center; font-family: var(--pixel); font-size: 12px; padding: 16px 18px; border: 0;
  box-shadow: var(--px-ink), inset 0 -3px 0 0 rgba(0, 0, 0, .18); margin: 3px; }
.create-alt .create-test { justify-self: end; font-size: 14px; }
/* En-tête de la fiche : logo + nom = lien vers les missions */
.home-link { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; border-radius: 16px; }
.home-link:hover .logo-px, .home-link:focus-visible .logo-px { transform: translateY(-2px); }
.home-link .logo-px { transition: transform .12s steps(2); }
.link-next { display: inline-flex; align-items: center; gap: 10px; background: var(--blue); color: #fff; text-decoration: none; }
.link-next:hover { background: #3a7cff; color: #fff; }
.confirm-card { max-width: 440px; }
.bo-hint { margin: 0; font-size: 13px; }
.bar .home-link { margin-right: auto; }
.bar .home-link .brand { margin-right: 3px; }

/* Fin de mission, vue interne (09/11) : même message que le client, vert avec liseré jaune */
.end-card { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 16px; padding: 18px; background: #DDF4E7; border: 3px solid var(--st-done); box-shadow: 6px 6px 0 #FFBF0D; }
.end-card .end-ico { font-size: 28px; line-height: 1; color: var(--st-done); }
.end-card h2 { margin: 0 0 6px; font-size: 20px; line-height: 1.35; }
.end-card p { margin: 0; }

/* B08 (10/11) : flèches d'indication de la rangée de pastilles, non cliquables, seulement quand la rangée déborde */
.g-scroll { position: relative; min-width: 0; }
.g-arrow { display: none; position: absolute; top: 0; bottom: 0; z-index: 1; width: 26px; align-items: center; pointer-events: none;
  color: #8E8E8E; font-size: 22px; font-weight: 800; line-height: 1; }
.g-arrow.l { left: 0; justify-content: flex-start; background: linear-gradient(90deg, #fff 45%, rgba(255, 255, 255, 0)); }
.g-arrow.r { right: 0; justify-content: flex-end; background: linear-gradient(270deg, #fff 45%, rgba(255, 255, 255, 0)); }
.g-scroll.can-l .g-arrow.l, .g-scroll.can-r .g-arrow.r { display: flex; }

/* B06 : bouton final d'une pop-up encore verrouillé (absence de plus de 2 s non constatée) */
.px-btn.is-locked { opacity: .45; cursor: not-allowed; }

/* 11/11 : « Faire un recrutement ? » en haut de l'étape (couleur du recrutement), fiche du CityMaker assigné, choix d'une fiche */
.recruit-choice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; padding: 14px 16px;
  border-radius: 16px; background: #F1EBFF; border: 2px solid #864FFF; }
.recruit-choice .rc-q { margin: 0; display: grid; gap: 2px; color: var(--ink); }
.recruit-choice .rc-q b { font-size: 16px; color: #5B2ED1; }
.recruit-choice .rc-q span { font-size: 13px; color: var(--ink-soft); }
.rc-opts { display: flex; gap: 8px; }
.rc-o { min-width: 72px; padding: 10px 16px; border: 2px solid #864FFF; border-radius: 12px; background: #fff; color: #5B2ED1; font: 700 15px var(--font); cursor: pointer; }
.rc-o.on { background: #864FFF; color: #fff; }
.rc-o:focus-visible, .cm-pick:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.cm-assigned { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin: 8px 0 12px; }
.cm-assigned .recap { flex: 1 1 320px; margin: 0; }
.cm-modal { width: min(560px, 100%); }
.cm-search { display: grid; gap: 4px; font-weight: 600; }
.cm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 40vh; overflow: auto; }
.cm-pick { width: 100%; display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; font: 14px var(--font); }
.cm-pick:hover { border-color: #864FFF; background: #F1EBFF; }
.cm-new summary { cursor: pointer; font-weight: 700; color: #5B2ED1; padding: 6px 0; }
.cm-form { display: grid; gap: 8px; margin-top: 6px; }
.cm-form label { display: grid; gap: 4px; font-weight: 600; }
