/* AS Connect — feuille de style (modes clair et sombre, loupe 100 / 125 / 150 %) */
:root {
  --z: 1;
  --pink: #ec1a84; --pink-strong: #c8156f; --pink-soft: #fdf0f6; --pink-urgent: #d81b7a;
  --ok: #1e7a3c; --ok-bg: #e3f4e8; --warn: #9a5b00; --warn-bg: #fdf1dc; --bad: #b3261e; --bad-bg: #fde7e5; --info-bg: #e8f1fb; --info: #1d5b99;
  --bg: #f4f5f7; --card: #ffffff; --card-2: #f7f8fa; --line: #d5d9de; --line-2: #e6e9ed;
  --text: #1d2024; --text-2: #474e57; --text-3: #6b727c; --on-pink: #fff; --shadow: 0 2px 10px rgba(20, 24, 30, .06);
  --radius: 18px; --radius-s: 12px;
  font-size: calc(16px * var(--z));
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #15171b; --card: #24272e; --card-2: #1f2228; --line: #3a3e46; --line-2: #2f333a;
  --text: #f2f4f6; --text-2: #c2c8cf; --text-3: #9aa1aa; --pink-soft: #3b1a2c; --shadow: none;
  --ok: #8fd19e; --ok-bg: #1d3522; --warn: #f3c969; --warn-bg: #3a2c10; --bad: #ffb4ab; --bad-bg: #3a1916; --info-bg: #1b2a3a; --info: #9cc5f2;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; font-size: 1rem; line-height: 1.4; min-height: 100vh; }
a { color: var(--pink-strong); }
:root[data-theme="dark"] a { color: #ff7ab8; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }

/* ---------- Structure ---------- */
#app { min-height: 100vh; display: flex; }
.side { display: none; }
.shell { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .5rem; padding: .7rem .8rem; background: var(--card); border-bottom: 1px solid var(--line-2); }
.top .brand { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0; text-decoration: none; min-width: 0; }
.icon-btn { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; position: relative; color: var(--text); }
.icon-btn.plain { border: 0; }
.icon-btn .dot { position: absolute; top: 2px; right: 2px; min-width: 1.1rem; height: 1.1rem; border-radius: .6rem; background: var(--pink); color: #fff; font-size: .7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 .25rem; }
main.page { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 1rem 1rem 6rem; display: flex; flex-direction: column; gap: .9rem; }
main.page.wide { max-width: 1400px; }
.viewas { background: var(--warn-bg); color: var(--warn); font-weight: 700; text-align: center; padding: .45rem; font-size: .9rem; }
.viewas button { margin-left: .5rem; }

/* Logo « Alliance Connect » */
.logo-word { font-weight: 900; font-style: italic; white-space: nowrap; color: var(--text); letter-spacing: -.01em; }
.logo-word .c { color: var(--pink); -webkit-text-stroke: 2px #fff; paint-order: stroke fill; }
:root[data-theme="light"] .logo-word .c { -webkit-text-stroke: 1.5px #fff; text-shadow: 0 0 1px rgba(0,0,0,.25); }
.cross { height: 1.75rem; width: auto; flex: none; margin: 0 .22rem; display: block; }
.biglogo { display: flex; align-items: center; justify-content: center; margin: 1.2rem 0 .4rem; }
.biglogo .w1, .biglogo .w2 { font-size: 2.1rem; font-weight: 900; font-style: italic; color: var(--text); letter-spacing: -.01em; }
.biglogo .w2 { color: var(--pink); -webkit-text-stroke: 2px #fff; paint-order: stroke fill; }
.biglogo .cross { height: 3.2rem; margin: 0 .3rem; }

/* ---------- Textes ---------- */
h1 { font-size: 1.5rem; margin: 0; line-height: 1.2; }
h2 { font-size: 1.15rem; margin: .2rem 0 0; }
h3 { font-size: 1rem; margin: 0; }
.muted { color: var(--text-3); }
.small { font-size: .85rem; }
.hello .muted { font-size: .85rem; }
.section-title { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin: .6rem 0 0; }

/* ---------- Grands boutons d'accueil ---------- */
.tiles { display: flex; flex-direction: column; gap: .8rem; }
.tile { display: flex; align-items: center; gap: 1.1rem; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 1rem 1.1rem; box-shadow: var(--shadow); cursor: pointer; text-align: left; width: 100%; min-height: 6rem; }
.tile .bubble { width: 4.25rem; height: 4.25rem; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fff, #c9ccd1); border: 5px solid var(--pink); display: flex; align-items: center; justify-content: center; color: #4a4f58; }
.tile .t { display: block; font-size: 1.3rem; font-weight: 800; letter-spacing: .02em; line-height: 1.15; text-transform: uppercase; }
.tile .s { display: block; font-size: .92rem; color: var(--text-2); margin-top: .15rem; }
.tile .badge { margin-left: auto; }
.tile-row { display: flex; gap: .6rem; }
.tile-row .tile { flex: 2; }
.tile.urgent { flex: 1; flex-direction: column; justify-content: center; gap: .35rem; background: var(--pink-urgent); border-color: var(--pink); color: #fff; padding: .8rem .5rem; text-align: center; min-width: 0; }
.tile.urgent .t { font-size: .9rem; }
.tile.small { min-height: 4.4rem; padding: .7rem 1rem; gap: .8rem; }
.tile.small .bubble { width: 2.8rem; height: 2.8rem; border-width: 3px; }
.tile.small .t { font-size: 1rem; text-transform: none; }

/* ---------- Cartes, listes ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.card.tight { padding: .75rem; }
.card h2:first-child, .card h3:first-child { margin-top: 0; }
.row { display: flex; align-items: center; gap: .6rem; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: .6rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.list { display: flex; flex-direction: column; }
.item { display: flex; align-items: center; gap: .7rem; padding: .75rem .2rem; border-bottom: 1px solid var(--line-2); text-decoration: none; color: inherit; cursor: pointer; background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left; }
.item:last-child { border-bottom: 0; }
.item .title { font-weight: 700; }
.item .sub { font-size: .85rem; color: var(--text-3); }
.item.urgent .title::before { content: "● "; color: var(--pink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: .6rem; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-s); padding: .7rem .8rem; }
.kpi .v { font-size: 1.6rem; font-weight: 800; }
.kpi .l { font-size: .8rem; color: var(--text-3); }
.empty { text-align: center; color: var(--text-3); padding: 1.2rem .5rem; }

/* ---------- Étiquettes ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .15rem .6rem; font-size: .78rem; font-weight: 700; white-space: nowrap; background: var(--card-2); color: var(--text-2); border: 1px solid var(--line-2); }
.badge.pink { background: var(--pink-soft); color: var(--pink-strong); border-color: transparent; }
:root[data-theme="dark"] .badge.pink { color: #ff9fcb; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.badge.info { background: var(--info-bg); color: var(--info); border-color: transparent; }
.note { border-radius: var(--radius-s); padding: .65rem .8rem; font-size: .9rem; background: var(--info-bg); color: var(--info); }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.note.bad { background: var(--bad-bg); color: var(--bad); }
.note.ok { background: var(--ok-bg); color: var(--ok); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 2.9rem; padding: 0 1.2rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn.primary { background: var(--pink-strong); border-color: var(--pink-strong); color: #fff; }
.btn.primary:hover { background: #a8135f; }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.block { width: 100%; }
.btn.big { min-height: 3.5rem; font-size: 1.1rem; }
.btn.sm { min-height: 2.2rem; padding: 0 .8rem; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.actions .btn { flex: 1 1 10rem; }
.sticky-actions { position: sticky; bottom: 0; padding: .7rem 0 calc(.7rem + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); display: flex; flex-direction: column; gap: .5rem; }

/* ---------- Formulaires ---------- */
label.f { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; color: var(--text-2); font-weight: 600; }
input.i, select.i, textarea.i { width: 100%; min-height: 2.9rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); padding: .55rem .8rem; color: var(--text); font-size: 1rem; }
textarea.i { min-height: 5rem; resize: vertical; }
input.i:focus, select.i:focus, textarea.i:focus { border-color: var(--pink); outline: none; box-shadow: 0 0 0 3px rgba(236, 26, 132, .18); }
.check { display: flex; align-items: center; gap: .6rem; font-weight: 600; cursor: pointer; padding: .3rem 0; }
.check input { width: 1.4rem; height: 1.4rem; accent-color: var(--pink-strong); flex: none; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: .5rem .95rem; cursor: pointer; font-weight: 600; min-height: 2.6rem; }
.chip.on { background: var(--pink-strong); border-color: var(--pink-strong); color: #fff; }
.chip:disabled { opacity: .45; text-decoration: line-through; cursor: not-allowed; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg button { flex: 1; border: 0; background: var(--card); padding: .6rem .4rem; font-weight: 700; cursor: pointer; min-height: 2.8rem; }
.seg button.on { background: var(--pink-strong); color: #fff; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.choice { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius-s); padding: .9rem .6rem; display: flex; flex-direction: column; align-items: center; gap: .35rem; cursor: pointer; font-weight: 700; text-align: center; }
.choice.on { border: 2px solid var(--pink); background: var(--pink-soft); }

/* ---------- Étapes du circuit ---------- */
.steps { display: flex; gap: .3rem; flex-wrap: wrap; }
.stepper { display: flex; flex-direction: column; gap: 0; }
.st { display: flex; gap: .7rem; padding: .45rem 0; }
.st .dotx { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; flex: none; background: var(--card); }
.st.done .dotx { background: var(--ok); border-color: var(--ok); color: #fff; }
.st.refused .dotx { background: var(--bad); border-color: var(--bad); color: #fff; }
.st.current .dotx { border-color: var(--pink); color: var(--pink); }
.st.skip { opacity: .45; }

/* ---------- Code à 4 chiffres ---------- */
.pin-dots { display: flex; gap: .9rem; justify-content: center; margin: .8rem 0 1.2rem; }
.pin-dots span { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--text-3); }
.pin-dots span.on { background: var(--pink); border-color: var(--pink); }
.keypad { display: grid; grid-template-columns: repeat(3, 4.6rem); gap: .9rem 1.4rem; justify-content: center; }
.keypad button { width: 4.6rem; height: 4.6rem; border-radius: 50%; border: 0; background: var(--card); font-size: 1.7rem; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); border: 1px solid var(--line-2); }
.keypad button.fp { border: 2px solid var(--pink); color: var(--pink); }
.keypad button.fn { background: transparent; border: 0; box-shadow: none; }
.avatar { width: 4rem; height: 4rem; border-radius: 50%; border: 3px solid var(--pink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem; margin: 0 auto; }

/* ---------- Fenêtres, toasts ---------- */
.sheet-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; border-radius: 22px 22px 0 0; padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: .8rem; }
.sheet .grab { width: 3rem; height: .3rem; border-radius: 1rem; background: var(--line); margin: 0 auto .2rem; }
.toast { position: fixed; left: 50%; bottom: calc(1.2rem + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: .8rem 1.1rem; border-radius: 14px; z-index: 80; font-weight: 600; max-width: 92vw; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.toast.bad { background: var(--bad); color: #fff; }
.menu-list .item { padding: .9rem .4rem; font-weight: 600; }

/* ---------- Calendrier de présence ---------- */
.cal-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); max-height: 70vh; }
table.cal { border-collapse: separate; border-spacing: 0; font-size: .8rem; }
table.cal th, table.cal td { border-bottom: 1px solid var(--line-2); padding: 0; height: 2.1rem; min-width: 2rem; text-align: center; }
table.cal th { position: sticky; top: 0; background: var(--card); z-index: 2; font-weight: 700; color: var(--text-2); padding: .25rem .2rem; }
table.cal th.name, table.cal td.name { position: sticky; left: 0; z-index: 3; background: var(--card); text-align: left; padding: 0 .6rem; min-width: 8.5rem; white-space: nowrap; font-weight: 600; }
table.cal td.we, table.cal th.we { background: var(--card-2); }
table.cal td.hol { background: repeating-linear-gradient(45deg, var(--card-2), var(--card-2) 4px, var(--line-2) 4px, var(--line-2) 8px); }
table.cal th.today { color: var(--pink); }
.cell { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .7rem; }
.cell.leave { background: var(--pink); color: #fff; }
.cell.pending { background: repeating-linear-gradient(45deg, var(--pink-soft), var(--pink-soft) 5px, #f8bbd9 5px, #f8bbd9 10px); color: var(--pink-strong); }
.cell.urgent { background: #e39a17; color: #fff; }
.cell.off { background: var(--line-2); color: var(--text-3); }
.cell.recovery { background: #2f8fdd; color: #fff; }
.cell.half-am { background: linear-gradient(135deg, var(--pink) 50%, transparent 50%); }
.cell.half-pm { background: linear-gradient(135deg, transparent 50%, var(--pink) 50%); }
.cell .oc { width: .45rem; height: .45rem; border-radius: 50%; background: #2aa876; margin-left: 1px; }
.legend { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .8rem; color: var(--text-2); }
.legend i { display: inline-block; width: .9rem; height: .9rem; border-radius: 3px; vertical-align: -2px; margin-right: .25rem; }

/* ---------- Schémas des véhicules ---------- */
.vframe { background: #fff; border-radius: var(--radius-s); padding: .4rem; border: 1px solid var(--line); }
:root[data-theme="dark"] .vframe { background: #fff; }
svg.vdiag { width: 100%; height: auto; display: block; max-height: 62vh; touch-action: manipulation; }
svg.vdiag text { fill: #474e57 !important; }
svg.vdiag .zone { cursor: pointer; transition: fill-opacity .15s; }
svg.vdiag .zone:hover { fill: #ec1a84; fill-opacity: .18; }
svg.vdiag .zone.known { fill: #f0a020 !important; fill-opacity: .55 !important; stroke: #f0a020; stroke-width: 3; }
svg.vdiag .zone.sel { fill: #ec1a84 !important; fill-opacity: .6 !important; stroke: #ec1a84; stroke-width: 4; }
.views { display: grid; grid-template-columns: auto repeat(4, 1fr); gap: .4rem; align-items: stretch; }
.views .vig { width: 2.6rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; padding: 2px; display: flex; align-items: center; justify-content: center; }
.views .vig svg { width: 100%; height: auto; max-height: 3.6rem; }
.views button { min-height: 3rem; }

/* ---------- Signature plein écran ---------- */
.sigpad { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: flex; flex-direction: column; }
.sigpad .bar { display: flex; align-items: center; gap: .5rem; padding: .6rem .8rem; border-bottom: 1px solid var(--line); background: var(--card); }
.sigpad canvas { flex: 1; width: 100%; touch-action: none; background: #fff; border-radius: 12px; }
.sigpad .area { flex: 1; padding: .6rem; display: flex; }
.rotate-hint { position: fixed; inset: 0; z-index: 95; background: var(--bg); display: none; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; padding: 2rem; }
@media (orientation: portrait) and (max-width: 700px) { .sigpad.need-landscape .rotate-hint { display: flex; } }

/* ---------- Visite guidée ---------- */
.tour-back { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .55); }
.tour-box { position: fixed; z-index: 71; left: 50%; bottom: 1.5rem; transform: translateX(-50%); width: min(26rem, 92vw); background: var(--card); color: var(--text); border-radius: 18px; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.tour-focus { position: relative; z-index: 72; box-shadow: 0 0 0 4px var(--pink), 0 0 0 9999px rgba(0,0,0,.0); border-radius: 22px; }

/* ---------- Tableaux PC ---------- */
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th { text-align: left; font-size: .78rem; color: var(--text-3); font-weight: 700; padding: .5rem .4rem; border-bottom: 1px solid var(--line); }
table.t td { padding: .55rem .4rem; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tscroll { overflow-x: auto; }
.rights td .seg button { min-height: 2.1rem; font-size: .8rem; padding: .3rem .5rem; }
.photos { display: flex; flex-wrap: wrap; gap: .5rem; }
.photos .ph { width: 5.4rem; height: 5.4rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2) center/cover no-repeat; display: flex; align-items: center; justify-content: center; position: relative; cursor: pointer; font-size: .8rem; color: var(--text-3); }
.photos .ph.add { border: 2px dashed var(--pink); color: var(--pink); font-weight: 700; flex-direction: column; gap: .2rem; }
.photos .ph .x { position: absolute; top: -.4rem; right: -.4rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 0; background: var(--bad); color: #fff; font-weight: 800; cursor: pointer; }
.help-fab { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--card); color: var(--pink-strong); font-size: .95rem; font-weight: 800; line-height: 1; padding: 0; cursor: pointer; z-index: 30; border: 1.5px solid var(--pink); }

/* ---------- PC : menu latéral ---------- */
@media (min-width: 1000px) {
  .side { display: flex; flex-direction: column; gap: .2rem; width: 15.5rem; flex: none; background: var(--card); border-right: 1px solid var(--line-2); padding: 1.2rem .8rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .side .brand { display: flex; align-items: center; gap: 0; padding: 0 .5rem 1.2rem; text-decoration: none; }
  .side a.nav { display: block; padding: .65rem .8rem; border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 600; }
  .side a.nav.on { background: var(--pink-soft); color: var(--pink-strong); }
  :root[data-theme="dark"] .side a.nav.on { color: #ff8fc4; }
  .side .who { margin-top: auto; font-size: .82rem; color: var(--text-3); padding: .6rem .5rem 0; }
  .top .menu-btn { display: none; }
  main.page { padding-bottom: 3rem; }
  .tiles.home-pc { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) { .tile .t { font-size: 1.1rem; } .tile .bubble { width: 3.6rem; height: 3.6rem; } .keypad { grid-template-columns: repeat(3, 4rem); } .keypad button { width: 4rem; height: 4rem; } }
@media print { .top, .side, .help-fab, .sticky-actions { display: none !important; } body { background: #fff; } }
.seg a { flex: 1; padding: .6rem .7rem; font-weight: 700; min-height: 2.8rem; color: inherit; background: var(--card); }
.seg a.on { background: var(--pink-strong); color: #fff; }
.seg[style*="wrap"] { border-radius: var(--radius-s); }
/* Pas de débordement horizontal sur téléphone */
.grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid2 > .btn { white-space: normal; padding-left: .5rem; padding-right: .5rem; }
.views { grid-template-columns: 2.6rem repeat(4, minmax(0, 1fr)); gap: .3rem; }
.views .chip { padding: .4rem .2rem; font-size: .9rem; min-width: 0; }
.page { overflow-x: clip; }
/* Le bouton d'aide ne cache pas le bouton d'action collé en bas */
body:has(.sticky-actions) .help-fab { bottom: calc(5.6rem + env(safe-area-inset-bottom)); }
/* Photo de profil ou initiales */
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; flex: none; color: #fff; font-weight: 800; letter-spacing: .02em; vertical-align: middle; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av-edit { position: relative; display: inline-block; }
.av-edit .cam { position: absolute; right: -.2rem; bottom: -.2rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--pink-strong); color: #fff; border: 2px solid var(--card); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.archived-banner { background: var(--line-2); border-radius: var(--radius-s); padding: .7rem .9rem; font-weight: 600; }
details.arch > summary { cursor: pointer; font-weight: 700; padding: .6rem 0; list-style: none; }
details.arch > summary::before { content: '▸ '; }
details.arch[open] > summary::before { content: '▾ '; }
.side .ver { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem; font-size: .75rem; color: var(--text-3); padding: .3rem .5rem; margin-top: auto; }
.side .ver a { color: inherit; text-decoration: none; }
.side .ver + .who { margin-top: 0; }
/* Prénom en avant, nom en plus petit */
.pn { font-weight: 700; }
.ln { font-size: .78em; font-weight: 500; color: var(--text-3); margin-left: .4em; }
/* Bandeau de l'espace de démonstration */

/* v1.5 : en-tête, petit bouton d'aide */
.top { gap: .35rem; }
.top-tools { display: flex; gap: .35rem; flex: none; }
.top-title { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: .1rem; }
.top-title h1 { font-size: 1.08rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.top-title .back { width: 2rem; height: 2.2rem; flex: none; }
.hello-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.hello-row h1 { margin: 0; }
.help-mini { width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1.5px solid var(--pink); background: var(--card); color: var(--pink-strong); font-weight: 800; font-size: .95rem; line-height: 1; padding: 0; flex: none; cursor: pointer; }
@media (max-width: 359px) { .top-tools .icon-btn { width: 2.2rem; height: 2.2rem; } }
.demo-pill { margin-left: .5rem; border: 1px solid #e3c94a; background: #fff8d6; color: #6b5300; border-radius: 999px; padding: .12rem .6rem; font-weight: 700; font-size: .78rem; cursor: pointer; vertical-align: middle; }
.side .ver .demo-pill { margin-left: 0; }

/* ===== v1.6 : bande du haut fixe, logo PC au centre, démonstration discrète, relief ===== */
:root { --top-h: 4.15rem; }
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 40; min-height: var(--top-h); box-sizing: border-box; padding-top: max(.7rem, env(safe-area-inset-top)); }
body.has-top #app { padding-top: var(--top-h); }
.top-mid { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; }
.top-mid .brand { flex: none; }
.top.has-title .top-mid .brand { display: none; }
.page-head { display: none; }
.top.demo { background: #fff3b0; border-bottom-color: #ecd36a; }
:root[data-theme="dark"] .top.demo { background: #4a4214; border-bottom-color: #6b5f1c; }
.demo-box { background: #fff8d6; border: 1px solid #ecd36a; border-radius: 14px; padding: .4rem .75rem .5rem; margin: 0 0 .4rem; }
:root[data-theme="dark"] .demo-box { background: #3a3412; border-color: #6b5f1c; }
.demo-title { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #6b5300; margin: .25rem 0 .15rem; }
:root[data-theme="dark"] .demo-title { color: #f1d76b; }
.demo-row { display: flex; align-items: center; gap: .6rem; width: 100%; background: none; border: 0; text-align: left; padding: .5rem .1rem; font: inherit; font-weight: 700; color: var(--text); text-decoration: none; cursor: pointer; }
.demo-row span { display: flex; flex-direction: column; }
.demo-row small { font-weight: 500; color: var(--text-3); font-size: .8rem; }
@media (min-width: 1000px) {
  :root { --top-h: 5rem; }
  .top .top-title { display: none; }
  .top.has-title .top-mid .brand { display: flex; }
  .top .brand .logo-word { font-size: 1.75rem; }
  .top .brand .cross { height: 2.9rem; margin: 0 .35rem; }
  .side { top: var(--top-h); height: calc(100vh - var(--top-h)); }
  .page-head { display: flex; align-items: center; gap: .35rem; margin: 0 0 .2rem; }
  .page-head h1 { font-size: 1.5rem; margin: 0; }
  .page-head .back { width: 2.2rem; height: 2.2rem; }
  .side .demo-box { margin: 0 .2rem .9rem; }
  .side .demo-row { padding: .38rem .1rem; font-size: .9rem; }
}

/* Relief : cadres, tuiles et boutons légèrement bombés */
.tile, .btn, .card a.item, .kpi, .icon-btn { transition: box-shadow .15s, transform .15s, border-color .15s, background .15s; }
:root[data-theme="light"] .card, :root[data-theme="light"] .tile:not(.urgent), :root[data-theme="light"] .kpi { background: linear-gradient(180deg, #ffffff 0%, #f1f3f6 100%); border-color: #d3d8de; box-shadow: inset 0 1px 0 #fff, 0 2px 3px rgba(20,24,30,.10), 0 10px 22px rgba(20,24,30,.12); }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .tile:not(.urgent), :root[data-theme="dark"] .kpi { background: linear-gradient(180deg, #2b2f37 0%, #23262d 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 2px 3px rgba(0,0,0,.35), 0 10px 22px rgba(0,0,0,.35); }
.tile.urgent { background: linear-gradient(180deg, #f24a9f 0%, #c2106a 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 3px 4px rgba(150,10,80,.30), 0 12px 22px rgba(150,10,80,.28); }
:root[data-theme="light"] .btn:not(.primary):not(.danger):not(.ghost) { background: linear-gradient(180deg, #ffffff, #eceff2); box-shadow: inset 0 1px 0 #fff, 0 2px 3px rgba(20,24,30,.14), 0 5px 12px rgba(20,24,30,.10); }
.btn.primary { background: linear-gradient(180deg, #ec3d95 0%, #b0105f 100%); border-color: #a80f5b; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 3px 4px rgba(150,10,80,.30), 0 10px 20px rgba(150,10,80,.26); }
.tile .bubble { box-shadow: 0 3px 6px rgba(0,0,0,.16), inset 0 -4px 8px rgba(0,0,0,.10); }
:root[data-theme="light"] .icon-btn:not(.plain) { background: linear-gradient(180deg, #fff, #e9ecf0); box-shadow: inset 0 1px 0 #fff, 0 2px 4px rgba(20,24,30,.16); }
.help-mini, .help-fab { box-shadow: 0 2px 4px rgba(150,10,80,.30); }
/* Souris dessus (PC) ou doigt posé (téléphone) : contour et ombre roses */
:root .tile:not(.urgent):hover, :root .tile:not(.urgent):active, :root .kpi:hover { border-color: var(--pink) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 1px var(--pink), 0 4px 8px rgba(236,26,132,.35), 0 14px 30px rgba(236,26,132,.40) !important; transform: translateY(-2px); }
:root[data-theme="light"] .tile:not(.urgent):hover, :root[data-theme="light"] .tile:not(.urgent):active { background: linear-gradient(180deg, #ffffff 0%, #fdf0f6 100%); }
.tile.urgent:hover, .tile.urgent:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 4px 6px rgba(150,10,80,.40), 0 16px 30px rgba(236,26,132,.45); transform: translateY(-2px); }
:root .btn:not(.primary):hover, :root .btn:not(.primary):active, :root .icon-btn:not(.plain):hover, :root .icon-btn:not(.plain):active { border-color: var(--pink) !important; box-shadow: 0 0 0 1px var(--pink), 0 4px 12px rgba(236,26,132,.32) !important; }
.btn.primary:hover, .btn.primary:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 4px 6px rgba(150,10,80,.40), 0 14px 26px rgba(236,26,132,.45); }
.card a.item:hover, .card a.item:active, .list button.item:hover { background: var(--pink-soft); border-radius: 10px; }
.tile:active, .btn:active { transform: translateY(1px); }
@media (hover: none) { .tile:hover, .btn:hover { transform: none; } }
/* Mode sombre : les tuiles et les lignes cliquables gardent la couleur du texte (pas la couleur des liens) */
:root[data-theme="dark"] a.tile, :root[data-theme="dark"] a.item, :root[data-theme="dark"] a.icon-btn, :root[data-theme="dark"] .side a.nav:not(.on), :root[data-theme="dark"] a.demo-row { color: var(--text); }
:root[data-theme="dark"] a.tile.urgent { color: #fff; }

/* ---------- v1.7 : congés (jour férié, solde négatif), primes et repas, visites, dossier ---------- */
.neg { color: var(--bad) !important; }
.note.hol-warn { background: #fff1d6; color: #7a4a00; border: 2px solid #f0a32a; font-size: .95rem; }
:root[data-theme="dark"] .note.hol-warn { background: #3a2a0e; color: #ffd48a; border-color: #b87a14; }
.blink { animation: hol-blink 1s ease-in-out 6; }
@keyframes hol-blink { 0%, 100% { box-shadow: 0 0 0 0 rgba(240, 163, 42, 0); } 50% { box-shadow: 0 0 0 6px rgba(240, 163, 42, .45); background: #ffe0a3; } }
@media (prefers-reduced-motion: reduce) { .blink { animation: none; } }
.check.strong { font-weight: 800; align-items: flex-start; }
hr.sep { border: 0; border-top: 1px solid var(--line-2); margin: .8rem 0; }
.pdot { display: inline-block; width: .65rem; height: .65rem; border-radius: 50%; margin-right: .4rem; vertical-align: middle; flex: none; }
.linkbtn { background: none; border: 0; padding: .15rem 0; color: var(--pink-strong); font-weight: 700; font-size: .82rem; cursor: pointer; }
:root[data-theme="dark"] .linkbtn { color: #ff7ab8; }
.i.sm { padding: .3rem .4rem; min-height: 2.1rem; font-size: .82rem; width: auto; max-width: 12rem; }
.i.num { width: 4.6rem; text-align: right; padding: .35rem .45rem; min-height: 2.2rem; font-weight: 700; }
.i.num.xs { width: 3.2rem; }
.money-in { display: inline-flex; align-items: center; gap: .2rem; }
.x-mini { border: 0; background: none; color: var(--text-3); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: .1rem .3rem; }
.pline { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; margin: .15rem 0; }
.pline .gross { margin-left: .2rem; }
.stepper-in { display: inline-flex; align-items: center; gap: .25rem; }
.stepper-in .step { width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-weight: 800; cursor: pointer; }
.hatch { display: inline-block; min-width: 4.6rem; padding: .3rem .4rem; border-radius: 8px; font-size: .75rem; color: var(--text-3); background: repeating-linear-gradient(45deg, var(--card-2), var(--card-2) 4px, var(--line-2) 4px, var(--line-2) 8px); }
.oc-edit { display: flex; gap: .4rem; flex-wrap: wrap; } .oc-edit label { font-size: .78rem; color: var(--text-3); display: inline-flex; align-items: center; gap: .25rem; }
table.t.pay td { vertical-align: top; } table.t.pay td.who { white-space: nowrap; }
table.t tr.tot td { font-weight: 800; border-top: 2px solid var(--line); background: var(--card-2); }
table.t.recap td, table.t.recap th { white-space: nowrap; text-align: right; } table.t.recap td.who, table.t.recap th:first-child { text-align: left; }
.month-nav { max-width: 26rem; } .month-nav a, .month-nav span { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; padding: .55rem .6rem; font-weight: 700; min-height: 2.8rem; }
.month-nav span.on { background: var(--pink-strong); color: #fff; flex: 1.6; }
.pay-card .pay-row { margin-top: .55rem; padding-top: .55rem; border-top: 1px solid var(--line-2); }
.pay-actions { flex-direction: row !important; flex-wrap: wrap; gap: .6rem; } .pay-actions .btn { flex: 1 1 14rem; }
/* v1.8 : zones à toucher visibles sur les schémas de dégâts */
svg.vdiag .zone:not(.light) { stroke: #ec1a84; stroke-opacity: .55; stroke-dasharray: 4 3; stroke-width: 1.4; }
svg.vdiag .zone.light { cursor: pointer; }
.touch-hint { text-align: center; font-weight: 700; color: var(--pink-strong); margin: .2rem 0 0; }

/* ===================== v1.8 ===================== */
/* Pastilles (nombre de choses à faire) */
.pastille { min-width: 1.25rem; height: 1.25rem; padding: 0 .32rem; border-radius: .7rem; background: var(--pink); color: #fff; font-size: .72rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; line-height: 1; box-shadow: 0 1px 3px rgba(150,10,80,.4); flex: none; }
.menu-btn .pastille { position: absolute; top: 0; right: -2px; }
.menu-list .item { font-size: 1.12rem; padding: .85rem .3rem; }
.menu-list .item .pastille { margin-right: .3rem; }

/* Téléphone : logo et menu plus grands */
.top .brand .logo-word { font-size: 1.42rem; }
.top .brand .cross { height: 2.2rem; }

/* Bandeau « alertes en pause » (administrateur) */
.paused-banner { display: block; background: #f39c12; color: #3b2300 !important; font-weight: 800; text-align: center; padding: .55rem .8rem; text-decoration: none; font-size: .95rem; }
.paused-card { border: 2px solid #f39c12 !important; }
.switch-row { display: flex; align-items: center; gap: .6rem; font-size: 1.02rem; cursor: pointer; }
.switch-row input { width: 1.4rem; height: 1.4rem; accent-color: #f39c12; }

/* Démonstration : bouton « Revenir à AS Connect » dans la bande du haut */
.demo-return { display: inline-flex; align-items: center; gap: .3rem; border: 1.5px solid #c9a400; background: #fff; color: #5a4600 !important; border-radius: 999px; padding: .3rem .75rem; font-weight: 800; font-size: .85rem; text-decoration: none; white-space: nowrap; box-shadow: 0 2px 4px rgba(0,0,0,.12); }
:root[data-theme="dark"] .demo-return { background: #2a2610; color: #ffe27a !important; }
@media (max-width: 999px) {
  .top.demo { flex-wrap: wrap; }
  .top.demo .demo-return { order: 10; flex-basis: 100%; justify-content: center; border-radius: 10px; margin-top: .35rem; padding: .25rem; font-size: .8rem; }
  body.has-top:has(.top.demo .demo-return) #app { padding-top: calc(var(--top-h) + 2rem); }
}

/* Textes des avertissements et des responsabilités plus grands */
.note { font-size: 1rem; line-height: 1.45; }
.note.hol-warn { font-size: 1.05rem; }
.tile.small .t { font-size: 1.1rem; }
.tile.small .s { font-size: .98rem; }

/* Boutons roses : texte blanc partout (mode sombre compris) */
.btn.primary, a.btn.primary, :root[data-theme="dark"] a.btn.primary, :root[data-theme="dark"] .btn.primary { color: #fff !important; }
.month-nav span.on, .seg a.on, .seg button.on { color: #fff; }
/* « Signaler un problème » : lettres roses détourées de blanc, triangle détouré */
.btn.report { border: 2px solid var(--pink) !important; color: var(--pink) !important; font-weight: 900; letter-spacing: .01em; text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 2px 3px rgba(0,0,0,.18); }
.btn.report svg { filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff); stroke-width: 2.6; }
:root[data-theme="dark"] .btn.report { background: linear-gradient(180deg, #33363e, #24272e) !important; }

/* Onglets en relief (administration, gestion du personnel) */
.tabs3d { display: flex; flex-wrap: wrap; gap: .45rem; padding: .35rem; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line-2); box-shadow: inset 0 2px 4px rgba(0,0,0,.07); }
.tabs3d a { flex: 1 1 auto; text-align: center; text-decoration: none; padding: .6rem 1rem; border-radius: 12px; font-weight: 800; color: var(--text) !important; background: linear-gradient(180deg, #ffffff, #e9ecf0); border: 1px solid #d3d8de; box-shadow: inset 0 1px 0 #fff, 0 2px 3px rgba(20,24,30,.14), 0 5px 10px rgba(20,24,30,.08); }
:root[data-theme="dark"] .tabs3d a { background: linear-gradient(180deg, #343843, #272a31); border-color: #444955; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 2px 4px rgba(0,0,0,.4); }
.tabs3d a.on { background: linear-gradient(180deg, #ec3d95 0%, #b0105f 100%) !important; border-color: #a80f5b; color: #fff !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 3px 6px rgba(150,10,80,.3); }
.tabs3d a:hover { border-color: var(--pink); }

/* Champs : exemples discrets, cases obligatoires vides en rouge */
.i::placeholder, textarea::placeholder { color: var(--text-3); opacity: .55; font-style: italic; }
.i:required:placeholder-shown, .i:required:invalid { border-color: var(--bad) !important; box-shadow: 0 0 0 1px var(--bad); background-color: color-mix(in srgb, var(--bad-bg) 55%, var(--card)); }

/* Calendrier de présence plus lisible */
table.cal { font-size: .95rem; }
table.cal th, table.cal td { height: 2.6rem; min-width: 2.5rem; }
table.cal th { font-size: .9rem; color: var(--text); }
table.cal td.name { font-size: 1rem; }
table.cal td.name .wp { display: block; font-size: .72rem; font-weight: 600; color: var(--text-3); }
table.cal th.today { background: var(--pink) !important; color: #fff !important; border-radius: 8px 8px 0 0; }
table.cal td.today { background: color-mix(in srgb, var(--pink) 12%, transparent); box-shadow: inset 2px 0 0 var(--pink), inset -2px 0 0 var(--pink); }
:root[data-theme="dark"] table.cal th, :root[data-theme="dark"] table.cal td.name { background: #2a2e36; color: #f2f4f6; }
:root[data-theme="dark"] table.cal td.we, :root[data-theme="dark"] table.cal th.we { background: #1c1f24; }
:root[data-theme="dark"] table.cal th, :root[data-theme="dark"] table.cal td { border-bottom-color: #3f444d; }
:root[data-theme="dark"] table.cal .cell:empty { background: transparent; }
.legend { font-size: 1rem !important; gap: .5rem 1.1rem !important; }
.legend i { width: 1.15rem !important; height: 1.15rem !important; }

/* Tableau récapitulatif des droits */
table.rights-grid th.vert { height: 9.5rem; vertical-align: bottom; padding: .3rem 0; min-width: 2.6rem; }
table.rights-grid th.vert span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-size: .8rem; }
table.rights-grid td.rt { text-align: center; font-size: .95rem; min-width: 2.6rem; padding: .35rem .2rem; border-left: 1px solid var(--line-2); }
table.rights-grid td.rt span { display: block; font-size: .65rem; font-weight: 700; }
table.rights-grid td.rt.view { background: #e3eefb; color: #1d5b99; }
table.rights-grid td.rt.manage { background: #fbdcec; color: #a8135f; }
:root[data-theme="dark"] table.rights-grid td.rt.view { background: #1b2a3a; color: #9cc5f2; }
:root[data-theme="dark"] table.rights-grid td.rt.manage { background: #3b1a2c; color: #ff9fcb; }
table.rights-grid td.rt[data-u] { cursor: pointer; }
table.rights-grid td.rt[data-u]:hover { outline: 2px solid var(--pink); outline-offset: -2px; }
table.rights-grid tr:has(td.rt:not([data-u])) td { opacity: .6; }

/* Accueil : personnalisation */
.cust-list .item { gap: .5rem; }
.cust-list .item .mv { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cust-list .item .mv:disabled { opacity: .3; }
.cust-list .item.fixed { opacity: .7; }
.home-cards { display: grid; gap: .8rem; }

/* ---------- PC ---------- */
@media (min-width: 1000px) {
  /* Logo bien au centre de la bande du haut */
  .top { position: fixed; }
  .top .top-mid { position: absolute; left: 50%; transform: translateX(-50%); pointer-events: none; }
  .top .top-mid a { pointer-events: auto; }
  .top .top-tools { margin-right: auto; }
  .top .brand .logo-word { font-size: 1.85rem; }
  .top .brand .cross { height: 3rem; }
  /* Menu latéral : boutons légers, sélection rose, repliable */
  .side { width: 16rem; padding: .9rem .7rem; gap: .32rem; transition: width .18s; background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%); }
  :root[data-theme="dark"] .side { background: linear-gradient(180deg, #2a2e37 0%, #20232a 100%); border-right-color: #3a3f49; }
  .side .nav-list { display: flex; flex-direction: column; gap: .32rem; }
  .side a.nav { display: flex; align-items: center; gap: .65rem; padding: .55rem .7rem; border-radius: 12px; font-weight: 700; color: var(--text); background: linear-gradient(180deg, #ffffff, #f1f3f6); border: 1px solid #dde1e6; box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(20,24,30,.10); }
  .side a.nav svg { flex: none; color: var(--pink-strong); }
  .side a.nav .nl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .side a.nav:hover { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink), 0 3px 8px rgba(236,26,132,.22); }
  :root[data-theme="dark"] .side a.nav { background: linear-gradient(180deg, #363a45, #2c3039); border-color: #474c58; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 1px 3px rgba(0,0,0,.4); color: #f2f4f6; }
  :root[data-theme="dark"] .side a.nav svg { color: #ff7ab8; }
  .side a.nav.on, :root[data-theme="dark"] .side a.nav.on { background: linear-gradient(180deg, #ec3d95 0%, #b0105f 100%); border-color: #a80f5b; color: #fff !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 8px rgba(150,10,80,.35); }
  .side a.nav.on svg { color: #fff; }
  .side a.nav.on .pastille { background: #fff; color: var(--pink-strong); }
  .rail-toggle { align-self: flex-end; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin-bottom: .2rem; flex: none; }
  .rail-toggle:hover { border-color: var(--pink); color: var(--pink-strong); }
  .side .who { display: flex; gap: .5rem; align-items: center; }
  .side.rail { width: 4.7rem; padding-left: .55rem; padding-right: .55rem; }
  .side.rail .rail-toggle { align-self: center; }
  .side.rail a.nav { justify-content: center; padding: .6rem 0; position: relative; }
  .side.rail a.nav .nl, .side.rail .ver, .side.rail .who-t, .side.rail .demo-box .demo-title, .side.rail .demo-row span { display: none; }
  .side.rail a.nav .pastille { position: absolute; top: -.3rem; right: -.3rem; }
  .side.rail .who { justify-content: center; }
  .side.rail .demo-box { padding: .3rem; }
  .side.rail .demo-row { justify-content: center; }
  /* Accueil PC : boutons de même taille à gauche, « À faire » à droite sur toute la hauteur */
  .home-pc { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.1rem; align-items: stretch; }
  .home-pc .home-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; align-content: start; }
  .home-pc .home-btns .tile { min-height: 6.2rem; margin: 0; }
  .home-pc .home-btns .tile .t { font-size: 1.05rem; text-transform: none; }
  .home-pc .home-btns .tile .bubble { width: 3.4rem; height: 3.4rem; border-width: 4px; }
  .home-pc .home-btns .tile.urgent { flex-direction: row; text-align: left; justify-content: flex-start; padding: 1rem 1.1rem; gap: 1.1rem; }
  .home-pc .home-btns .tile.urgent .t { font-size: 1.05rem; }
  .home-pc .home-todo { display: flex; flex-direction: column; min-height: 100%; }
  .home-pc .home-todo .list { flex: 1; overflow-y: auto; max-height: 70vh; }
  .home-pc .cust-btn { grid-column: 1 / -1; }
}
.ios-steps { display: flex; flex-direction: column; gap: .7rem; margin: .4rem 0; }
.ios-step { display: flex; gap: .7rem; align-items: center; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 14px; padding: .7rem .8rem; font-size: 1.02rem; }
.ios-step .n { width: 2rem; height: 2rem; border-radius: 50%; background: var(--pink); color: #fff; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.tile .pastille { margin-left: auto; }
.cust-btn { align-self: center; }
/* Plannings : mes lignes en rose, semaine en cours */
.item.mine { background: var(--pink-soft); border-radius: 10px; padding-left: .5rem; padding-right: .5rem; box-shadow: inset 4px 0 0 var(--pink); }
.item.current { box-shadow: inset 4px 0 0 #2aa876; }
.item.mine.current { box-shadow: inset 4px 0 0 var(--pink), inset 8px 0 0 #2aa876; }
.chip.renfort { border-style: dashed; }
.mine-card .item .actions { margin: 0; }
/* Accueil PC (modèle validé) : une colonne de boutons compacts de même taille, « À faire » à droite */
@media (min-width: 1000px) {
  .home-pc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .home-pc .home-btns { display: flex; flex-direction: column; gap: .5rem; }
  .home-pc .home-btns .tile, .home-pc .home-btns .tile.urgent { min-height: 0; height: 3.9rem; padding: .4rem .9rem; gap: .8rem; border-radius: 16px; flex-direction: row; align-items: center; text-align: left; justify-content: flex-start; }
  .home-pc .home-btns .tile .bubble { width: 2.7rem; height: 2.7rem; border-width: 3px; }
  .home-pc .home-btns .tile .bubble svg { width: 20px; height: 20px; }
  .home-pc .home-btns .tile .t { font-size: 1rem; letter-spacing: 0; }
  .home-pc .home-btns .tile .s { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .home-pc .home-btns .tile .grow { min-width: 0; }
  .home-pc .home-btns .cust-btn { width: 100%; border: 1px solid var(--line); }
  .home-pc .home-todo .list { max-height: none; }
}
@media (min-width: 1000px) { main.page:has(.home-pc) { max-width: 1240px; } }
.home-cards { align-items: start; }
@media (max-width: 999px) {
  .top { padding-left: .45rem; padding-right: .45rem; gap: .2rem; }
  .top .top-tools { gap: .2rem; }
  .top .top-tools .icon-btn { width: 2.25rem; height: 2.25rem; }
  .top .icon-btn.plain { width: 2.35rem; }
  .top .brand .logo-word { font-size: clamp(1.1rem, 5.4vw, 1.5rem); }
  .top .brand .cross { height: clamp(1.7rem, 8.4vw, 2.4rem); margin: 0 .12rem; }
}
.cal-wrap table.cal { width: 100%; }
body:has(.sticky-actions .btn + .btn) .help-fab { bottom: calc(9.2rem + env(safe-area-inset-bottom)); }
.side.rail .demo-box:not(:has(.demo-row)) { display: none; }

/* ===================== v1.9 ===================== */
/* --- Téléphone : la bande du haut garde une taille fixe, quelle que soit la taille du texte --- */
html[data-device="phone"] .top { min-height: 66px; padding-left: 6px; padding-right: 6px; gap: 3px; }
html[data-device="phone"] .top .top-tools { gap: 3px; }
html[data-device="phone"] .top .top-tools .icon-btn { width: 36px; height: 36px; }
html[data-device="phone"] .top .icon-btn.plain { width: 38px; height: 40px; }
html[data-device="phone"] .top .icon-btn svg { width: 22px; height: 22px; }
html[data-device="phone"] .top .menu-btn svg { width: 26px; height: 26px; }
html[data-device="phone"] .top .icon-btn .dot, html[data-device="phone"] .menu-btn .pastille { font-size: 11px; min-width: 17px; height: 17px; }
html[data-device="phone"] .top .brand .logo-word { font-size: clamp(17px, 5.3vw, 22px) !important; }
html[data-device="phone"] .top .brand .cross { height: clamp(28px, 8.6vw, 36px) !important; margin: 0 6px !important; }
html[data-device="phone"] .top .top-title h1 { font-size: 18px; }
html[data-device="phone"] .top .top-title .back { width: 32px; height: 36px; }
html[data-device="phone"] { --top-h: 66px; }
html[data-device="phone"] main.page { padding-left: .75rem; padding-right: .75rem; }
html[data-device="phone"] .hello-row h1 { font-size: 1.55rem; }
html[data-device="phone"] .demo-return { font-size: 13px; }

/* --- Accueil : grille de boutons (pleine largeur ou ½ largeur) --- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .6rem; }
.home-grid > .tw.full, .home-btns > .tw.full { grid-column: 1 / -1; }
.tw { position: relative; display: flex; min-width: 0; }
.tw > .tile, .tw > .tile-row { flex: 1; min-width: 0; }
.tw > .tile-row .tile { margin: 0; }
.tile-call { position: absolute; right: .55rem; bottom: .55rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #ec3d95, #b0105f); color: #fff !important; box-shadow: 0 3px 8px rgba(150,10,80,.35); }
.tw .tile.big .grow, .tw .tile.mid .grow { padding-right: .2rem; }
.tile.big { padding: .75rem .85rem; gap: .8rem; border-radius: 18px; }
.tile.big .bubble { width: 3.2rem; height: 3.2rem; border-width: 4px; }
.tile.big .bubble svg { width: 1.7rem; height: 1.7rem; }
.tile.big .t { font-size: 1.15rem; text-transform: uppercase; }
.tile.big .s { font-size: .92rem; }
.tile.mid { padding: .6rem .8rem .6rem .6rem; gap: .7rem; border-radius: 16px; min-height: 0; }
.tile.mid .bubble { width: 2.75rem; height: 2.75rem; border-width: 3px; }
.tile.mid .bubble svg { width: 1.4rem; height: 1.4rem; }
.tile.mid .t { font-size: 1.05rem; text-transform: none; }
.tile.mid .s { font-size: .9rem; }
.tile.resp { padding: .5rem .7rem .5rem .5rem; gap: .6rem; border-radius: 16px; min-height: 0; width: 100%; font: inherit; text-align: left; cursor: pointer; }
.tile.resp .bubble { width: 2.6rem; height: 2.6rem; border-width: 3px; }
.tile.resp .bubble svg { width: 1.3rem; height: 1.3rem; }
.tile.resp .grow { text-align: center; }
.tile.resp .t { font-size: 1.05rem; text-transform: none; }
.tile.resp .s { font-size: .9rem; }
.tw.half .tile .t { font-size: 1rem; }
.tw.half .tile.big .t { font-size: 1rem; }
.tw.half .tile .s { font-size: .82rem; }
.tw.half .tile .bubble { width: 2.4rem; height: 2.4rem; }
.tw.half .tile { padding: .55rem .5rem; gap: .5rem; }
.tile-row { display: flex; gap: .5rem; }
.tile-row .tile.big { flex: 1.55; }
.tile-row .tile.urgent { flex: 1; padding: .6rem .3rem; }
.tile-row .tile.urgent .t { font-size: .88rem; }
.home-todo h3 { font-size: 1.1rem; }
.home-todo .item .title, .card .todo-row .title { font-size: 1rem; }
.home-todo .item .sub { font-size: .88rem; }
.todo-row { gap: .5rem; }
.todo-row .todo-link { text-decoration: none; color: inherit; min-width: 0; }
.todo-row .todo-go { color: var(--text-3); display: flex; }
.todo-row .btn.sm { white-space: normal; min-height: 2.3rem; line-height: 1.1; padding: .3rem .7rem; flex: none; max-width: 9.5rem; }
.home-todo { position: relative; }
.more-btn { border: 1px solid var(--line); }

/* --- Couleurs des boutons (style choisi par chacun : c2 par défaut, c1, ou classique) --- */
html:not([data-style="classic"]):not([data-style="asante"]) .tile[style*="--cfg"]:not(.urgent) .bubble { border-color: var(--cfg) !important; color: var(--cfg) !important; background: #fff !important; }
html:not([data-style="classic"]):not([data-style="asante"]) .tile[style*="--cfg"]:not(.urgent) { box-shadow: inset 7px 0 0 var(--cfg), 0 2px 6px rgba(20,24,30,.10) !important; border-color: color-mix(in srgb, var(--cfg) 30%, #d3d8de) !important; }
html[data-style="c2"] .tile[style*="--cfg"]:not(.urgent) { background: linear-gradient(90deg, #fff 35%, var(--cbg) 100%) !important; }
html[data-style="c1"] .tile[style*="--cfg"]:not(.urgent) { background: linear-gradient(90deg, var(--cbg) 0%, #fff 60%) !important; }
html[data-theme="dark"]:not([data-style="classic"]):not([data-style="asante"]) .tile[style*="--cfg"]:not(.urgent) { box-shadow: inset 7px 0 0 color-mix(in srgb, var(--cfg) 55%, #fff), 0 2px 6px rgba(0,0,0,.4) !important; border-color: color-mix(in srgb, var(--cfg) 45%, #23262d) !important; }
html[data-theme="dark"]:not([data-style="classic"]):not([data-style="asante"]) .tile[style*="--cfg"]:not(.urgent) .bubble { border-color: color-mix(in srgb, var(--cfg) 55%, #fff) !important; color: color-mix(in srgb, var(--cfg) 55%, #fff) !important; background: #1d2026 !important; }
html[data-theme="dark"][data-style="c2"] .tile[style*="--cfg"]:not(.urgent) { background: linear-gradient(90deg, #262a31 35%, color-mix(in srgb, var(--cfg) 30%, #23262d) 100%) !important; }
html[data-theme="dark"][data-style="c1"] .tile[style*="--cfg"]:not(.urgent) { background: linear-gradient(90deg, color-mix(in srgb, var(--cfg) 30%, #23262d) 0%, #262a31 60%) !important; }
/* Classique : boutons d'avant (rond rose) */
html[data-style="classic"] .tile:not(.urgent) .bubble { border-color: var(--pink); }

/* --- PC : icônes du menu en couleurs pastel, fine ligne rose de chaque côté du logo --- */
@media (min-width: 1000px) {
  html:not([data-style="classic"]):not([data-style="asante"]) .side a.nav[style*="--cfg"] svg { color: var(--cfg) !important; background: var(--cbg); border-radius: 50%; padding: 5px; width: 32px; height: 32px; box-sizing: border-box; }
  html[data-theme="dark"]:not([data-style="classic"]):not([data-style="asante"]) .side a.nav[style*="--cfg"] svg { color: color-mix(in srgb, var(--cfg) 55%, #fff) !important; background: color-mix(in srgb, var(--cfg) 30%, #23262d); }
  .side a.nav.on[style*="--cfg"] svg { color: #fff !important; background: rgba(255,255,255,.25) !important; }
  .top .top-mid { display: flex; align-items: center; gap: 18px; }
  .top .top-mid::before, .top .top-mid::after { content: ""; display: block; width: clamp(80px, 14vw, 230px); height: 2px; border-radius: 2px; }
  .top .top-mid::before { background: linear-gradient(90deg, rgba(236,26,132,0), #ec1a84); order: -1; }
  .top .top-mid::after { background: linear-gradient(90deg, #ec1a84, rgba(236,26,132,0)); }
  .home-pc .home-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; align-content: start; }
  .home-pc .home-btns .tile.big, .home-pc .home-btns .tile.mid { height: 3.9rem; padding: .4rem .9rem; }
  .home-pc .home-btns .tile.big .t { font-size: 1rem; text-transform: none; }
  .home-pc .home-btns .tile.big .bubble, .home-pc .home-btns .tile.mid .bubble { width: 2.7rem; height: 2.7rem; border-width: 3px; }
  .home-pc .home-btns .tile.big .bubble svg { width: 1.3rem; height: 1.3rem; }
  .home-pc .home-btns .tile-row { height: 3.9rem; }
  .home-pc .home-btns .tile-row .tile.urgent { flex-direction: row; gap: .6rem; padding: .4rem .8rem; }
  .home-pc .home-btns .tile-row .tile.urgent .t { font-size: 1rem; }
  .home-pc .home-btns .tile .s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .home-pc .home-btns .tw.half .tile .t { font-size: .95rem; }
  .home-pc .home-todo { overflow: auto; min-height: 220px; }
  .todo-grip { position: sticky; bottom: -.75rem; margin: .3rem -.75rem -.75rem; height: 14px; cursor: ns-resize; background: linear-gradient(var(--line), var(--line)) center/44px 3px no-repeat, var(--card); border-top: 1px solid var(--line-2); border-radius: 0 0 var(--radius) var(--radius); }
  .todo-grip:hover { background: linear-gradient(var(--pink), var(--pink)) center/56px 3px no-repeat, var(--card); }
}

/* --- Personnaliser : glisser, taille, style --- */
.cust-item .grip { cursor: grab; touch-action: none; color: var(--text-3); display: flex; padding: .3rem; }
.cust-item.dragging { opacity: .6; background: var(--pink-soft); border-radius: 10px; }
.cust-item .chip.sz { font-size: .78rem; padding: .25rem .55rem; white-space: nowrap; }
.cdot { display: inline-block; width: .8rem; height: .8rem; border-radius: 50%; background: var(--cfg); vertical-align: middle; margin: 0 .25rem; }
.style-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.style-opt { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .5rem .3rem; border-radius: 14px; border: 2px solid var(--line); background: var(--card); cursor: pointer; font: inherit; color: inherit; text-align: center; }
.style-opt.on { border-color: var(--pink); box-shadow: 0 0 0 2px var(--pink-soft); }
.style-sample .tile.mid { padding: .3rem .5rem .3rem .3rem; gap: .35rem; border-radius: 10px; pointer-events: none; }
.style-sample .tile.mid .bubble { width: 1.7rem; height: 1.7rem; border-width: 2px; }
.style-sample .tile.mid .t { font-size: .78rem; }
/* l'aperçu montre chaque style, quel que soit le style actuel */
.style-opt[data-style="c2"] .tile { box-shadow: inset 5px 0 0 var(--cfg) !important; background: linear-gradient(90deg, var(--card) 35%, color-mix(in srgb, var(--cbg) 85%, var(--card)) 100%) !important; }
.style-opt[data-style="c1"] .tile { box-shadow: inset 5px 0 0 var(--cfg) !important; background: linear-gradient(90deg, color-mix(in srgb, var(--cbg) 85%, var(--card)) 0%, var(--card) 70%) !important; }
.style-opt[data-style="classic"] .tile { box-shadow: none !important; background: var(--card) !important; }
.style-opt[data-style="classic"] .tile .bubble { border-color: var(--pink) !important; color: var(--text) !important; }

/* --- Plannings : « Cette semaine » --- */
.week-box { border: 2px solid var(--pink) !important; }
.week-box .wk-ic { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--cbg); color: var(--cfg); flex: none; }
html[data-theme="dark"] .week-box .wk-ic { background: color-mix(in srgb, var(--cfg) 30%, #23262d); color: color-mix(in srgb, var(--cfg) 55%, #fff); }
.week-box .wk-name { font-size: 1.12rem; }
.flash { animation: flash 1.6s ease-out 1; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px var(--pink); } 100% { box-shadow: 0 0 0 0 rgba(236,26,132,0); } }

/* --- Mise à jour --- */
.upd-run { display: block; }
.spin { display: inline-block; width: 1rem; height: 1rem; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.upd-file { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 14px; padding: .7rem .9rem; }
code.sha { font-size: .85em; word-break: break-all; }
.demo-return { cursor: pointer; font: inherit; }
.todo-row { flex-wrap: wrap; }
.todo-row .todo-link { flex: 1 1 60%; }
.todo-row .todo-link .title { display: inline; }
html .todo-row a.todo-link, html[data-theme="dark"] .todo-row a.todo-link { color: var(--text) !important; }
.todo-row:has(.btn) .todo-link { flex-basis: 100%; }
.todo-row .btn.sm { max-width: none; margin-left: auto; }
.style-sample { display: block; width: 100%; overflow: hidden; }
.style-sample .tile.mid { width: 100%; box-sizing: border-box; }
.style-sample .tile.mid .t { font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html .style-pick .style-opt[data-style="c2"] .tile.mid[style*="--cfg"]:not(.urgent) { box-shadow: inset 5px 0 0 var(--cfg) !important; background: linear-gradient(90deg, var(--card) 35%, var(--cbg) 100%) !important; }
html .style-pick .style-opt[data-style="c1"] .tile.mid[style*="--cfg"]:not(.urgent) { box-shadow: inset 5px 0 0 var(--cfg) !important; background: linear-gradient(90deg, var(--cbg) 0%, var(--card) 70%) !important; }
html .style-pick .style-opt[data-style="classic"] .tile.mid[style*="--cfg"]:not(.urgent) { box-shadow: none !important; background: var(--card) !important; border-color: var(--line) !important; }
html .style-pick .style-opt[data-style="classic"] .tile.mid[style*="--cfg"]:not(.urgent) .bubble { border-color: var(--pink) !important; color: var(--text) !important; }
html[data-theme="dark"] .style-pick .style-opt[data-style="c2"] .tile.mid[style*="--cfg"]:not(.urgent) { background: linear-gradient(90deg, #262a31 35%, color-mix(in srgb, var(--cfg) 30%, #23262d) 100%) !important; }
html[data-theme="dark"] .style-pick .style-opt[data-style="c1"] .tile.mid[style*="--cfg"]:not(.urgent) { background: linear-gradient(90deg, color-mix(in srgb, var(--cfg) 30%, #23262d) 0%, #262a31 70%) !important; }

/* ===================== v1.9.2 ===================== */
/* Menu du téléphone (☰) : texte d'un tiers plus grand, lignes de séparation plus visibles (hauteur des lignes inchangée) */
.menu-list .item { font-size: 1.3rem; padding: .78rem .3rem; border-bottom: 2px solid var(--line); gap: .6rem; }
.menu-list .item .grow { line-height: 1.15; min-width: 0; } /* un libellé long passe sur 2 lignes plutôt que d'être coupé */
.menu-list .item:last-child { border-bottom: 0; }
.menu-list .item svg { width: 26px; height: 26px; }
html[data-theme="dark"] .menu-list .item { border-bottom-color: #4a4f59; }

/* Annuaire par secteur */
.dir-sec { margin-top: .9rem; }
.dir-h { font-size: 1.05rem; margin: 0 0 .35rem .2rem; color: var(--pink-strong); text-transform: uppercase; letter-spacing: .04em; }
html[data-theme="dark"] .dir-h { color: #f6a5cd; }
.dir-row.me { background: var(--pink-soft); border-radius: .6rem; }
html[data-theme="dark"] .dir-row.me { background: #33262e; }

/* Tableau des droits (PC) : prénoms en haut, modules à gauche, colonnes alternées */
.rt2-wrap { overflow: auto; max-height: calc(100vh - 15rem); border: 1px solid var(--line); border-radius: .8rem; background: var(--card); }
.rt2-grid { border-collapse: separate; border-spacing: 0; font-size: 1rem; }
.rt2-grid th, .rt2-grid td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line-2); }
.rt2-grid thead th { position: sticky; background: var(--card); z-index: 2; }
.rt2-grid tr.sec th { top: 0; height: 2rem; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--pink-strong); border-bottom: 2px solid var(--pink); }
.rt2-grid tr.ppl th { top: 2rem; }
.rt2-grid th.mod { position: sticky; left: 0; z-index: 3; background: var(--card); text-align: left; padding: .55rem .8rem; min-width: 13rem; font-size: 1.02rem; font-weight: 700; border-right: 2px solid var(--line); }
.rt2-grid thead th.corner { z-index: 4; }
.rt2-grid th.pp { min-width: 7.2rem; padding: .5rem .4rem; vertical-align: bottom; text-align: center; }
.rt2-grid th.pp a { display: block; font-size: 1.08rem; font-weight: 800; color: var(--text); text-decoration: none; }
.rt2-grid th.pp .rl { display: block; font-size: .86rem; font-weight: 600; color: var(--muted); line-height: 1.2; margin-top: .15rem; }
.rt2-grid th.pp.odd, .rt2-grid td.odd { background: #f1f3f6; }
.rt2-grid td.rt2 { text-align: center; padding: .4rem .3rem; cursor: pointer; font-size: .98rem; min-height: 2.6rem; }
.rt2-grid td.rt2.ro { cursor: default; opacity: .75; }
.rt2-grid td.rt2 b { display: inline-block; min-width: 4.6rem; padding: .28rem .5rem; border-radius: .45rem; }
.rt2-grid td.rt2.none b { color: var(--muted); font-weight: 600; }
.rt2-grid td.rt2.view b { background: #dcebfb; color: #134b85; }
.rt2-grid td.rt2.manage b { background: #fbd9ea; color: #8c0c4c; }
.rt2-grid td.rt2 small, .rt2-ml small { display: block; font-size: .74rem; font-weight: 700; color: #a2560a; margin-top: .1rem; }
.rt2-grid td.rt2.pend, .rt2-grid td.rt2.pend.odd { background: #ffe9cf; box-shadow: inset 0 0 0 2px #f08a1c; }
.rt2-grid td.rt2.pend b { background: #f08a1c; color: #fff; }
.rt2-grid td.rt2:hover:not(.ro) { box-shadow: inset 0 0 0 2px var(--pink); }
html[data-theme="dark"] .rt2-grid thead th, html[data-theme="dark"] .rt2-grid th.mod { background: #24272e; }
html[data-theme="dark"] .rt2-grid th.pp a { color: #f2f3f5; }
html[data-theme="dark"] .rt2-grid th.pp .rl { color: #b9bec7; }
html[data-theme="dark"] .rt2-grid th.pp.odd, html[data-theme="dark"] .rt2-grid td.odd { background: #2c3038; }
html[data-theme="dark"] .rt2-grid tr.sec th { color: #f6a5cd; }
html[data-theme="dark"] .rt2-grid td.rt2.view b { background: #2f6fb5; color: #fff; }
html[data-theme="dark"] .rt2-grid td.rt2.manage b { background: #c8156f; color: #fff; }
html[data-theme="dark"] .rt2-grid td.rt2.pend, html[data-theme="dark"] .rt2-grid td.rt2.pend.odd { background: #4a3317; }
html[data-theme="dark"] .rt2-grid td.rt2 small, html[data-theme="dark"] .rt2-ml small { color: #ffc37a; }
.rt2-bar { position: sticky; top: 4.2rem; z-index: 6; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding: .6rem .8rem; margin: .4rem 0 .6rem; border-radius: .7rem; background: #fff1df; border: 2px solid #f08a1c; color: #6b3a00; font-size: 1rem; }
html[data-theme="dark"] .rt2-bar { background: #4a3317; color: #ffd9a8; }
.rt2-confirm { max-height: 50vh; overflow: auto; }
/* Tableau des droits (téléphone) : une personne à la fois */
.rt2-sec { margin: .5rem 0 .25rem; text-transform: uppercase; letter-spacing: .04em; }
.rt2-people .chips { gap: .4rem; }
.rt2-person { margin-top: .8rem; }
.rt2-name { font-size: 1.25rem; }
.rt2-line { display: flex; flex-direction: column; gap: .35rem; padding: .55rem .2rem; border-bottom: 1px solid var(--line-2); }
.rt2-line.pend { background: #fff1df; border-radius: .6rem; padding: .55rem .5rem; box-shadow: inset 0 0 0 2px #f08a1c; }
html[data-theme="dark"] .rt2-line.pend { background: #4a3317; }
.rt2-ml { font-weight: 700; font-size: 1.05rem; }
.seg3 { display: flex; border: 1px solid var(--line); border-radius: .7rem; overflow: hidden; }
.seg3 button { flex: 1; border: 0; border-right: 1px solid var(--line); background: var(--card); color: var(--text); padding: .7rem .3rem; font-weight: 700; font-size: 1.02rem; cursor: pointer; min-height: 3rem; }
.seg3 button:last-child { border-right: 0; }
.seg3 button.none.on { background: #6b7280; color: #fff; }
.seg3 button.view.on { background: #2f6fb5; color: #fff; }
.seg3 button.manage.on { background: #c8156f; color: #fff; }
.rt2-line.pend .seg3 button.on { background: #f08a1c; color: #fff; }
.seg3 button:disabled { opacity: .5; cursor: not-allowed; }

/* Fiche d'une personne : ancienneté, âge */
.person-facts { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .55rem; color: var(--muted); }

/* Récapitulatif du personnel */
table.recap th[data-sort] { cursor: pointer; white-space: nowrap; user-select: none; }
table.recap th.on { color: var(--pink-strong); }
table.recap td { white-space: nowrap; }
table.recap tr.recap-sec td { background: var(--card-2); font-weight: 800; color: var(--pink-strong); text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; }

/* Bulletins de salaire */
.slip-year { margin: 1rem 0 .4rem .2rem; font-size: 1.1rem; }
.slip .slip-ico { color: var(--pink-strong); }
.slip { flex-wrap: wrap; }
.slip-w { flex-wrap: wrap; gap: .5rem; }
.slip-w.todo { background: var(--warn-bg); border-radius: .6rem; padding: .6rem .5rem; }
.slip-w select { max-width: 16rem; }
.month-nav h2 { text-transform: none; }

/* Anniversaires */
.bday-ico { font-size: 1.4rem; width: 2rem; text-align: center; }
.b-today { color: var(--pink-strong); font-weight: 800; }

/* Espace disque */
.disk-bar { height: .9rem; border-radius: .5rem; background: var(--line-2); overflow: hidden; }
.disk-bar span { display: block; height: 100%; background: linear-gradient(90deg, #22844f, #3aa86b); }
.disk-bar.low span { background: linear-gradient(90deg, #d0461f, #b3261e); }

/* Primes : colonne du taux horaire */
table.pay td.rate .money-in input { width: 5.2rem; }
html[data-theme="dark"] .rt2-grid td.rt2.pend b, .rt2-grid td.rt2.pend.view b, .rt2-grid td.rt2.pend.manage b { background: #f08a1c; color: #fff; }
.slip .grow { min-width: 9rem; }
.slip-btns { display: flex; gap: .5rem; margin-left: auto; }
html[data-device="phone"] .slip-btns { width: 100%; }
html[data-device="phone"] .slip-btns .btn { flex: 1; justify-content: center; }

/* ===================== v1.9.3 ===================== */
/* Écran du code : tout tient dans la hauteur du téléphone (les touches s'adaptent à la hauteur disponible) */
main.page:has(> .pin-screen) { padding-top: max(.6rem, env(safe-area-inset-top)) !important; padding-bottom: .4rem; min-height: 100dvh; box-sizing: border-box; }
.pin-screen { --kb: min(4.6rem, 10.2dvh, 22vw); display: flex; flex-direction: column; align-items: center; margin-top: 0 !important; min-height: calc(100dvh - 1.2rem); justify-content: space-evenly; }
.pin-screen .avatar { width: min(4rem, 9dvh); height: min(4rem, 9dvh); font-size: min(1.4rem, 3.2dvh); margin-top: min(1rem, 1.6dvh) !important; }
.pin-screen h1 { margin: min(.5rem, 1dvh) 0 0 !important; font-size: min(1.6rem, 4dvh); }
.pin-screen .pin-dots { margin: min(.8rem, 1.6dvh) 0 min(1rem, 2dvh); }
.pin-screen .keypad, .lock-box .keypad { grid-template-columns: repeat(3, var(--kb)); gap: min(.9rem, 1.8dvh) 1.4rem; }
.pin-screen .keypad button, .lock-box .keypad button { width: var(--kb); height: var(--kb); font-size: calc(var(--kb) * .37); }
.pin-screen p { margin: min(.8rem, 1.4dvh) 0 0 !important; }

/* Verrouillage du PC */
body.locked { overflow: hidden; }
.lock-back { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(20, 22, 27, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); outline: none; }
.lock-box { --kb: min(4.2rem, 8.5dvh); background: var(--card); border-radius: 1.4rem; padding: 1.6rem 2.2rem 1.3rem; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.35); width: min(26rem, 92vw); max-height: 96dvh; overflow: auto; }
.lock-box .logo, .lock-box svg:first-child { max-width: 15rem; }
.lock-av { display: flex; justify-content: center; margin: .9rem 0 .3rem; }
.lock-box h2 { margin: .2rem 0; }
.lk-err { color: var(--bad); font-weight: 700; margin: .6rem 0 0; }
.lock-warn { position: fixed; left: 50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 9998; display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; border-radius: 1rem; background: #fff1df; border: 2px solid #f08a1c; color: #6b3a00; box-shadow: 0 10px 30px rgba(0,0,0,.25); width: min(34rem, 94vw); }
html[data-theme="dark"] .lock-warn { background: #4a3317; color: #ffd9a8; }
.lock-logo { display: flex; align-items: center; justify-content: center; gap: .2rem; font-size: 1.35rem; }
.lock-logo .cross { height: 2rem; }

/* ===================== v1.9.4 ===================== */
/* Icônes en relief : anneau à la couleur du bouton, disque clair ou sombre selon le mode */
.asi { --ring: var(--cfg, #c8156f); display: block; width: 100%; height: 100%; flex: none; overflow: visible; filter: drop-shadow(0 0 2.5px color-mix(in srgb, var(--ring) 55%, transparent)); }
.asi .ring { fill: var(--ring); }
.asi .disc { fill: url(#asi-disc-l); }
.asi .edge { fill: none; stroke: #000; stroke-opacity: .12; stroke-width: 1; }
.asi .gl { fill: url(#asi-metal-l); stroke: url(#asi-metal-l); }
img.asi-home { object-fit: contain; filter: none; }
/* Mode sombre (styles couleurs et classique) ; thème a-sante.net : seulement si « icônes foncées » est choisi */
html[data-icons="dark"] .asi .disc, html[data-icons="dark"] .asi .disc { fill: url(#asi-disc-d); }
html[data-icons="dark"] .asi .gl, html[data-icons="dark"] .asi .gl { fill: url(#asi-metal-d); stroke: url(#asi-metal-d); }
html[data-icons="dark"] .asi .edge, html[data-icons="dark"] .asi .edge { stroke-opacity: .5; }
html[data-icons="dark"] .asi :is([fill="#e2e2e2"], [fill="#d8d8d8"], [fill="#d6d6d6"]), html[data-icons="dark"] .asi :is([fill="#e2e2e2"], [fill="#d8d8d8"], [fill="#d6d6d6"]) { fill: #3a3f47; }
html[data-icons="dark"] .asi [fill="#ececec"], html[data-icons="dark"] .asi [fill="#ececec"] { fill: #2f343b; }
html[data-icons="dark"] .asi :is([stroke="#e2e2e2"], [stroke="#ececec"]), html[data-icons="dark"] .asi :is([stroke="#e2e2e2"], [stroke="#ececec"]) { stroke: #3a3f47; }
html[data-icons="dark"] .asi [fill="#c9cfd6"], html[data-icons="dark"] .asi [fill="#c9cfd6"] { fill: #5d6a78; }
/* Dans les boutons de l'accueil : l'icône remplace l'ancienne bulle */
.tile .bubble.b3d, html .tile[style*="--cfg"]:not(.urgent) .bubble.b3d, html[data-theme="dark"] .tile[style*="--cfg"]:not(.urgent) .bubble.b3d, html[data-style="classic"] .tile:not(.urgent) .bubble.b3d { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0; }
.tile .bubble.b3d { width: 4.4rem; height: 4.4rem; }
.tile.big .bubble.b3d { width: 3.6rem; height: 3.6rem; }
.tile.mid .bubble.b3d, .tile.resp .bubble.b3d { width: 3.2rem; height: 3.2rem; }
.tw.half .tile .bubble.b3d { width: 3rem; height: 3rem; }
.tile .bubble.b3d svg.asi { width: 100% !important; height: 100% !important; }
@media (min-width: 1000px) { .home-pc .home-btns .tile .bubble.b3d, .home-pc .home-btns .tile.big .bubble.b3d, .home-pc .home-btns .tile.mid .bubble.b3d { width: 3.1rem; height: 3.1rem; } }
/* Menu PC et menu ☰ */
.side a.nav .nav3d, .side a.nav img.asi-home { width: 1.9rem !important; height: 1.9rem !important; background: none !important; padding: 0 !important; }
.side a.nav.on .asi { filter: drop-shadow(0 0 3px rgba(255,255,255,.6)); }
.menu-list .item .menu3d, .menu-list .item img.asi-home { width: 2.3rem !important; height: 2.3rem !important; }
/* À côté du titre de l'écran */
.title3d { display: inline-flex; width: 2.1rem; height: 2.1rem; flex: none; margin-right: .45rem; vertical-align: middle; }
.page-head, .top-title { display: flex; align-items: center; }
.style-sample .bubble.b3d { width: 1.8rem !important; height: 1.8rem !important; }

/* ===== Thème « a-sante.net » (comme le site) ===== */
html[data-style="asante"] { --pink: #ff1493; }
html[data-style="asante"] .asi { --ring: #ff1493; }
html[data-style="asante"][data-theme="dark"] body, html[data-style="asante"][data-theme="dark"] .shell { background: #14171a; }
html[data-style="asante"][data-theme="light"] body, html[data-style="asante"][data-theme="light"] .shell { background: #eef0f3; }
html[data-style="asante"] .tile, html[data-style="asante"] .tile[style*="--cfg"]:not(.urgent) { border-radius: 12px !important; border: 1px solid #4a4f58 !important; background: linear-gradient(180deg, #2b2f36, #1f2328) !important; color: #fff !important; box-shadow: 0 2px 6px rgba(0,0,0,.35) !important; }
html[data-style="asante"][data-theme="light"] .tile, html[data-style="asante"][data-theme="light"] .tile[style*="--cfg"]:not(.urgent) { border-color: #c9cdd4 !important; background: linear-gradient(180deg, #ffffff, #e7e9ed) !important; color: #1d2026 !important; box-shadow: 0 2px 5px rgba(0,0,0,.12) !important; }
html[data-style="asante"] .tile .t { text-transform: uppercase; font-weight: 800; color: inherit !important; }
html[data-style="asante"][data-theme="dark"] .tile .s { color: #c9ccd2 !important; }
html[data-style="asante"] .tile:hover { border-color: #ff1493 !important; }
html[data-style="asante"] .side a.nav, html[data-style="asante"] .side a.nav[style*="--cfg"] { border-radius: 10px; border: 1px solid #4a4f58 !important; background: linear-gradient(180deg, #2b2f36, #1f2328) !important; color: #fff !important; box-shadow: none !important; }
html[data-style="asante"][data-theme="light"] .side a.nav, html[data-style="asante"][data-theme="light"] .side a.nav[style*="--cfg"] { border-color: #c9cdd4 !important; background: linear-gradient(180deg, #fff, #e7e9ed) !important; color: #1d2026 !important; }
html[data-style="asante"] .side a.nav.on, html[data-style="asante"] .side a.nav.on[style*="--cfg"] { border-color: #ff1493 !important; box-shadow: 0 0 0 1px #ff1493, 0 0 12px rgba(255,20,147,.35) !important; }
html[data-style="asante"][data-theme="dark"] .side, html[data-style="asante"][data-theme="dark"] header.top { background: #14171a; border-color: #2c3038; }
html[data-style="asante"] .hello b, html[data-style="asante"] .hello .name { color: #ff1493; }
.style-opt[data-style="asante"] .tile, html .style-pick .style-opt[data-style="asante"] .tile.mid[style*="--cfg"]:not(.urgent) { --cfg: #ff1493; border-radius: 8px !important; border: 1px solid #4a4f58 !important; background: linear-gradient(180deg, #2b2f36, #1f2328) !important; color: #fff !important; box-shadow: none !important; }
.side a.nav svg.asi { padding: 0 !important; background: none !important; border-radius: 0 !important; box-sizing: content-box; }
html .style-pick .style-opt .tile .bubble.b3d { border: 0 !important; background: none !important; box-shadow: none !important; }
.style-opt[data-style="classic"] .asi { --ring: #e0007a; }
.style-opt[data-style="asante"] .asi { --ring: #ff1493; }
.demo-back-box { width: min(32rem, 92vw); }
.demo-back-box h2 { font-size: 1.3rem; margin: .4rem 0 .6rem; }
.demo-back-box p { text-align: left; }
.demo-back-ico { font-size: 2.6rem; margin-top: .6rem; }
html[data-style="asante"] body .tile:not(.urgent), html[data-style="asante"] body .tile[style*="--cfg"]:not(.urgent) { box-shadow: 0 2px 6px rgba(0,0,0,.35) !important; border: 1px solid #4a4f58 !important; background: linear-gradient(180deg, #2b2f36, #1f2328) !important; color: #fff !important; }
html[data-style="asante"][data-theme="light"] body .tile:not(.urgent), html[data-style="asante"][data-theme="light"] body .tile[style*="--cfg"]:not(.urgent) { border-color: #c9cdd4 !important; background: linear-gradient(180deg, #fff, #e7e9ed) !important; color: #1d2026 !important; box-shadow: 0 2px 5px rgba(0,0,0,.12) !important; }
html[data-style="asante"] body .tile:not(.urgent):hover { border-color: #ff1493 !important; }
html[data-style="asante"] body .tile .t { text-transform: uppercase !important; letter-spacing: .01em; }

/* ===================== v1.9.5 ===================== */
/* Icônes de « Personnaliser mon accueil » */
.cust3d { display: inline-flex; width: 1.9rem; height: 1.9rem; flex: none; vertical-align: middle; margin: 0 .35rem 0 .15rem; }
/* Aperçu d'une icône claire ou foncée dans les choix (quel que soit le mode en cours) */
.ico-sample { display: inline-flex; width: 2.6rem; height: 2.6rem; }
html .ico-sample.ico-light .asi .disc { fill: url(#asi-disc-l); }
html .ico-sample.ico-light .asi .gl { fill: url(#asi-metal-l); stroke: url(#asi-metal-l); }
html .ico-sample.ico-light .asi .edge { stroke-opacity: .12; }
html .ico-sample.ico-dark .asi .disc { fill: url(#asi-disc-d); }
html .ico-sample.ico-dark .asi .gl { fill: url(#asi-metal-d); stroke: url(#asi-metal-d); }
html .ico-sample.ico-dark .asi .edge { stroke-opacity: .5; }
.ico-pick .style-opt { align-items: center; }

/* v1.9.6 : annuaire complet, fiche d'un collaborateur, tableau de bord personnalisable, ordre du menu */
.red, a.red { color: var(--bad) !important; font-weight: 700; }
.dir-row { cursor: pointer; }
.pc-head { display: flex; gap: .8rem; align-items: center; margin-bottom: .8rem; }
.pc-num, .pc-mail { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border: 1px solid var(--line-2); border-radius: var(--radius-s); background: var(--card-2); margin-bottom: .5rem; color: inherit; text-decoration: none; }
.pc-num small, .pc-mail small, .pc-row small { display: block; color: var(--text-3); font-size: .78rem; }
.pc-num b { font-size: 1.12rem; letter-spacing: .02em; }
.pc-mail b { word-break: break-all; }
.pc-num.red b { color: var(--bad); }
.pc-warn { color: var(--bad) !important; font-weight: 700; }
.pc-ico { font-size: 1.35rem; width: 1.8rem; text-align: center; flex: none; }
.pc-tr { color: #1d5bd6; font-weight: 800; }
.pc-row { display: flex; gap: 1.2rem; padding: .3rem .7rem .7rem; }
.pc-row b { font-size: 1.1rem; }
.ad-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .6rem; }
.ad-actions .btn { flex: 1 1 auto; }
.ad-t { font-size: .9rem; }
.ad-t td, .ad-t th { white-space: nowrap; padding: .35rem .5rem; }
.ad-t td.c, .ad-t th.c { text-align: center; }
.ad-t tr.sec td { background: var(--pink); color: #fff; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; }
.ad-t tr.ad-p { cursor: pointer; }
.ad-t tr.ad-p:hover td { background: var(--pink-soft); }
.ad-t a { color: inherit; }
.mt { display: inline-block; font-size: .66rem; font-weight: 800; padding: 0 .3rem; border-radius: 4px; background: var(--info-bg); color: var(--info); vertical-align: middle; }
.mt.prive { background: var(--warn-bg); color: var(--warn); }
.ad-sh { background: var(--pink); color: #fff; font-weight: 800; text-transform: uppercase; font-size: .8rem; letter-spacing: .04em; padding: .35rem .7rem; border-radius: 8px; margin: .8rem 0 .4rem; }
.ad-card { display: flex; align-items: center; gap: .5rem; width: 100%; text-align: left; background: var(--card); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: .55rem .7rem; margin-bottom: .35rem; font: inherit; }
.ad-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 1rem; margin-top: 1rem; }
.ad-two h3 { margin: 0 0 .4rem; }
.ad-legend { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .85rem; color: var(--text-2); margin: 1rem 0 .6rem; }
.ad-mail { background: var(--pink); color: #fff; font-size: 1.15rem; font-weight: 800; text-align: center; padding: .7rem; border-radius: var(--radius-s); }
.ad-mail b { color: #fff; }
.ad-wifi { margin-top: .6rem; padding: .6rem .8rem; border: 1px dashed var(--line); border-radius: var(--radius-s); }
.ed-t input.i.sm { min-width: 6rem; }
.ed-t td { padding: .2rem; }
#ml .cust-item .grip { cursor: grab; touch-action: none; color: var(--text-3); padding: .2rem; }
#ml .cust-item.dragging { opacity: .6; outline: 2px dashed var(--pink); }
.pc-num b { white-space: nowrap; }
.pc-num .grow, .pc-mail .grow { min-width: 0; }
.pc-mail { flex-wrap: wrap; }
.pc-mail .grow { flex: 1 1 100%; }
.pc-mail .btn { flex: 1 1 auto; }
@media (max-width: 420px) { .pc-num b { font-size: 1.02rem; } .pc-num .btn { padding-inline: .7rem; } }

/* v1.9.7 : annuaire en trois vues, fiche d'un collaborateur au centre de l'écran */
.ad-seg { margin: 0 auto .8rem; max-width: 52rem; }
.ad-seg button { font-size: .92rem; line-height: 1.15; }
.narrow { max-width: 46rem; margin-left: auto; margin-right: auto; }
.ad-top { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .6rem; }
.ad-top .i { flex: 1 1 14rem; }
.sheet-back.center { align-items: center; padding: 1rem; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(10, 12, 16, .55); }
.sheet-back.center .sheet { border-radius: 24px; max-width: 440px; padding: 0; gap: 0; animation: pc-pop .22s ease-out; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
@keyframes pc-pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
.pc-hero { position: relative; text-align: center; padding: 1.6rem 1rem 1.1rem; background: linear-gradient(160deg, var(--pink) 0%, var(--pink-strong) 100%); color: #fff; border-radius: 24px 24px 0 0; }
.pc-hero .avatar, .pc-hero > span:first-of-type { margin: 0 auto .6rem; box-shadow: 0 0 0 4px rgba(255, 255, 255, .85); }
.pc-hero h2 { margin: .3rem 0 0; color: #fff; font-size: 1.5rem; }
.pc-fn { font-weight: 700; opacity: .95; }
.pc-sv { font-size: .85rem; opacity: .85; }
.pc-x { position: absolute; top: .7rem; right: .7rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .22); color: #fff; font-size: 1rem; cursor: pointer; }
.pc-acts { display: flex; justify-content: center; gap: .8rem; padding: 1rem .8rem .4rem; }
.pc-act { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-decoration: none; color: var(--text); font-size: .82rem; font-weight: 700; min-width: 4.5rem; }
.pc-act-i { width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--pink-soft); color: var(--pink-strong); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; border: 2px solid var(--pink); }
.pc-act.red .pc-act-i { border-color: var(--bad); color: var(--bad); }
.pc-body { padding: .6rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.pc-line { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: var(--radius-s); background: var(--card); border: 1px solid var(--line-2); color: inherit; text-decoration: none; }
.pc-line small { display: block; color: var(--text-3); font-size: .78rem; }
.pc-line b { font-size: 1.08rem; white-space: nowrap; }
.pc-line.red b { color: var(--bad); }
.pc-line .grow { min-width: 0; }
.pc-line:last-child b, .pc-line b:only-child { white-space: normal; word-break: break-all; }
.ad-mail b { white-space: nowrap; }
.narrow { width: 100%; box-sizing: border-box; }
.ad-seg { width: 100%; }
@media (max-width: 700px) { .ad-top .btn { flex: 1 1 auto; } .ad-top .i { flex-basis: 100%; } }
.dir-row .grow { min-width: 0; }
.dir-row .grow .badge { white-space: normal; }
.dir-row > .btn, .dir-row > .small { flex: none; }
@media (max-width: 480px) { .dir-row > .btn { padding-inline: .6rem; font-size: .85rem; } }
@media (max-width: 480px) { .dir-row .grow .badge { font-size: .72rem; padding: .05rem .4rem; } .dir-row > .btn { font-size: .8rem; padding: .45rem .6rem; gap: .25rem; } .dir-row { gap: .5rem; } }
/* v1.9.7 : annuaire lisible en mode sombre (adresses et numéros dans la couleur du texte, rouge franc, flèche bleu clair) */
.ad-full a, .ad-t a, .ad-full a:visited { color: var(--text); text-decoration: none; }
.ad-full .list a b, .ad-full a b { color: var(--text); }
.ad-full .ad-two .item a { font-weight: 800; }
.ad-full a:hover { text-decoration: underline; }
.ad-full a.red, .ad-t a.red { color: var(--bad) !important; }
:root[data-theme="dark"] .ad-full, :root[data-theme="dark"] .pc-card { --bad: #ff5c5c; }
:root[data-theme="dark"] .pc-tr { color: #7fb2ff; }
:root[data-theme="dark"] .ad-full .ad-two .item a, :root[data-theme="dark"] .ad-full .ad-two .item b { color: #fff; }
:root[data-theme="dark"] .pc-act-i { color: #ff8cc6; }
:root[data-theme="dark"] .ad-full a, :root[data-theme="dark"] .ad-t a { color: var(--text); }
:root[data-theme="dark"] .ad-full a.red, :root[data-theme="dark"] .ad-t a.red { color: var(--bad) !important; }
/* v1.9.7 : présentation plus raffinée (plus de grosses bandes roses), en clair comme en sombre */
.ad-t tr.sec td { background: transparent; color: var(--pink-strong); border-bottom: 2px solid var(--pink); padding-top: 1rem; font-size: .78rem; letter-spacing: .08em; }
.ad-t tbody:first-of-type tr.sec td { padding-top: .5rem; }
.ad-sh { background: transparent; color: var(--pink-strong); border-bottom: 2px solid var(--pink); border-radius: 0; padding: .3rem .1rem; letter-spacing: .08em; }
.ad-mail { background: var(--pink-soft); color: var(--text); border: 1px solid var(--line-2); border-left: 4px solid var(--pink); font-size: 1rem; font-weight: 600; text-align: left; padding: .7rem 1rem; }
.ad-mail b { color: var(--pink-strong); font-weight: 800; }
.ad-top a.btn, .ad-top a.btn:visited { color: var(--text); }
:root[data-theme="dark"] .ad-t tr.sec td, :root[data-theme="dark"] .ad-sh, :root[data-theme="dark"] .ad-mail b { color: #ff8cc6; }
:root[data-theme="dark"] .ad-mail { background: var(--card); }
:root[data-theme="dark"] .ad-top a.btn { color: var(--text); }
/* v1.9.7 (retouches) : titres de service sobres sur PC, plus d'orange */
.ad-t tr.sec td { color: var(--text); background: var(--card-2); border-bottom: 2px solid var(--pink); }
:root[data-theme="dark"] .ad-t tr.sec td { color: #fff; background: #1b1d22; }
.mt, .mt.prive, .mt.pro { background: transparent; color: var(--text-2); border: 1px solid var(--line); }
:root[data-theme="dark"] .ad-full, :root[data-theme="dark"] .pc-card { --bad: #ff3b3b; }
.ad-full { --bad: #d01818; }
/* v1.9.8 : fiche plus compacte ; numéro à ne pas donner au client : panneau « interdit » au lieu du rouge */
.pc-hero { display: flex; align-items: center; gap: .9rem; text-align: left; padding: .9rem 3rem .9rem 1rem; }
.pc-hero > span:first-of-type, .pc-hero .avatar { margin: 0; flex: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); }
.pc-hero h2 { margin: 0; font-size: 1.2rem; line-height: 1.2; }
.pc-who { min-width: 0; }
.pc-fn { font-size: .92rem; }
.pc-x { top: 50%; transform: translateY(-50%); }
.pc-act-i { width: 3rem; height: 3rem; font-size: 1.25rem; }
.pc-act { color: var(--text) !important; }
.pc-line b { color: var(--pink-strong); display: inline-flex; align-items: center; gap: .4rem; }
:root[data-theme="dark"] .pc-line b { color: #ff8cc6; }
.pc-line b.pc-mailv, :root[data-theme="dark"] .pc-line b.pc-mailv { color: var(--text); }
.pc-line .pc-warn, .pc-card .pc-warn { color: var(--text-2) !important; font-weight: 700; }
.nc-ico { width: 1.15em; height: 1.15em; flex: none; }
.pc-line b.pc-mailv { display: block; white-space: normal; word-break: break-all; } .pc-line > .btn { flex: none; }
.pc-line b.pc-mailv { font-size: 1rem; word-break: normal; overflow-wrap: anywhere; }
/* v1.9.8 : outils de l'annuaire (icône + libellé + bulle d'information au survol) */
.ad-tools { display: inline-flex; gap: .4rem; }
.ad-tool { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: .1rem; min-width: 4.2rem; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text) !important; font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; text-decoration: none; }
.ad-tool svg { width: 1.6rem; height: 1.6rem; color: var(--pink-strong); }
:root[data-theme="dark"] .ad-tool svg { color: #ff8cc6; }
.ad-tool:hover { border-color: var(--pink); }
.ad-tool[data-tip]:hover::after { content: attr(data-tip); position: absolute; top: calc(100% + .45rem); right: 0; width: max-content; max-width: 16rem; white-space: normal; text-align: left; background: #2a2d34; color: #fff; font-size: .8rem; font-weight: 500; padding: .45rem .6rem; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 20; }
.ad-num { white-space: nowrap; }
.ad-full .nc-ico, .ad-card .nc-ico, .ad-legend .nc-ico { width: 1em; height: 1em; vertical-align: -.15em; }
@media (max-width: 700px) { .ad-top .i { flex-basis: 0; } .ad-tools { flex: none; } }
@media (max-width: 700px) { .ad-top { flex-wrap: nowrap; } .ad-top .i { flex: 1 1 auto; min-width: 0; } .ad-tool { min-width: 3.5rem; padding: .3rem .35rem; font-size: .68rem; } .ad-tool svg { width: 1.35rem; height: 1.35rem; } }
/* v1.9.8 : écran de verrouillage, changer d'utilisateur (PC partagé) */
.lk-who { display: inline-block; margin-top: .2rem; padding: .25rem .8rem; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line-2); font-size: .9rem; color: var(--text-2); }
.lk-who b { color: var(--text); }
.lk-switch { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: .5rem; align-items: stretch; }
.lk-switch > span { font-size: .9rem; color: var(--text-2); }
.lk-out-btn { width: 100%; justify-content: center; gap: .5rem; font-weight: 800; border: 2px solid var(--pink); background: var(--card); color: var(--text); }
.lk-out-btn:hover { background: var(--pink-soft); }
.lk-switch { flex-direction: row; align-items: center; justify-content: center; flex-wrap: wrap; gap: .4rem .7rem; margin-top: .9rem; padding-top: .8rem; }
.lk-out-btn { width: auto; padding: .5rem 1rem; min-height: 2.6rem; }
/* v1.9.8 : fenêtres de confirmation au milieu de l'écran, cadre rose léger */
.sheet-back.center .sheet.confirm-box { max-width: 30rem; padding: 1.4rem 1.5rem 1.2rem; gap: .7rem; border: 2px solid rgba(236, 26, 132, .55); box-shadow: 0 0 0 6px rgba(236, 26, 132, .12), 0 24px 60px rgba(0, 0, 0, .35); }
.confirm-box h2 { margin: 0; }

/* v1.9.8 : pastilles sur le coin de l'icône (le texte garde toute la largeur), rangement du menu */
.nav-ic { position: relative; display: inline-flex; flex: none; }
.nav-ic .pastille, .side a.nav .nav-ic .pastille, .menu-list .item .nav-ic .pastille { position: absolute; top: -.35rem; right: -.45rem; margin: 0; min-width: 1.05rem; height: 1.05rem; padding: 0 .22rem; font-size: .64rem; box-shadow: 0 0 0 2px var(--card); z-index: 1; }
.rk-grip { display: none; flex: none; font-size: 1.15rem; line-height: 1; color: var(--text-3); padding: .1rem .2rem; cursor: grab; touch-action: none; }
.ranking [data-nav]:not([data-nav="#/"]) .rk-grip { display: inline-block; }
.ranking [data-nav]:not([data-nav="#/"]) { cursor: grab; outline: 1px dashed rgba(236, 26, 132, .45); outline-offset: -2px; }
.ranking [data-nav].dragging { opacity: .65; outline: 2px solid var(--pink); }
.ranking .m-next { display: none; }
.rank-btn { border: 1px solid var(--line); background: var(--card); color: var(--text-2); border-radius: 999px; padding: .12rem .6rem; font-weight: 700; font-size: .78rem; cursor: pointer; margin-left: .4rem; }
.rank-btn.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.side .ver .ver-btns { display: inline-flex; gap: .3rem; align-items: center; }
.side .ver .rank-btn { margin-left: 0; }
.rk-help { font-size: .75rem; color: var(--text-3); padding: .2rem .6rem; text-align: center; }
.rk-help a { color: var(--pink-strong); }
:root[data-theme="dark"] .rk-help a { color: #ff8cc6; }
.side.rail .rk-grip, .side.rail .rk-help { display: none !important; }
.sens-head { display: flex; align-items: center; gap: .5rem; color: var(--pink-strong); }
.sens-head h2 { color: var(--text); }
.hr-flags { border-top: 1px solid var(--line-2); padding-top: .5rem; display: flex; flex-direction: column; gap: .3rem; }
.eye-btn { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); background: var(--card); color: var(--text-3); border-radius: 999px; padding: .25rem .6rem; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.eye-btn.on { color: var(--ok); border-color: var(--ok); background: var(--ok-bg); }
/* v1.9.8 : page « Mes réglages » */
.set-jump { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem; }
.set-jump a { padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text) !important; text-decoration: none; font-weight: 700; font-size: .85rem; }
.set-jump a:hover { border-color: var(--pink); }
.set-h { margin: 1.3rem 0 .5rem; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; color: var(--pink-strong); scroll-margin-top: 5rem; }
:root[data-theme="dark"] .set-h { color: #ff8cc6; }
.cust-top { margin: .2rem 0 .4rem; }
.ranking [data-nav] { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
/* v1.9.8 : libellés du menu sur deux lignes si besoin, jamais coupés */
@media (min-width: 900px) { .side a.nav .nl { white-space: normal; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: clip; } }
.side a.nav.on .nav-ic .pastille, .side a.nav .nav-ic .pastille { background: var(--pink) !important; color: #fff !important; }
.set-btn { display: inline-flex; align-items: center; gap: .25rem; text-decoration: none; }
.set-btn svg { color: var(--pink-strong); }
:root[data-theme="dark"] .set-btn svg { color: #ff8cc6; }
.side .ver .ver-btns { flex-wrap: wrap; }
.hb-q { display: inline-flex; align-items: center; justify-content: center; width: 1rem; height: 1rem; border-radius: 50%; border: 1.6px solid var(--pink-strong); color: var(--pink-strong); font-size: .68rem; line-height: 1; } :root[data-theme="dark"] .hb-q { border-color: #ff8cc6; color: #ff8cc6; }
/* v1.9.9 : ligne du menu sélectionnée : plus de carré derrière l icône ronde */
.side a.nav.on .nav-ic svg, .side a.nav.on[style*="--cfg"] .nav-ic svg { background: none !important; color: var(--pink-strong) !important; }
.side a.nav.on .asi { filter: drop-shadow(0 0 2.5px color-mix(in srgb, var(--ring) 55%, transparent)); }
/* v1.9.9 : boutons du bas du menu : Démo en long, puis Ranger · Réglages · Aide ; la version tout en bas */
.menu-tools { display: flex; flex-direction: column; gap: .35rem; margin: .5rem 0 .3rem; }
.side .menu-tools { margin-top: auto; padding: 0 .2rem; }
.menu-tools .demo-pill { display: block; width: 100%; margin: 0; padding: .3rem .6rem; text-align: center; font-size: .82rem; }
.menu-tools .mt-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; }
.menu-tools .mt-row .rank-btn { margin: 0; justify-content: center; display: inline-flex; align-items: center; gap: .2rem; padding: .25rem .3rem; white-space: nowrap; }
.side .ver { margin-top: 0; justify-content: center; }
.menu-tools .demo-pill { padding: .55rem .6rem; font-size: .9rem; border-radius: 12px; }

/* v1.9.10 : badges des certificats et bulle d'explication */
.cert-b { display: inline-flex; align-items: center; justify-content: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 0; padding: 0; margin-left: .3rem; vertical-align: middle; background: var(--cb); color: #fff; cursor: pointer; box-shadow: 0 0 0 2px var(--card); flex: none; }
.cert-b.big { width: 2rem; height: 2rem; margin: 0; }
.cert-b.exp { background: #9aa1aa; position: relative; }
.cert-b.exp::after { content: ""; position: absolute; left: 15%; right: 15%; top: 50%; height: 2px; background: #fff; transform: rotate(-35deg); }
.cert-tip { position: fixed; z-index: 10000; width: min(19rem, calc(100vw - 16px)); background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.22); padding: .7rem .8rem; display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; }
.cert-tip p { margin: 0; color: var(--text-2); line-height: 1.35; }
.ct-h { display: flex; align-items: center; gap: .45rem; }
.ct-i { width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--cb); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ct-s { font-size: .8rem; color: var(--text-3); font-weight: 700; }
.ct-v { font-weight: 700; color: var(--ok); }
.ct-v.bad { color: var(--bad); }
.ct-n { font-size: .82rem; color: var(--text-2); }
.cert-line.old { opacity: .62; }
.pc-certs .cert-b { box-shadow: 0 0 0 2px rgba(255,255,255,.9); }
/* v1.9.10 : fiche signalétique */
.fm-steps { display: flex; gap: .3rem; margin: .2rem 0 .5rem; }
.fm-steps span { flex: 1; height: 5px; border-radius: 3px; background: var(--line-2); }
.fm-steps span.on { background: var(--pink); }
.fm-lab { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin: 1rem .2rem .45rem; }
.fm-photo { display: flex; gap: .8rem; align-items: center; }
.fm-ph { width: 6rem; height: 8rem; border-radius: 12px; border: 2px dashed var(--pink); background: var(--pink-soft); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--pink-strong); font-size: .75rem; font-weight: 700; flex: none; overflow: hidden; }
.fm-ph b { font-size: 1.8rem; line-height: 1; }
.fm-ph.has { border-style: solid; }
.fm-ph img { width: 100%; height: 100%; object-fit: cover; }
.fm-seg { flex-wrap: wrap; border-radius: 14px; }
.fm-seg button { min-width: 6rem; font-size: .9rem; }
.kid, .em { margin-bottom: .35rem; }
.em { display: flex; flex-direction: column; gap: .35rem; border: 1px solid var(--line-2); border-radius: 12px; padding: .5rem; }
.fm-doc .fm-di { font-size: 1.3rem; width: 1.8rem; text-align: center; }
.fm-nav { margin-top: 1rem; }
.fm-nav .btn { flex: 1; }
.to-check .i { background: #fff6cc; border-color: #e6c34a; }
:root[data-theme="dark"] .to-check .i { background: #3a3110; border-color: #b08f20; }
.tc { font-size: .72rem; font-weight: 800; color: #9a5b00; text-transform: uppercase; }
.rep { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.rep-img { position: sticky; top: 5rem; max-height: calc(100vh - 6rem); overflow: auto; }
.rep-img img { width: 100%; display: block; border-radius: 10px; }
@media (max-width: 900px) { .rep { grid-template-columns: 1fr; } .rep-img { position: static; max-height: none; } }
.cam-box { position: relative; border-radius: 14px; overflow: hidden; background: #000; aspect-ratio: 4 / 3; }
.cam-box video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam-frame { position: absolute; left: 50%; top: 50%; width: 52%; aspect-ratio: 3 / 4; transform: translate(-50%, -50%); border: 3px dashed rgba(255,255,255,.8); border-radius: 50% 50% 46% 46%; }
.fm-photo > .stack { min-width: 0; }
.fm-photo .btn { white-space: normal; padding-inline: .7rem; font-size: .9rem; }
/* v1.9.11 : boutons de la fiche (Portable, Fixe, E-mail) avec les icônes rondes en relief de l'application */
.pc-act-i { border: 0 !important; background: none !important; width: 3.4rem; height: 3.4rem; }
.pc-act-i .asi { width: 100%; height: 100%; }
.pc-act:hover .pc-act-i .asi { transform: translateY(-1px); filter: drop-shadow(0 3px 6px rgba(236, 26, 132, .35)); }

/* v1.9.11 : petites icônes en relief devant les lignes de la fiche (à la place des pictogrammes) */
.pc-ico .asi { width: 1.9rem; height: 1.9rem; display: block; }
.pc-ico { width: 2rem; }

/* v1.9.11 : titres des pages (PC) plus discrets */
@media (min-width: 1000px) {
  .page-head { gap: .3rem; margin: 0 0 .1rem; }
  .page-head h1 { font-size: 1.08rem; font-weight: 800; letter-spacing: .01em; }
  .page-head .back { width: 1.75rem; height: 1.75rem; }
  .page-head .back svg { width: 16px; height: 16px; }
  .page-head .title3d { width: 1.55rem; height: 1.55rem; margin-right: .3rem; }
}
/* v1.9.11 : bouton Démo sous la rangée Ranger · Réglages · Aide, bien séparé */
.menu-tools .mt-row + .demo-pill { margin-top: 1.1rem; }
/* v1.9.11 : la visite guidée montre le bouton ☰ (la tuile « Plus de détails » est retirée) */
.top:has(.tour-focus) { z-index: 73; }
.menu-btn.tour-focus { border-radius: 50%; }
/* v1.9.11 : planning sur smartphone, boutons Astreintes / Permanences fixés en haut */
.plan-jump { display: none; }
@media (max-width: 999px) {
  .plan-jump { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .45rem; position: sticky; top: calc(var(--top-h, 3.6rem) + .35rem); z-index: 5; margin: 0 0 .6rem; padding: .35rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
  .plan-jump button { font: inherit; font-weight: 700; font-size: .88rem; line-height: 1.15; padding: .5rem .3rem; hyphens: auto; -webkit-hyphens: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2, transparent); color: var(--text); cursor: pointer; }
  .plan-jump button.on { background: var(--pink); border-color: var(--pink); color: #fff; }
}
/* v1.9.11 : Imports et exports, cadres de même hauteur, boutons alignés en bas */
.xfer-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); align-items: stretch !important; }
.xfer { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
.xfer h3 { font-size: 1.02rem; }
.xfer-act { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding-top: .3rem; }
.xfer [data-rep]:empty { display: none; }
/* v1.9.11 : glisser-déposer sur PC — cadre rose en pointillés « Déposez le fichier ici » */
.dz { position: relative; }
body.dz-drag .dz { outline: 2px dashed rgba(236, 26, 132, .55); outline-offset: 3px; border-radius: 14px; }
.dz.dz-over { outline: 3px dashed var(--pink) !important; outline-offset: 3px; }
.dz.dz-over::after { content: attr(data-drop-label); position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; text-align: center; padding: .5rem;
  background: rgba(236, 26, 132, .10); backdrop-filter: blur(1.5px); color: var(--pink-strong, #b0105f); font-weight: 800; font-size: 1.05rem; border-radius: 14px; pointer-events: none; }
:root[data-theme="dark"] .dz.dz-over::after { background: rgba(236, 26, 132, .22); color: #ffb3d6; }
.drop-hint { display: none; }
@media (pointer: fine) { .drop-hint { display: inline; color: var(--text-3); font-size: .8rem; } }
/* v1.9.11 : PC — Windows Hello seulement sur demande, sous le pavé */
.hello-btn { margin: 1rem auto 0; display: inline-flex; align-items: center; gap: .45rem; }
/* v1.9.11 : pages protégées ouvertes avec le code à 4 chiffres */
.sens-box .sens-dots { margin: .6rem auto .2rem; }
.sens-box .sens-pad { margin: .3rem auto 0; grid-template-columns: repeat(3, 3.6rem); gap: .6rem 1.1rem; }
.sens-box .sens-pad button { width: 3.6rem; height: 3.6rem; font-size: 1.35rem; }
.sens-box .sens-foot { margin-top: .5rem; align-items: center; }
/* v1.9.11 : flotte — demandes de contrôle (orange), réponses du contrôle, réglages */
.badge.orange { background: #fff0e0; color: #b45309; border-color: #f6c58f; }
:root[data-theme="dark"] .badge.orange { background: #3a2410; color: #ffb36b; border-color: #6b4216; }
.req-btn { border-color: #f0a35a; color: #b45309; }
:root[data-theme="dark"] .req-btn { color: #ffb36b; border-color: #8a531c; }
.ck-seg { flex: 1 1 18rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(6.8rem, 1fr)); gap: .35rem; border: 0; border-radius: 0; overflow: visible; }
.ck-seg button { border: 1px solid var(--line); border-radius: 12px; white-space: normal; line-height: 1.15; padding: .5rem .45rem; }
.ck-seg button.on.req { background: #e8710a; border-color: #e8710a; color: #fff; }
.ck-seg button.on.ko { background: var(--bad); border-color: var(--bad); color: #fff; }
.ck-more { flex-basis: 100%; display: flex; flex-direction: column; gap: .4rem; }
.fleet-tabs { flex-wrap: wrap; }
.fs-row { flex-wrap: wrap; gap: .5rem .8rem; align-items: center; }
.fs-row .cl-label, .fs-row .dt-label { flex: 2 1 14rem; }
.fs-row .cl-kind { flex: 1 1 15rem; }
.fs-row .fq { display: inline-flex; align-items: center; gap: .35rem; flex: 1 1 13rem; }
.fs-row .fq-n { width: 4.2rem; }

@media (max-width: 999px) { #sec-astreintes, #sec-permanences { scroll-margin-top: calc(var(--top-h) + 5.6rem); } }
/* v1.9.12 : reprise d'une fiche Word, texte affiché à la place du scan */
.rep-text { white-space: pre-wrap; font: .86rem/1.45 ui-monospace, Consolas, monospace; margin: .3rem .5rem .6rem; padding: .7rem; background: var(--card-2); border-radius: 10px; max-height: 70vh; overflow: auto; tab-size: 4; }

/* v1.9.12 : écran verrouillé plus compact sur les fenêtres peu hautes */
@media (max-height: 1000px) {
  .lock-box { padding: 1.1rem 1.8rem 1rem; }
  .lock-av { margin: .5rem 0 .2rem; }
  .lock-box h2 { font-size: 1.15rem; }
  .lock-box .pin-dots { margin: .5rem 0 .8rem; }
  .lk-switch { margin-top: .6rem; padding-top: .6rem; }
}
/* v1.9.12 : pavé du code, ronds des chiffres bien visibles (clair et sombre) */
.keypad button:not(.fn) { border: 2px solid #c3c9d1; background: linear-gradient(180deg, #ffffff 0%, #eef1f5 100%); box-shadow: 0 2px 4px rgba(20,24,30,.12), inset 0 1px 0 #fff; color: var(--text); }
:root[data-theme="dark"] .keypad button:not(.fn) { border: 2px solid #5b6270; background: linear-gradient(180deg, #3a3f49 0%, #2e323a 100%); box-shadow: 0 2px 6px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08); color: #fff; }
.keypad button:not(.fn):hover { border-color: var(--pink); }
.keypad button:not(.fn):active { background: var(--pink); border-color: var(--pink); color: #fff; }
.keypad button.fp { border-color: var(--pink) !important; color: var(--pink) !important; }
.pin-dots span { border-width: 2px; border-color: #8a93a0; }

/* v1.9.12 : zone de dépôt simple */
.drop-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; padding: 1.3rem 1rem; border: 2.5px dashed rgba(236, 26, 132, .55); border-radius: 16px; background: rgba(236, 26, 132, .04); color: var(--text-3); cursor: pointer; text-align: center; transition: background .15s, border-color .15s; }
.drop-box:hover { border-color: var(--pink); background: rgba(236, 26, 132, .08); }
.drop-box .db-pc { display: flex; flex-direction: column; gap: .15rem; }
.drop-box .db-pc b { color: var(--text); font-size: 1.08rem; }
.drop-box .db-or { font-size: .88rem; }
.drop-box .db-or u { color: var(--pink-strong); }
.drop-box .db-phone { display: none; }
.drop-box.dz-over::after { border-radius: 16px; }
@media (pointer: coarse), (max-width: 999px) {
  .drop-box { border: 0; background: none; padding: 0; align-items: stretch; }
  .drop-box .db-ico, .drop-box .db-pc { display: none; }
  .drop-box .db-phone { display: inline-flex; justify-content: center; }
}
.drop-box.dz-over > * { visibility: hidden; }
.drop-box.db-done { border-style: solid; border-color: var(--ok, #1e7a3c); background: rgba(30, 122, 60, .06); }
.db-pair { gap: .7rem; }
.xfer-act .drop-box { flex: 1 1 100%; padding: .9rem; }

/* ===== v1.9.12 : hiérarchie et organigramme ===== */
.hi-card .hi-chain { display: flex; flex-direction: column; align-items: stretch; gap: .15rem; }
.hi-arrow { text-align: center; color: var(--text-3); font-size: 1rem; line-height: 1; }
.hi-p { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.hi-p:hover { border-color: var(--pink); }
.hi-p.me { border: 2px solid var(--pink); background: var(--pink-soft); }
.hi-p .sub { color: var(--text-3); font-size: .85rem; }
.hi-g { display: flex; flex-direction: column; gap: .35rem; margin-top: .5rem; }
.hi-more summary { cursor: pointer; padding: .3rem 0; }
.og-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.og-zoom { display: inline-flex; gap: .2rem; }
.og-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 1rem; max-height: calc(100vh - 14rem); cursor: grab; }
.og-wrap.grab { cursor: grabbing; user-select: none; }
.og ul { list-style: none; margin: 0; padding: 0; }
.og-n { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2, #f6f7f9); cursor: pointer; position: relative; text-align: left; min-width: 11rem; max-width: 16rem; }
.og-n:hover { border-color: var(--pink); }
.og-n.lv { border-color: rgba(236, 26, 132, .45); }
.og-n.me { border: 2px solid var(--pink); background: var(--pink-soft); }
.og-t { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.og-t b { font-size: .92rem; }
.og-lv { font-size: .72rem; font-weight: 800; color: var(--pink-strong); text-transform: uppercase; letter-spacing: .02em; }
.og-f, .og-fm { font-size: .78rem; color: var(--text-3); }
.og-fm { font-style: italic; }
.og-tg { position: absolute; bottom: -.7rem; left: 50%; transform: translateX(-50%); min-width: 1.5rem; height: 1.3rem; border-radius: 999px; border: 1px solid var(--pink); background: var(--card); color: var(--pink-strong); font: inherit; font-size: .7rem; font-weight: 800; cursor: pointer; padding: 0 .35rem; z-index: 2; }
li.closed > ul { display: none; }
li.closed > .og-n .og-tg { background: var(--pink); color: #fff; }
/* PC : arbre horizontal avec traits de liaison */
@media (min-width: 1000px) {
  .og { display: inline-block; min-width: 100%; text-align: center; }
  .og ul { display: flex; justify-content: center; padding-top: 1.4rem; position: relative; }
  .og > ul { padding-top: 0; }
  .og li { position: relative; padding: 1.4rem .4rem 0; display: flex; flex-direction: column; align-items: center; }
  .og > ul > li { padding-top: 0; }
  .og li::before, .og li::after { content: ''; position: absolute; top: 0; width: 50%; height: 1.4rem; border-top: 1.5px solid var(--line-2, #c9cdd3); }
  .og li::before { right: 50%; } .og li::after { left: 50%; border-left: 1.5px solid var(--line-2, #c9cdd3); }
  .og li:only-child::before, .og li:only-child::after { display: none; }
  .og li:only-child { padding-top: 0; }
  .og li:first-child::before, .og li:last-child::after { border: 0 none; }
  .og li:last-child::before { border-right: 1.5px solid var(--line-2, #c9cdd3); border-radius: 0 6px 0 0; }
  .og li:first-child::after { border-radius: 6px 0 0 0; }
  .og > ul > li::before, .og > ul > li::after { display: none; }
  .og ul ul::before { content: ''; position: absolute; top: 0; left: 50%; height: 1.4rem; border-left: 1.5px solid var(--line-2, #c9cdd3); }
  .og ul ul { padding-top: 1.4rem; }
  .og ul ul > li:only-child { padding-top: 1.4rem; }
  .og ul ul > li:only-child::after { display: block; left: 50%; width: 0; border-top: 0; }
}
/* Téléphone : liste en escalier */
@media (max-width: 999px) {
  .og-wrap { padding: .6rem; cursor: default; }
  .og ul ul { margin-left: 1rem; padding-left: .7rem; border-left: 1.5px solid var(--line-2, #c9cdd3); }
  .og li { margin: .55rem 0; }
  .og-n { min-width: 0; max-width: 100%; width: 100%; }
}
@media print {
  body.print-og .top, body.print-og .side, body.print-og .og-bar, body.print-og .page-head, body.print-og .tabbar, body.print-og .help-fab, body.print-og p.small { display: none !important; }
  body.print-og .og-wrap { max-height: none; overflow: visible; border: 0; }
  body.print-og .og-tg { display: none; }
}

/* ===== v1.9.12 : matériel confié ===== */
.sig { position: relative; border: 2px dashed #b9bfc8; border-radius: 12px; background: #fff; height: 9.5rem; touch-action: none; }
.sig.off { opacity: .35; pointer-events: none; }
.sig .sig-c { width: 100%; height: 100%; display: block; border-radius: 10px; cursor: crosshair; touch-action: none; }
.sig .sig-clear { position: absolute; top: .3rem; right: .3rem; color: #333; }
.sig .sig-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #9aa1aa; pointer-events: none; font-weight: 700; }
.sig.signed .sig-hint { display: none; }
.eq-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .6rem 1rem; }
.puk { font: 1.05rem/1.5 ui-monospace, Consolas, monospace; background: var(--card-2); padding: .7rem; border-radius: 10px; white-space: pre-wrap; }
.acc-door { padding: .45rem 0; border-top: 1px solid var(--line-2); }
.acc-door:first-of-type { border-top: 0; }
.pf { border: 1px solid var(--line); border-radius: 12px; padding: .6rem; display: flex; flex-direction: column; gap: .45rem; margin-bottom: .6rem; }
.pf-doors { display: flex; flex-wrap: wrap; gap: .2rem .9rem; }
.pf-slots { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .35rem; }
.pf-slot { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.pf-slot .i { width: auto; min-height: 2.2rem; }
.pf-day { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: .25rem .45rem; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; color: var(--text); }
.pf-day.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.og-n { font: inherit; color: var(--text); }

/* ===== v1.9.13 : organigramme calculé (traits visibles, centré) ===== */
:root { --og-line: #4b5565; --og-dot: #c2185b; }
:root[data-theme="dark"], .dark { --og-line: #b4bccb; --og-dot: #ff6fb1; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --og-line: #b4bccb; --og-dot: #ff6fb1; } }
.og-wrap { overflow: auto; padding: .6rem 0; border-radius: var(--radius, 14px); }
.og-wrap.grab { cursor: grabbing; }
.og2 { position: relative; }
.og-svg { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
.og-ln { fill: none; stroke: var(--og-line); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.og-ln.dot { stroke: var(--og-dot); stroke-width: 2.4; stroke-dasharray: 7 6; }
.og-b { position: absolute; box-sizing: border-box; display: flex; align-items: center; gap: .5rem; padding: .35rem .5rem .35rem .65rem; border-radius: 10px; border: 1.5px solid var(--c, #888); border-left-width: 6px; background: color-mix(in srgb, var(--c, #888) 9%, var(--card, #fff)); cursor: pointer; overflow: visible; }
.og-b.me { box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--c, #888) 55%, transparent); }
.og-b .av { flex: none; }
.og-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.og-t b { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-t em { font-style: normal; font-weight: 800; font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; color: var(--c); }
.og-t small { font-size: .7rem; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.og-tg { position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); min-width: 26px; height: 22px; padding: 0 .35rem; border-radius: 11px; border: 1.5px solid var(--c); background: var(--card, #fff); color: var(--c); font-weight: 800; font-size: .72rem; cursor: pointer; z-index: 2; }
.og-leg { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .6rem; font-size: .8rem; align-items: center; }
.og-leg span { display: inline-flex; align-items: center; gap: .4rem; }
.og-leg i { width: 14px; height: 11px; border-radius: 3px; display: inline-block; }
.og-meta { margin: .3rem 0; }

/* ===== v1.9.13 : page « Tableaux » (imports plus clairs, exports plus foncés ; mode clair : l'inverse léger) ===== */
.tb-seg { max-width: 30rem; margin-bottom: 1rem; }
.tb-sec { border-radius: 16px; padding: .9rem 1rem 1.1rem; margin-bottom: 1.2rem; }
.tb-sec[hidden] { display: none; }
.tb-h { margin-top: 0; }
.tb-group { margin-top: .9rem; }
.tb-gt { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin: 0 0 .45rem .15rem; }
:root[data-theme="dark"] .tb-in { background: #2a2e38; }
:root[data-theme="dark"] .tb-in .card { background: #343946; }
:root[data-theme="dark"] .tb-out { background: #14161b; }
:root[data-theme="dark"] .tb-out .card { background: #1d2027; }
:root[data-theme="light"] .tb-in { background: #eceef2; }
:root[data-theme="light"] .tb-in .card { background: #f6f7f9; }
:root[data-theme="light"] .tb-out { background: #ffffff; border: 1px solid #e3e6ec; }
:root[data-theme="light"] .tb-out .card { background: #ffffff; }
.tb-sec .xfer-grid { align-items: stretch; }
.tb-sec .xfer { height: 100%; }
.tb-sec .xfer-act { margin-top: auto; }
.tb-sec .xfer-act .drop-box { flex: 1 1 100%; }
.sheet.imp-box { max-width: min(34rem, 94vw); max-height: 82vh; overflow: auto; font-size: .92rem; }
.sheet.imp-box h2 { font-size: 1.15rem; }
.sheet.imp-box .drop-box { padding: .8rem; }

/* ===== v1.9.13 : recadrage de la photo ===== */
.sheet.crop-box { max-width: min(23rem, 94vw); text-align: center; }
.crop-view { position: relative; margin: .8rem auto; overflow: hidden; border-radius: 50%; background: #111; touch-action: none; cursor: grab; user-select: none; }
.crop-view img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 3px #ff1f8e; pointer-events: none; }
.crop-z { width: 80%; margin: .2rem auto .8rem; display: block; accent-color: #e91e8c; }

/* ===== v1.9.13 : Réglages → Affichage : cartes avec aperçu (comme « Personnaliser mon accueil ») ===== */
.aff-pick { display: grid; gap: .6rem; }
.aff-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aff-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 520px) { .aff-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; } .aff-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.aff-opt { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .35rem; padding: .7rem .4rem; text-align: center; border-radius: 14px; border: 2px solid var(--line); background: var(--card-2, var(--card)); color: inherit; font: inherit; cursor: pointer; min-height: 7.4rem; }
.aff-opt > * { pointer-events: none; }
.aff-opt b { font-size: .92rem; }
.aff-opt .small { font-size: .74rem; line-height: 1.2; }
.aff-opt.on { border-color: #ff1f8e; box-shadow: 0 0 0 2px rgba(255, 31, 142, .25); }
.aff-opt .style-sample { transform: scale(.82); transform-origin: center top; }
.zoom-sample { font-weight: 800; line-height: 1.1; min-height: 3rem; display: flex; align-items: center; }
.theme-sample { width: 3.6rem; height: 2.5rem; border-radius: 8px; border: 1px solid var(--line); display: flex; overflow: hidden; }
.theme-sample i { flex: 1; display: block; }
.ts-light i { background: #ffffff; } .ts-light i + i { background: #f0f2f5; }
.ts-dark i { background: #24272e; } .ts-dark i + i { background: #15171b; }
.ts-auto i:first-child { background: #ffffff; } .ts-auto i + i { background: #15171b; }

/* ===== v1.9.13 : présences par point de vente ===== */
.pr-stores { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .7rem; }
.pr-stores button { padding: .55rem 1.1rem; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.pr-stores button.on { background: #e91e8c; border-color: #e91e8c; color: #fff; }
.pr-nav { margin: .6rem 0; gap: .6rem; }
.pr-lab { display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.cal tr.pr-grp td { background: var(--card-2, var(--line-2)); padding: .45rem .6rem; text-align: left; border-top: 2px solid var(--line); position: sticky; left: 0; }

/* ===== v1.9.13 : validation du mois ===== */
.sheet.vm-box { max-width: min(30rem, 94vw); max-height: 86vh; overflow: auto; }
.vm-list { max-height: 46vh; overflow: auto; }
.vm-list .item { cursor: pointer; align-items: center; gap: .6rem; }
.tb-vm { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; text-decoration: none; color: inherit; }

/* ===== v1.9.14 : tous les boutons en relief (sombres restent sombres), y compris ceux qui étaient sans cadre ===== */
.btn:not(.primary), .btn.ghost { border: 1px solid var(--line) !important; }
:root[data-theme="dark"] .btn:not(.primary):not(.report) { background: linear-gradient(180deg, #3a4251, #2a303b); border-color: #465062 !important; color: #f2f4f8; box-shadow: 0 3px 0 #0f1216, 0 6px 10px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.12); }
:root[data-theme="light"] .btn:not(.primary):not(.report) { background: linear-gradient(180deg, #ffffff, #e9edf1); border-color: #c3cad4 !important; box-shadow: 0 3px 0 #b7bec9, 0 6px 10px rgba(20,24,30,.12), inset 0 1px 0 #fff; }
.btn.primary { box-shadow: 0 3px 0 #7a0e38, 0 6px 12px rgba(233,30,140,.35), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.danger { color: var(--bad) !important; border-color: var(--bad) !important; }
:root[data-theme="dark"] .btn.danger { color: #ffb3c6 !important; border-color: #d9617f !important; }
.btn:not(:disabled):active { transform: translateY(2px); }
:root .btn:not(.primary):not(:disabled):active { box-shadow: 0 1px 0 #0f1216, inset 0 1px 0 rgba(255,255,255,.08) !important; }
:root[data-theme="light"] .btn:not(.primary):not(:disabled):active { box-shadow: 0 1px 0 #b7bec9 !important; }
.btn.primary:not(:disabled):active { box-shadow: 0 1px 0 #7a0e38 !important; }
.btn:disabled { box-shadow: none !important; }
/* boutons d'une même rangée : même hauteur, espacement régulier */
.row > .btn, .btns > .btn { min-height: 2.9rem; }
.row > .btn.sm, .btns > .btn.sm { min-height: 2.2rem; }
/* v1.9.14 : page « Tableaux » : sélecteurs et boutons centrés sur une même ligne, alignés en bas de carte */
.xfer h3, .xfer > p, .xfer > .small { text-align: center; }
.xfer-act { justify-content: center !important; align-items: flex-end !important; gap: .6rem !important; }
.xfer-act > label, .xfer-act > .field, .xfer-act > select, .xfer-act > input { margin: 0; }
.xfer-act .btn { align-self: flex-end; }
@media (max-width: 719px) { .xfer-act { flex-direction: column; align-items: stretch !important; } .xfer-act .btn { width: 100%; } }

/* ===== v1.9.14 : aperçus d'affichage fidèles (couleur du dégradé réelle, icônes automatiques coupées en deux) ===== */
.ico-box { display: inline-flex; align-items: center; justify-content: center; width: 4.6rem; height: 3rem; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.ico-box.l { background: #ffffff; } .ico-box.d { background: #23262d; border-color: #3a3f4a; }
.ico-box.ico-split { display: flex; padding: 0; }
.ico-box .half { flex: 1; height: 100%; display: flex; align-items: center; justify-content: center; }
.ico-box .half.l { background: #ffffff; } .ico-box .half.d { background: #23262d; }
.ico-box.ico-split .half + .half { border-left: 1px solid #9aa1ae; }
.ico-box .ico-sample { width: 2.1rem; height: 2.1rem; }
.ico-box.ico-split .ico-sample { width: 1.8rem; height: 1.8rem; }
html .aff-opt .style-sample[data-sample="c2"] .tile.mid[style*="--cfg"]:not(.urgent) { box-shadow: inset 5px 0 0 var(--cfg) !important; background: linear-gradient(90deg, #fff 30%, color-mix(in srgb, var(--cfg) 45%, #fff) 100%) !important; border-color: color-mix(in srgb, var(--cfg) 35%, #d3d8de) !important; }
html .aff-opt .style-sample[data-sample="c1"] .tile.mid[style*="--cfg"]:not(.urgent) { box-shadow: inset 5px 0 0 var(--cfg) !important; background: linear-gradient(90deg, color-mix(in srgb, var(--cfg) 45%, #fff) 0%, #fff 70%) !important; border-color: color-mix(in srgb, var(--cfg) 35%, #d3d8de) !important; }
html[data-theme="dark"] .aff-opt .style-sample[data-sample="c2"] .tile.mid[style*="--cfg"]:not(.urgent) { background: linear-gradient(90deg, #262a31 30%, color-mix(in srgb, var(--cfg) 55%, #23262d) 100%) !important; }
html[data-theme="dark"] .aff-opt .style-sample[data-sample="c1"] .tile.mid[style*="--cfg"]:not(.urgent) { background: linear-gradient(90deg, color-mix(in srgb, var(--cfg) 55%, #23262d) 0%, #262a31 70%) !important; }
html[data-theme="dark"] .aff-opt .style-sample .tile.mid .t { color: #f2f4f8 !important; }

/* ===== v1.9.14 : fiche collaborateur en onglets ===== */
.ptabs { display: flex; gap: .2rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin: .9rem 0 1rem; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptab-b { flex: none; background: none; border: 0; border-bottom: 3px solid transparent; padding: .75rem 1rem; min-height: 2.9rem; font-weight: 700; font-size: .95rem; color: var(--text-3); cursor: pointer; white-space: nowrap; }
.ptab-b.on { color: var(--text); border-bottom-color: var(--pink); }
.ptab[hidden] { display: none; }
.pa-alerts { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: center; margin-top: .8rem; padding: .7rem 1rem; border-radius: 14px; border: 1px solid #a8434f; background: rgba(168, 67, 79, .16); font-weight: 600; font-size: .92rem; }
:root[data-theme="light"] .pa-alerts { background: #fdeaed; color: #7a1d2b; }
.pa-main, .pa-acc { gap: .6rem; }
.r2 { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--line-2); font-size: .94rem; }
.r2 b { text-align: right; }
.end-card { margin-top: 1.2rem; }
@media (max-width: 719px) { .pa-main .btn, .pa-acc .btn { flex: 1 1 calc(50% - .6rem); } }
.sch-day { padding: .35rem 0; border-top: 1px solid var(--line-2); }
.sch-h { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: .4rem 0 .2rem 6.6rem; }
.sch-h .i { width: 7.2rem; min-height: 2.4rem; }
.sch-h .check { min-width: 6.5rem; }
@media (max-width: 719px) { .sch-h { margin-left: 0; } }

/* ===== v1.9.14 : Présences : une seule ligne en haut, turquoise = présent, week-ends gris clair, jours coupés en deux, traits verticaux ===== */
.pr-bar { display: flex; align-items: center; gap: .8rem 1.2rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.pr-bar .pr-stores { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0; }
.pr-bar .pr-nav { display: flex; align-items: center; justify-content: center; gap: .6rem; flex: 1 1 18rem; margin: 0; }
.pr-bar .pr-lab { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.pr-bar .seg { margin: 0; }
.pr-valid { justify-content: center; margin-top: 1rem; }
table.cal td, table.cal th { border-left: 1px solid var(--line-2); padding: 0; }
table.cal td.wk, table.cal th.wk { border-left: 2px solid #5b6577; }
table.cal td.name, table.cal th.name { width: 7.6rem; min-width: 7.6rem; max-width: 7.6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .3rem .6rem; border-left: 0; position: sticky; left: 0; z-index: 2; background: var(--card); }
table.cal td.we, table.cal th.we { background: #454d5c; }
:root[data-theme="light"] table.cal td.we, :root[data-theme="light"] table.cal th.we { background: #dde2e9; }
table.cal td.hol { background: repeating-linear-gradient(45deg, #3a4050 0 3px, transparent 3px 6px); }
table.cal th.today, table.cal td.today { box-shadow: inset 2px 0 0 #f2509f, inset -2px 0 0 #f2509f; }
table.cal td .hv { position: relative; display: flex; height: 2.3rem; min-width: 1.6rem; }
table.cal td .hv i { flex: 1; display: block; }
table.cal .h-p { background: #1c9aa6; } .cal .h-h { background: linear-gradient(90deg, transparent 40%, #1c9aa6 40%); }
table.cal .h-l { background: #3b6fd1; } .cal .h-m { background: #c9782b; } .cal .h-r { background: #8a63d2; }
table.cal .h-q { background: repeating-linear-gradient(45deg, rgba(59,111,209,.35) 0 3px, rgba(59,111,209,.12) 3px 6px); }
table.cal td .hv .pm { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .72rem; color: #fff; text-shadow: 0 0 2px #000; }
table.cal td .hv .oc { position: absolute; right: 2px; top: 2px; width: .45rem; height: .45rem; border-radius: 50%; background: #2aa876; border: 1px solid #fff; }
.cal-wrap { max-height: calc(100vh - 12rem); overflow: auto; }
table.cal thead th { position: sticky; top: 0; z-index: 3; background: var(--card); }
table.cal thead th.we { background: #454d5c; }
:root[data-theme="light"] table.cal thead th.we { background: #dde2e9; }
table.cal td.name { height: 2.3rem; }
table.cal th, table.cal td { min-width: 1.6rem; }

/* v1.9.14 : Matériel */
.eq-states{display:grid;grid-template-columns:repeat(auto-fit,minmax(8.5rem,1fr));gap:.6rem}
.eq-state{display:flex;flex-direction:column;align-items:center;gap:.1rem;padding:.7rem .5rem;border-radius:14px;border:1px solid var(--line);background:var(--card);cursor:pointer;color:var(--text);box-shadow:0 2px 0 rgba(0,0,0,.12)}
.eq-state b{font-size:1.5rem;line-height:1.1}.eq-state span{font-size:.8rem;color:var(--muted);text-align:center}
.eq-state.on{outline:2px solid var(--brand,#ec1a84);background:color-mix(in srgb,var(--brand,#ec1a84) 12%,var(--card))}
.eq-card{flex-wrap:wrap;gap:.5rem}.eq-card .title{font-weight:600;color:var(--text);text-decoration:none}
.rs-row{border:1px solid var(--line);border-radius:12px;padding:.6rem .7rem;display:flex;flex-direction:column;gap:.4rem}
.rs-row.off{opacity:.6}.rs-more{display:flex;flex-wrap:wrap;gap:.4rem}.rs-more .i{flex:1 1 9rem}

/* ===== v1.9.15 : Présences (maquette « barre compacte 2 »), jour actuel, zoom, modification ===== */
@media (min-width: 1000px) {
  main.page.merge-head { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 1.1rem; row-gap: .7rem; }
  main.page.merge-head > .page-head { margin: 0 0 .2rem; flex: none; }
  main.page.merge-head > .pr-bar { flex: 1 1 0; min-width: 0; margin: 0 0 .2rem; flex-wrap: nowrap; }
  main.page.merge-head > *:not(.page-head):not(.pr-bar) { flex: 0 0 100%; }
}
.pr-bar .pr-nav { flex: 1 1 auto; min-width: 0; }
.pr-bar .pr-lab { width: 22.5rem; justify-content: center; flex-wrap: nowrap; }
.pr-bar .pr-lab b { width: 11.5rem; text-align: center; white-space: nowrap; }
.pr-bar .pr-lab input { width: 9.6rem; flex: none; }
@media (max-width: 999px) { .pr-bar .pr-lab { width: auto; flex-wrap: wrap; } .pr-bar .pr-lab b { width: auto; } }
.page-head .back, .top-title .back { border-radius: 50%; border: 2px solid var(--pink, #ec1a84); background: var(--card); box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.page-head .back { width: 2.9rem; height: 2.9rem; }
.page-head .back svg { width: 26px; height: 26px; stroke-width: 3; }
html[data-device="phone"] .page-head .back { width: 2.4rem; height: 2.4rem; }
html[data-device="phone"] .page-head .back svg { width: 22px; height: 22px; }
.pr-tools { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; margin: 1.7rem 0 .5rem; }
.pr-tools b { min-width: 3rem; text-align: center; }
.cal-wrap { zoom: var(--cz, 1); }
table.cal td, table.cal th { height: 2.4rem; }
table.cal td .hv { height: 2.4rem; }
table.cal td.name { font-size: .95rem; white-space: normal; line-height: 1.12; overflow: visible; }
table.cal td.name em { display: block; font-style: normal; font-size: .72rem; font-weight: 600; color: var(--text-3); }
table.cal td.name.gone { color: var(--text-3); }
:root[data-theme="dark"] table.cal td.we, :root[data-theme="dark"] table.cal th.we { background: #454d5c; }
:root[data-theme="light"] table.cal td.we, :root[data-theme="light"] table.cal th.we { background: #dde2e9; }
table.cal th { line-height: 1.1; }
table.cal th small { display: block; font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; }
table.cal th.today { background: #ec1a84 !important; color: #fff !important; border-radius: 10px 10px 0 0; }
table.cal td.today, table.cal td.today.gap { box-shadow: inset 3px 0 0 #ec1a84, inset -3px 0 0 #ec1a84; background-color: transparent; }
table.cal tr.lastrow td.today { box-shadow: inset 3px 0 0 #ec1a84, inset -3px 0 0 #ec1a84, inset 0 -3px 0 #ec1a84; }
table.cal.cal-dim td:not(.today) .hv { opacity: .42; }
table.cal.cal-dim th:not(.today):not(.name) { opacity: .62; }
table.cal td.sat .hv::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: #e8b923; }
table.cal td .hv .pm { right: 2px; bottom: 6px; top: auto; left: auto; inset: auto 3px 6px auto; width: 1.15rem; height: 1.15rem; border-radius: 6px; background: #e8b923; color: #1c1f24; text-shadow: none; font-weight: 800; font-size: .72rem; justify-content: center; }
table.cal td.oc .hv::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: #8ac926; z-index: 1; }
table.cal td .hv .ao { position: absolute; left: 3px; top: 7px; width: 1.1rem; height: 1.1rem; border-radius: 6px; background: #8ac926; color: #1c1f24; font-size: .7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.legend .hol-i { background: repeating-linear-gradient(45deg, #3a4050 0 3px, transparent 3px 6px); border: 1px solid #5b6577; }
.pr-foot { display: flex; justify-content: center; gap: .6rem; margin-top: .9rem; }
.pr-foot .btn.on { outline: 2px solid var(--pink, #ec1a84); }
.pr-edit-banner { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin: .9rem 0 0; padding: .55rem .9rem; border: 2px solid #ec1a84; border-radius: 12px; background: color-mix(in srgb, #ec1a84 16%, var(--card)); }
.pr-edit-banner span { flex: 1; font-size: .88rem; }
table.cal.cal-edit td[data-u] { cursor: cell; user-select: none; -webkit-user-select: none; }
table.cal.cal-edit td.sel { outline: 3px solid #fff; outline-offset: -3px; box-shadow: inset 0 0 0 6px #ec1a84; }
:root[data-theme="light"] table.cal.cal-edit td.sel { outline-color: #1d2024; }
.pr-actbar { position: sticky; bottom: .7rem; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1rem; padding: .6rem .8rem; border-radius: 16px; background: var(--card); border: 2px solid #ec1a84; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.pr-actbar[hidden] { display: none; }
.pr-actbar .ab-btns { display: flex; flex-wrap: wrap; gap: .4rem; }
.ctx-menu { position: fixed; z-index: 200; min-width: 15rem; padding: .35rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.5); display: flex; flex-direction: column; }
.ctx-menu button { text-align: left; padding: .55rem .8rem; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; border-radius: 9px; cursor: pointer; }
.ctx-menu button:hover { background: color-mix(in srgb, #ec1a84 18%, transparent); }
/* v1.9.15 : Planning A et P — résumé compact centré, séparateurs soutenus, magasins en pastilles, onglets sur smartphone */
.week-box.wk-compact { max-width: 46rem; margin: 0 auto 1rem; padding: .8rem .9rem; text-align: center; }
.wk-compact .wk-title { margin: 0 0 .6rem; color: #fff; font-size: 1.15rem; }
html:not([data-theme="dark"]) .wk-compact .wk-title { color: var(--text); }
.wk-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.wk-tile { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .6rem .45rem; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2, rgba(255,255,255,.04)); min-width: 0; }
.wk-tile .wk-lab { font-size: .76rem; color: var(--text-3); line-height: 1.2; }
.wk-tile .wk-name { font-size: 1rem; overflow-wrap: anywhere; }
.st-pill { display: inline-block; font-weight: 800; font-size: 1.02rem; padding: .22rem .85rem; border-radius: 999px; color: #0b1620; letter-spacing: .01em; }
.st-pill.sarre { background: #27c3c8; }
.st-pill.otter { background: #f59a3d; }
.st-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 640px) { .wk-tiles { grid-template-columns: 1fr; } .wk-tile { flex-direction: row; flex-wrap: wrap; justify-content: center; } .wk-tile .wk-lab { flex-basis: 100%; order: 3; } }
.plan-tabs { display: none; }
.plan-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 1rem; align-items: start; }
@media (max-width: 999px) {
  .plan-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; position: sticky; top: calc(var(--top-h, 3.6rem) + .35rem); z-index: 5; margin: 0 0 .7rem; padding: .35rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
  .plan-tabs button { font: inherit; font-weight: 700; font-size: .92rem; padding: .55rem .3rem; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; }
  .plan-tabs button.on { background: var(--pink); border-color: var(--pink); color: #fff; }
  .plan-cols { grid-template-columns: 1fr; }
  .plan-cols[data-tab="astreintes"] #sec-permanences, .plan-cols[data-tab="permanences"] #sec-astreintes { display: none; }
}
#sec-astreintes .item, #sec-astreintes .item + .item { border-top: 0; border-bottom: 2px solid #4a5160; border-radius: 0; }
#sec-astreintes .list .item:nth-child(even) { background: color-mix(in srgb, var(--text) 5%, transparent); }
#sec-astreintes .item.current { background: color-mix(in srgb, #7c5cff 22%, transparent); box-shadow: inset 5px 0 0 #2aa876; }
.sat-day { border-top: 3px solid #4a5160; padding: .7rem 0; }
.sat-day:nth-of-type(even) { background: color-mix(in srgb, var(--text) 4%, transparent); }
.week-box .badge.pink, .item.current .badge.pink { color: #fff; }

@media (min-width: 1000px) { main.page.merge-head .pr-bar .pr-stores { flex-wrap: nowrap; } main.page.merge-head .pr-bar .pr-stores button { padding: .42rem .9rem; white-space: nowrap; } }
@media (min-width: 1000px) {
  .pr-bar .pr-lab { width: 19.5rem; gap: .4rem; }
  .pr-bar .pr-lab b { width: 8.6rem; font-size: .95rem; }
  .pr-bar .pr-lab input { width: 8.7rem; padding-left: .4rem; padding-right: .3rem; }
  main.page.merge-head .pr-bar { gap: .6rem .8rem; }
  main.page.merge-head .pr-bar .seg button { padding: .45rem .75rem; font-size: .9rem; white-space: nowrap; }
  main.page.merge-head .pr-bar .pr-stores button { padding: .4rem .75rem; font-size: .9rem; }
  main.page.merge-head .pr-bar .pr-nav { flex: 0 1 auto; margin: 0 auto; }
}
@media (min-width: 1000px) {
  .pr-bar .pr-lab { width: 17.2rem; gap: .3rem; }
  .pr-bar .pr-lab b { width: 7.4rem; font-size: .92rem; }
  .pr-bar .pr-lab input { width: 7.6rem; font-size: .85rem; }
  main.page.merge-head .pr-bar { gap: .5rem .6rem; }
  main.page.merge-head .pr-bar .pr-nav { gap: .35rem; }
  main.page.merge-head .pr-bar .seg button { padding: .42rem .6rem; font-size: .86rem; }
  main.page.merge-head .pr-bar .pr-stores { gap: .35rem; }
  main.page.merge-head .pr-bar .pr-stores button { padding: .38rem .6rem; font-size: .86rem; }
  main.page.merge-head > .page-head { margin-right: -.3rem; }
}
@media (max-width: 999px) {
  main.page.merge-head > .page-head { display: none; }
  main.page.merge-head .pr-bar { display: grid; grid-template-columns: 1fr auto; gap: .4rem .5rem; margin-bottom: .4rem; }
  main.page.merge-head .pr-bar .pr-stores { grid-column: 1 / -1; flex-wrap: nowrap; gap: .3rem; }
  main.page.merge-head .pr-bar .pr-stores button { flex: 1 1 0; padding: .38rem .2rem; font-size: .82rem; white-space: nowrap; }
  main.page.merge-head .pr-bar .pr-nav { grid-column: 1 / -1; margin: 0; flex-wrap: nowrap; }
  main.page.merge-head .pr-bar .pr-lab { gap: .3rem; flex-wrap: wrap; }
  main.page.merge-head .pr-bar .pr-lab b { font-size: .95rem; }
  main.page.merge-head .pr-bar .seg { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); }
  main.page.merge-head .pr-bar .seg button { padding: .42rem .2rem; font-size: .86rem; }
  .pr-tools { flex-wrap: nowrap; gap: .35rem; font-size: .8rem; }
  .pr-tools .muted { display: none; }
  .pr-tools b { white-space: nowrap; }
}
#sec-astreintes .row.between { flex-wrap: wrap; gap: .4rem; }

/* ===== v1.9.16 ===== */
/* Fiche : onglets en relief (type dossier) */
.ptabs { gap: 2px; padding: .5rem .5rem 0; margin: .9rem 0 0; background: color-mix(in srgb, var(--text) 6%, var(--card)); border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; }
.ptab-b { border: 0; border-top: 4px solid transparent; border-radius: 12px 12px 0 0; padding: .7rem 1.1rem; min-height: 2.9rem; color: var(--text); font-weight: 700; opacity: .85; }
.ptab-b.on { background: var(--card); border-top-color: var(--pink); color: var(--text); opacity: 1; box-shadow: 0 -2px 8px rgba(0,0,0,.18); }
.ptab[data-t] { background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; padding: 1rem; }
.ptab[hidden] { display: none; }
/* Fiche : boutons de l'en-tête plus petits, sur une seule rangée */
.pa-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.pa-row .btn { min-height: 2.1rem; padding: .3rem .8rem; font-size: .84rem; }
.pa-row .end-btn { border: 2px solid #d64545; color: #ff8a8a; background: transparent; }
html:not([data-theme="dark"]) .pa-row .end-btn { color: #b02a2a; }
/* Entreprise : fiche du point de vente, horaires matin / après-midi, logo */
.st-h { display: grid; grid-template-columns: 6.2rem 1fr 1fr; gap: .4rem .6rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--line-2); }
.st-p { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.st-p .check { min-width: 6.4rem; }
.st-p input.i.sm { width: 6.4rem; min-height: 2.2rem; }
@media (max-width: 719px) { .st-h { grid-template-columns: 1fr; } .st-dn { font-size: 1rem; } }
.logo-prev { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem; display: flex; align-items: center; justify-content: center; min-height: 6rem; }
.logo-prev img { max-width: 100%; max-height: 5rem; }
.hq-box { padding: .6rem .8rem; border: 2px solid var(--pink); border-radius: 14px; }
/* Annuaire (récapitulatif) : titres de secteur blancs et centrés, séparateurs plus nets */
table.recap tr.recap-sec td { text-align: center; color: #fff; background: #1d2027; font-size: .95rem; letter-spacing: .08em; border-top: 3px solid #4a5160; border-bottom: 2px solid #4a5160; }
html:not([data-theme="dark"]) table.recap tr.recap-sec td { color: #1b1e25; background: #e3e7ee; border-top-color: #9aa3b2; border-bottom-color: #9aa3b2; }
table.recap tbody tr:not(.recap-sec) td { border-bottom: 2px solid #3b414d; }
html:not([data-theme="dark"]) table.recap tbody tr:not(.recap-sec) td { border-bottom-color: #c3c9d4; }
/* Version et auteur */
.ver-by { text-align: center; font-size: .75rem; opacity: .75; margin-top: .15rem; }

/* ===== v1.9.16 — Présences : barre, période, liste, barre Modifier ===== */
.pr-stores { display: inline-flex; gap: .35rem; align-items: center; }
.pr-stores button { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-weight: 700; font-size: .85rem; cursor: pointer; }
.pr-stores button.on { background: var(--pink); border-color: var(--pink); color: #fff; }
.pr-modes button.td { position: relative; background: transparent; color: var(--ink); }
.pr-modes button.td .td-dot { display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: var(--pink); margin-right: .35rem; }
.pr-modes button.td.on { background: var(--pink); color: #fff; }
.pr-modes button.td.on .td-dot { background: #fff; }
.pr-cal-ic { margin-left: .4rem; padding: .2rem .4rem; }
.pr-period { display: none; }
.pr-view { display: inline-flex; gap: .3rem; margin-right: .6rem; }
.pr-view .btn.on { background: var(--pink); color: #fff; border-color: var(--pink); }
.pr-actbar .ab-dates { text-align: center; width: 100%; margin-bottom: .35rem; }
.pr-actbar .seg.slim { display: flex; justify-content: center; margin: 0 auto .35rem; }
.pr-actbar .seg.slim button { padding: .15rem .8rem; font-size: .82rem; white-space: nowrap; }
.pr-actbar .ab-btns { justify-content: center; }
.pr-actbar .ab-cancel { border-color: var(--pink); color: var(--pink); background: transparent; }
/* liste des présents */
.pl-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .6rem 0; }
.pl-t { background: var(--card); border: 1px solid var(--line); border-radius: .7rem; text-align: center; padding: .5rem; }
.pl-t b { display: block; font-size: 1.5rem; } .pl-t span { font-size: .8rem; color: var(--muted); }
.pl-t.in b { color: #2e9b5a; } .pl-t.late b { color: #d98a1d; } .pl-t.abs b { color: var(--pink); }
.pl-cols { display: grid; grid-template-columns: 1fr; gap: .8rem; }
.pl-grp { background: var(--card); border: 1px solid var(--line); border-radius: .8rem; overflow: hidden; }
.pl-grp h3 { margin: 0; padding: .45rem; text-align: center; background: var(--pink); color: #fff; font-size: .95rem; }
.pl-row { display: flex; align-items: center; gap: .6rem; padding: .5rem .7rem; border-top: 2px solid var(--line); }
.pl-row:first-of-type { border-top: 0; }
.pl-nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pl-nm small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-row.gone { opacity: .55; } .pl-row.gone .pl-nm b { color: var(--muted); }
.pl-pill { font-size: .75rem; border-radius: 999px; padding: .15rem .6rem; background: var(--line); }
.pl-pill.late { background: #f6e3c0; color: #8a5a10; } .pl-pill.abs, .pl-pill.part { background: #f6d5dc; color: #9a2a45; }
@media (min-width: 1000px) { .pl-cols { grid-template-columns: 1fr 1fr; align-items: start; } .pl-tiles { max-width: 34rem; } }
html[data-device="phone"] .pr-bar { display: grid; gap: .4rem; justify-items: center; }
html[data-device="phone"] .pr-period { display: block; text-align: center; margin: .5rem 0; }
html[data-device="phone"] .pr-cal-ic { display: none; }
html[data-device="phone"] .pr-tools .pr-zl { display: none; }

/* ===== v1.9.16 — titres : un seul titre, centré, sans pastille ===== */
.page-head .title3d, .top-title .title3d { display: none !important; }
html[data-device="phone"] .page-head { display: none !important; }
html[data-device="phone"] .top.has-title .top-mid .brand { display: none; }
html[data-device="phone"] .top .top-title { display: flex !important; justify-content: center; text-align: center; }
html[data-device="phone"] main.page { padding-top: .5rem; }
html[data-device="pc"] .top .top-title { display: none !important; }
html[data-device="pc"] .top.has-title .top-mid .brand { display: flex; }
/* PC : flèche de repli dans le bouton Accueil, ascenseur fin */
.side { scrollbar-width: thin; }
.side::-webkit-scrollbar { width: 5px; }
.side::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.nav-first { position: relative; display: block; }
.nav-first > .nav { padding-right: 3rem; }
.nav-first .rail-toggle { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); width: 2.2rem; height: 2.2rem; align-self: auto; }
.side.rail .nav-first > .nav { padding-right: .6rem; }
.side.rail .nav-first .rail-toggle { position: static; transform: none; margin: .15rem auto 0; display: flex; }
html[data-device="phone"] .rail-toggle { display: none; }
html[data-device="phone"] .pr-tools .pr-view { display: none; }
html[data-device="phone"] .pr-tools { justify-content: center; margin: .2rem 0 .5rem; }
html[data-device="phone"] .pr-bar { margin-bottom: .3rem; }
html[data-device="phone"] .pr-modes { width: 100%; max-width: 22rem; }
html[data-device="phone"] .pr-modes button { flex: 1; padding: .35rem .3rem; font-size: .85rem; white-space: nowrap; }
.pr-view .btn[disabled] { opacity: 1; }
.pr-view .btn.on, .pr-view .btn.on[disabled] { background: var(--pink) !important; border-color: var(--pink) !important; color: #fff !important; opacity: 1 !important; }
/* téléphone : bannière et barre du mode Modifier compactes */
html[data-device="phone"] .pr-edit-banner { margin: .3rem 0 .3rem; padding: .35rem .6rem; flex-wrap: nowrap; justify-content: space-between; }
html[data-device="phone"] .pr-edit-banner span { display: none; }
html[data-device="phone"] .pr-actbar { padding: .4rem .5rem; gap: .25rem; margin-top: .4rem; bottom: .4rem; }
html[data-device="phone"] .pr-actbar .ab-dates { font-size: .8rem; margin-bottom: .15rem; line-height: 1.25; }
html[data-device="phone"] .pr-actbar .seg.slim { margin-bottom: .2rem; }
html[data-device="phone"] .pr-actbar .seg.slim button { padding: .1rem .6rem; font-size: .78rem; }
html[data-device="phone"] .pr-actbar .ab-btns { gap: .25rem; }
html[data-device="phone"] .pr-actbar .ab-btns .btn { padding: .22rem .55rem; font-size: .78rem; min-height: 0; }
html[data-device="phone"] .pa-row { display: flex; flex-wrap: wrap; gap: .35rem; }
html[data-device="phone"] .pa-row .btn { flex: 1 1 auto; width: auto; padding: .3rem .6rem; font-size: .78rem; min-height: 0; }

/* ===== v1.9.17 : menu replié, flèche en relief, bouton retour toujours au même endroit ===== */
.rail-toggle { color: var(--pink) !important; background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 55%), var(--card) !important; box-shadow: 0 3px 0 rgba(0,0,0,.35), 0 5px 10px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.45) !important; }
.rail-toggle svg { stroke-width: 3.2 !important; filter: drop-shadow(0 1px 0 rgba(0,0,0,.35)); }
.nav-first .rail-toggle:active { transform: translateY(calc(-50% + 2px)); box-shadow: 0 1px 0 rgba(0,0,0,.35), inset 0 1px 3px rgba(0,0,0,.3) !important; }
.side.rail .nav-first { display: flex; flex-direction: column; align-items: center; }
.side.rail .nav-first .rail-toggle { order: -1; margin: 0 auto .35rem; }
.side.rail .nav-first .rail-toggle:active { transform: translateY(2px); }
.side.rail .nav-first > .nav { padding: .6rem 0; justify-content: center; width: 100%; }
.side.rail a.nav .nav-ic { margin: 0 auto; }
@media (min-width: 1000px) {
  main.page > .page-head { position: relative; min-height: 2.5rem; padding-left: max(0px, calc(4.5rem - var(--off, 0px))); }
  .shell { position: relative; }
  .shell > .back-out { position: absolute; left: 1.1rem; z-index: 5; width: 2.5rem !important; height: 2.5rem !important; border-radius: 50%; border: 2px solid var(--pink, #ec1a84); background: var(--card); box-shadow: 0 3px 0 rgba(0,0,0,.25); display: inline-flex; align-items: center; justify-content: center; color: var(--text); cursor: pointer; padding: 0; }
  .shell > .back-out:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
  .shell > .back-out svg { width: 22px; height: 22px; stroke-width: 3; }
  main.page > .page-head .back { visibility: hidden; }
  main.page > .page-head h1 { margin-left: .2rem; }
}
html[data-device="phone"] .top .top-title .back { width: 2.15rem; height: 2.15rem; margin-right: .45rem; }
html[data-device="phone"] .top .top-title .back svg { width: 18px; height: 18px; }

/* ===== v1.9.17 : lignes de séparation plus marquées (plus claires en sombre, plus foncées en clair) ===== */
:root { --sep: #aeb5bf; --sep-2: #c3c9d1; }
:root[data-theme="dark"] { --sep: #646b78; --sep-2: #525864; }
table.t th { border-bottom: 2px solid var(--sep); }
table.t td { border-bottom: 1.5px solid var(--sep-2); }
table.t tr.tot td { border-top: 2px solid var(--sep); }
.item { border-bottom: 1.5px solid var(--sep-2); }
.menu-list .item, html[data-theme="dark"] .menu-list .item { border-bottom: 2px solid var(--sep-2); }

/* ===== v1.9.17 : bandes roses en dégradé B (rose sur les bords, large centre sombre) ===== */
.pl-grp h3, .ad-t tr.sec td, .ad-sh, .band-b { background: linear-gradient(90deg, #ff1493 0%, #9a1056 14%, #1e0412 32%, #1e0412 68%, #9a1056 86%, #ff1493 100%) !important; color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,.5); }

/* ===== v1.9.17 : boutons roses en dégradé A (bords sombres, centre rose) avec relief ; tous les boutons actifs en relief ===== */
/* v1.9.18 : modèle n° 2 : dégradé adouci (centre moins vif), sans halo lumineux, relief conservé */
.btn.primary:not(:disabled), .seg button.on, .seg a.on, .chip.on, .rank-btn.on { background: linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,.18) 100%), linear-gradient(90deg, #5c0d38 0%, #a3135f 30%, #c2186f 50%, #a3135f 70%, #5c0d38 100%) !important; border-color: #4a0a2d !important; color: #fff !important; text-shadow: 0 1px 1px rgba(0,0,0,.4); }
.btn.primary:not(:disabled) { box-shadow: 0 4px 0 #4a0a2d, 0 3px 6px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.35) !important; }
.btn.primary:not(:disabled):hover { filter: brightness(1.06); }
.btn.primary:not(:disabled):active { transform: translateY(3px); box-shadow: 0 1px 0 #5a0b36, inset 0 1px 3px rgba(0,0,0,.35) !important; }
.seg button.on, .seg a.on, .chip.on, .rank-btn.on { box-shadow: 0 2px 0 #4a0a2d, inset 0 1px 0 rgba(255,255,255,.3); }
.chip:not(.on):not(:disabled), .seg button:not(.on):not(:disabled) { box-shadow: 0 2px 0 rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.35); }
:root[data-theme="dark"] .chip:not(.on):not(:disabled), :root[data-theme="dark"] .seg button:not(.on):not(:disabled) { box-shadow: 0 2px 0 rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08); }
.chip:not(:disabled):active, .seg button:not(:disabled):active { transform: translateY(1px); box-shadow: none; }
.btn:disabled, .btn[disabled], .chip:disabled, .seg button:disabled { background: var(--card-2) !important; box-shadow: none !important; text-shadow: none; filter: none; }
/* téléphone : relief un peu plus léger */
html[data-device="phone"] .btn.primary:not(:disabled) { box-shadow: 0 3px 0 #4a0a2d, 0 2px 4px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.32) !important; }
html[data-device="phone"][data-theme="dark"] .btn:not(.primary):not(.report):not(:disabled) { box-shadow: 0 2px 0 #0f1216, 0 4px 7px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.1); }
html[data-device="phone"][data-theme="light"] .btn:not(.primary):not(.report):not(:disabled) { box-shadow: 0 2px 0 #b7bec9, 0 4px 7px rgba(20,24,30,.1), inset 0 1px 0 #fff; }
:root[data-theme] .btn.primary:disabled, :root[data-theme] a.btn.primary[disabled] { color: var(--text-3) !important; border-color: var(--line) !important; }

/* ===== v1.9.17 : « Présents aujourd'hui » : une ligne de compteurs discrète au lieu de trois cases ===== */
.pl-tiles.pl-count { display: flex !important; flex: 0 0 auto !important; width: 100%; max-width: none !important; flex-wrap: nowrap; gap: 1.2rem; justify-content: center; margin: .2rem 0 .8rem !important; }
.pl-count .pl-t { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; display: flex; align-items: baseline; gap: .4rem; text-align: left; white-space: nowrap; min-width: 0; }
.pl-count .pl-t b { font-size: 1.25rem !important; }
.pl-count .pl-t span { font-size: .95rem; color: var(--text-2); }
.pl-count .pl-t::before { content: ''; width: .6rem; height: .6rem; border-radius: 50%; background: currentColor; align-self: center; order: -1; }
.pl-count .pl-t.in { color: #2e9b5a; } .pl-count .pl-t.late { color: #d98a1d; } .pl-count .pl-t.abs { color: #c24a78; }
html[data-device="phone"] .pl-tiles.pl-count { gap: .7rem; }
html[data-device="phone"] .pl-count .pl-t span { font-size: .8rem; }
.pl-grp { border-width: 2px !important; } .pl-row { border-top-width: 2px !important; }

/* ===== v1.9.17 : cartes en colonnes sans trous, listes repliées et carte agrandie au clic ===== */
.dash-cards { display: grid; grid-template-columns: 1fr; gap: .8rem; align-items: start; }
.dash-cards.mz { display: flex; gap: .8rem; align-items: flex-start; }
.mz-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: .8rem; position: relative; }
.card.foldable { cursor: pointer; }
.card.foldable .fold-x { display: none !important; }
.card.foldable.fold-open .fold-x { display: flex !important; }
.card.foldable.fold-open .chips .fold-x { display: inline-flex !important; }
.fold-more { align-self: flex-start; background: none; border: 0; padding: .2rem 0; color: var(--pink-strong); font-weight: 800; font-size: .9rem; cursor: pointer; box-shadow: none !important; }
:root[data-theme="dark"] .fold-more { color: #ff6fb5; }
.card.foldable.fold-open .fold-more { font-size: 0; }
.card.foldable.fold-open .fold-more::after { content: 'Réduire'; font-size: .9rem; }
html[data-device="pc"] .card.foldable.fold-open { position: absolute; z-index: 30; box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 0 2px var(--pink) !important; max-height: 78vh; overflow-y: auto; }
:root[data-theme="light"] .card.foldable.fold-open { background: #fff !important; }
:root[data-theme="dark"] .card.foldable.fold-open { background: #2a2e36 !important; }
.fold-ph { border-radius: var(--radius, 16px); border: 2px dashed var(--line); opacity: .5; }
.dash-cards { position: relative; }

/* ===== v1.9.17 : véhicules : photo visible, modèles, contrats ===== */
.vthumb { width: 5.2rem; height: 3.3rem; flex: none; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--line); margin-right: .7rem; }
.vthumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.vphoto-top { display: flex; justify-content: center; background: #fff; border-radius: 16px; padding: .6rem; border: 1px solid var(--line); }
.vphoto-top img { max-width: 100%; max-height: 13rem; object-fit: contain; }
.fv-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.vphoto-fleet { background: #fff; border-radius: 14px; padding: .4rem .6rem; border: 1px solid var(--line); display: flex; }
.vphoto-fleet img { height: 7.5rem; max-width: 100%; object-fit: contain; }
.fv-tags { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
html[data-device="phone"] .vphoto-fleet img { height: 5.5rem; }
.seg.seg-wrap { flex-wrap: wrap; }
.vp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .6rem; margin: .4rem 0; }
.vp-th { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .35rem; border-radius: 12px; border: 2px solid var(--line); background: #fff; cursor: pointer; color: #333; font: inherit; font-size: .8rem; width: 100%; }
.vp-th img { width: 100%; height: 5.5rem; object-fit: contain; }
.vp-th.on { border-color: var(--pink); box-shadow: 0 0 0 3px var(--pink-soft); }
.vp-up { position: relative; display: block; } .vp-up .btn { position: absolute; top: .2rem; right: .2rem; min-height: 1.8rem; padding: 0 .45rem; }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1rem; align-items: start; }
.ct-card { border: 1.5px solid var(--sep-2); border-radius: 14px; padding: .8rem 1rem; }
.ct-card h3 { margin: 0; }
.ct-l { display: flex; justify-content: space-between; gap: 1rem; padding: .32rem 0; border-bottom: 1px solid var(--sep-2); font-size: .92rem; }
.ct-l span { color: var(--text-3); } .ct-l b { text-align: right; }
.ct-al { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
input.proposed, textarea.proposed { border-color: #e08a1e !important; background: color-mix(in srgb, #e08a1e 10%, var(--card)) !important; }
.vmod-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 34rem), 1fr)); gap: 1rem; align-items: start; }
.vm-blk { border: 2px solid var(--sep-2); border-radius: 16px; overflow: hidden; background: var(--card); padding-bottom: .6rem; }
.vm-blk > *:not(.vm-h) { margin-left: .8rem; margin-right: .8rem; }
.vm-h { margin: 0 0 .5rem; padding: .5rem .8rem; display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: 1.05rem; }
.vm-ren { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.5); color: #fff; border-radius: 50%; width: 1.8rem; height: 1.8rem; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.vm-plates { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .3rem; }
.vm-plates a.badge { text-decoration: none; }
.vm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.vm-ph { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .3rem; display: flex; flex-direction: column; align-items: center; gap: .2rem; cursor: zoom-in; color: #444; font: inherit; font-size: .75rem; }
.vm-ph img { width: 100%; height: 5rem; object-fit: contain; }
html[data-device="phone"] .vm-grid { grid-template-columns: repeat(2, 1fr); }
.zl-chips { margin: .3rem 0 .6rem; }
.pt-row { cursor: pointer; } .pt-row input { width: 1.2rem; height: 1.2rem; flex: none; }
.fl-card .vthumb { margin-right: .6rem; }

/* ===== v1.9.17 : Primes et repas : mois dans la ligne du titre, colonnes resserrées, séparateurs, lignes alternées ===== */
main.page.merge-head > .pay-bar { flex: 1 1 auto; display: flex; align-items: center; gap: .8rem; flex-wrap: nowrap; }
.pay-bar .mn-compact { flex: none; }
.pay-bar .mn-compact a, .pay-bar .mn-compact span { padding: .32rem .7rem; font-size: .9rem; white-space: nowrap; }
.pay-bar .mn-compact span.on { flex: none; min-width: 8.5rem; text-align: center; }
.pay-bar .st-badge { font-size: .78rem; padding: .15rem .55rem; }
html[data-device="phone"] main.page.merge-head > .pay-bar { display: flex; justify-content: space-between; margin-bottom: .3rem; }
table.pay17 { table-layout: fixed; width: 100%; min-width: 68rem; border-collapse: collapse; }
table.pay17 th, table.pay17 td { border-right: 1.5px solid var(--sep); padding: .5rem .5rem; vertical-align: top; }
table.pay17 th:last-child, table.pay17 td:last-child { border-right: 0; }
table.pay17 thead th { text-align: center; font-weight: 800; font-size: .8rem; color: #fff; background: #2a2f38; border-bottom: 2px solid var(--sep); vertical-align: middle; }
:root[data-theme="light"] table.pay17 thead th { background: #3b4250; }
table.pay17 tbody tr:nth-child(even):not(.tot) td { background: color-mix(in srgb, var(--text) 5%, transparent); }
table.pay17 td.astcol { background: color-mix(in srgb, #1f9d74 9%, transparent) !important; }
table.pay17 thead th.astcol { background: #1f3a33; }
:root[data-theme="light"] table.pay17 thead th.astcol { background: #2c5b4e; }
table.pay17 td.days, table.pay17 td.prev { text-align: center; }
table.pay17 .who-l { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
table.pay17 .who-s, .pay-card .who-s { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; margin-top: .2rem; }
.ic-clock { display: inline-flex; align-items: center; justify-content: center; background: none !important; border: 0 !important; box-shadow: none !important; padding: 0; color: var(--pink-strong); cursor: pointer; }
:root[data-theme="dark"] .ic-clock { color: #ff5fa8; }
.fnp { font-size: .7rem; font-weight: 700; color: var(--pink-strong); background: var(--pink-soft); border-radius: 999px; padding: .05rem .5rem; white-space: nowrap; }
:root[data-theme="dark"] .fnp { color: #ff8fc4; background: #3a1f30; }
.rate-in { display: inline-flex; align-items: center; gap: .25rem; }
.rate-in .num { width: 3.9rem !important; padding: 0 .3rem; }
.rate-in .u { font-size: .8rem; color: var(--text-3); }
.days-fill { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0; font: inherit; font-weight: 800; color: var(--pink-strong); border-bottom: 1.5px dotted currentColor !important; cursor: pointer; }
:root[data-theme="dark"] .days-fill { color: #ff5fa8; }
.meal-in { display: inline-flex; align-items: center; gap: .35rem; }
.meal-in .num { width: 3.6rem !important; }
.pay17 .pline, .pay-card .pline { display: flex; align-items: center; gap: .3rem; flex-wrap: nowrap; margin-bottom: .3rem; }
.pt-sel { max-width: 7.4rem; font-size: .8rem !important; padding-left: .35rem !important; padding-right: 1.4rem !important; min-height: 2rem; }
.pt-lab { width: 6rem; font-size: .8rem !important; }
.pay17 .pline .money-in .num, .pay-card .pline .money-in .num { width: 4.2rem !important; }
.pay17 .pline .gross { display: none; }
.oc-edit .astrow { display: flex; align-items: center; gap: .35rem; margin-bottom: .3rem; }
.oc-edit .astrow span { width: 3.2rem; font-size: .78rem; color: var(--text-3); }
.oc-edit .astrow .num { width: 3.2rem !important; }
.na { font-size: .75rem; color: var(--text-3); opacity: .7; font-style: italic; }
.pay-card .pc-head { padding-bottom: .4rem; border-bottom: 1.5px solid var(--sep-2); margin-bottom: .4rem; }
.pay-card .pc-grid { display: grid; grid-template-columns: 1.2fr .7fr 1.1fr; gap: .4rem; margin: .3rem 0; }
.pay-card .pc-grid > div { display: flex; flex-direction: column; gap: .15rem; }
.pay-card .pc-l { display: block; font-size: .72rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .03em; margin-bottom: .15rem; }
.pay-card .pay-row { border-top: 1.5px solid var(--sep-2); padding-top: .45rem; margin-top: .45rem; }
.pay-card .pay-row.astcol { background: color-mix(in srgb, #1f9d74 8%, transparent); border-radius: 8px; padding: .45rem; }
html[data-device="phone"] .pay-bar .mn-compact a { padding: .3rem .45rem; font-size: .8rem; }
html[data-device="phone"] .pay-bar .mn-compact span.on { min-width: 0; padding: .3rem .5rem; font-size: .85rem; }
html[data-device="phone"] .pay-bar { gap: .4rem; }
.pl-count .pl-t::before { flex: none; }
html[data-device="phone"] .pay-bar .mn-x { display: none; }
.pay-bar .mn-compact { width: auto !important; max-width: 100%; display: inline-flex; }
.pay-bar .mn-compact > a, .pay-bar .mn-compact > span { flex: none !important; }
html[data-device="phone"] main.page.merge-head > .pay-bar { display: flex !important; grid-template-columns: none; align-items: center; }
main.page.merge-head .pay-bar .seg.mn-compact { display: inline-flex !important; grid-template-columns: none !important; grid-column: auto !important; margin: 0 !important; }

/* ===== v1.9.18 : accueil réglable (cadenas, glisser-déposer, pleine / demi-largeur) ===== */
.hello-tools { display: inline-flex; align-items: center; gap: .5rem; }
.home-lock { width: 2rem; height: 2rem; border-radius: 50%; border: 1.5px solid var(--pink); background: var(--card); color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-shadow: 0 2px 0 rgba(0,0,0,.22); }
.home-lock.open { background: #b8166a; border-color: #b8166a; color: #fff; }
.home-lay { display: grid; grid-template-columns: 1fr; gap: .7rem; align-items: start; }
.home-lay.pc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; }
@media (min-width: 1000px) { main.page:has(.home-lay.pc) { max-width: 1240px; } }
.hl-col { display: flex; flex-direction: column; gap: .6rem; min-height: 3rem; }
.hl-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.hl-row.pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hl-it { min-width: 0; position: relative; }
.hl-it > .tw { margin: 0 !important; height: 100%; }
.hl-row.pair .tile { height: 100%; box-sizing: border-box; }
.home-lay.pc .tile, .home-lay.pc .tile.urgent { min-height: 0; height: 3.9rem; padding: .4rem .9rem; gap: .8rem; border-radius: 16px; flex-direction: row; align-items: center; text-align: left; justify-content: flex-start; }
.home-lay.pc .tile .bubble { width: 2.7rem; height: 2.7rem; border-width: 3px; flex: none; }
.home-lay.pc .tile .t { font-size: 1rem; letter-spacing: 0; }
.home-lay.pc .tile .s, .hl-it.half .tile .s { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.home-lay .tile .grow { min-width: 0; }
.home-lay.pc .hl-it.half .tile .t { font-size: .92rem; line-height: 1.15; }
.home-lay.phone .hl-it.half .tile { padding: .55rem .5rem; gap: .45rem; min-height: 4.6rem; }
.home-lay.phone .hl-it.half .tile .t { font-size: .8rem; line-height: 1.15; overflow-wrap: anywhere; }
.home-lay.phone .hl-it.half .tile .s { font-size: .7rem; }
.home-lay.phone .hl-it.half .tile .bubble { width: 2.3rem; height: 2.3rem; flex: none; border-width: 3px; }
.home-lay .home-todo { margin: 0; }
.home-lay .home-todo .list { max-height: none; overflow: visible; }
.home-lay.pc .home-todo.fold-open { position: absolute; z-index: 30; max-height: 75vh; overflow-y: auto; box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 0 2px var(--pink) !important; }
:root[data-theme="light"] .home-todo.fold-open { background: #fff !important; }
:root[data-theme="dark"] .home-todo.fold-open { background: #2a2e36 !important; }
.hl-cust { display: flex; justify-content: center; margin-top: .9rem; }
.hl-hint { text-align: center; font-size: .88rem; color: var(--text-3); margin: .1rem 0 .6rem; }
.hl-bar { display: flex; gap: .7rem; justify-content: center; margin-top: 1rem; }
.home-lay.editing .hl-it { outline: 2px dashed rgba(255,20,147,.7); outline-offset: 3px; border-radius: 16px; cursor: grab; touch-action: none; }
.home-lay.phone.editing .hl-it { touch-action: auto; }
.home-lay.phone.editing .hl-it .bubble { touch-action: none; animation: hl-wig 1.6s ease-in-out infinite; }
@keyframes hl-wig { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
.home-lay.editing .hl-it a { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.hl-it.hl-src { opacity: .35; }
.hl-ghost { position: fixed; z-index: 1000; pointer-events: none; transform: rotate(-2deg) scale(1.03); box-shadow: 0 22px 40px rgba(0,0,0,.45); border-radius: 16px; outline: 2px solid #ff1493; }
.hl-ghost .tile, .hl-ghost .tw { margin: 0 !important; height: 3.9rem; }
.hl-it.hl-target { outline: 3px solid #ff1493 !important; }
.hl-it.hl-l::before, .hl-it.hl-r::before { content: ''; position: absolute; top: 0; bottom: 0; width: 46%; border: 2.5px dashed #ff1493; border-radius: 14px; background: rgba(255,20,147,.12); z-index: 3; }
.hl-it.hl-l::before { left: 0; } .hl-it.hl-r::before { right: 0; }
.hl-it.hl-t::after, .hl-it.hl-b::after { content: ''; position: absolute; left: 0; right: 0; height: 4px; border-radius: 4px; background: #ff1493; z-index: 3; }
.hl-it.hl-t::after { top: -.42rem; } .hl-it.hl-b::after { bottom: -.42rem; }
.hl-col.hl-end { outline: 2.5px dashed #ff1493; outline-offset: 4px; border-radius: 16px; }
.trial-banner { display: block; margin: .2rem 0 .8rem; padding: .55rem .9rem; border-radius: 12px; background: #fff3c4; color: #5a4600; border: 1.5px solid #e2c24a; text-decoration: none; font-size: .9rem; }
.trial-banner span { float: right; font-weight: 800; }
:root[data-theme="dark"] .trial-banner { background: #3a3412; color: #ffe27a; border-color: #6b5f1c; }
.trial-page { max-width: 34rem; display: flex; align-items: center; justify-content: center; min-height: 100dvh; }
.trial-box { text-align: left; }
.trial-box .lock-logo { text-align: center; }
.remark-fab { position: fixed; left: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 30; border-radius: 999px; border: 2px solid #e2c24a; background: #fff3c4; color: #5a4600; font: inherit; font-weight: 800; font-size: .85rem; padding: .45rem .85rem; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.2); }
:root[data-theme="dark"] .remark-fab { background: #3a3412; color: #ffe27a; border-color: #8a7a20; }
body:has(.sticky-actions) .remark-fab { bottom: calc(5.6rem + env(safe-area-inset-bottom)); }
html[data-device="pc"] .remark-fab { left: auto; right: 4.4rem; }
.open-card { border: 2px solid var(--pink) !important; }

/* ===== v1.9.18 : barre des Présences simplifiée ===== */
main.page.merge-head > .pr-bar.pr-bar18 { display: flex; align-items: center; gap: .7rem; flex-wrap: nowrap; flex: 1 1 0; min-width: 0; margin: 0 0 .2rem; }
.pgrp { display: inline-flex; border-radius: 999px; background: var(--card); border: 1.5px solid var(--sep); padding: 3px; gap: 2px; box-shadow: 0 2px 0 rgba(0,0,0,.22); flex: none; }
.pgrp > button, .pgrp > a { border: 0 !important; background: none !important; box-shadow: none !important; color: var(--text); font: inherit; font-weight: 700; font-size: .9rem; padding: .36rem .72rem; border-radius: 999px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; white-space: nowrap; min-height: 0; text-shadow: none; }
.pgrp > .on { background: linear-gradient(180deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 50%, rgba(0,0,0,.18) 100%), linear-gradient(90deg, #5c0d38 0%, #a3135f 30%, #c2186f 50%, #a3135f 70%, #5c0d38 100%) !important; color: #fff !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 2px rgba(0,0,0,.35) !important; }
.pnav { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; flex: none; }
.pnav .plab { min-width: 7.6rem; text-align: center; font-size: 1rem; white-space: nowrap; }
.pic { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1.5px solid var(--sep); background: var(--card); color: var(--text); display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,.22); flex: none; }
.pic:active { transform: translateY(1px); box-shadow: none; }
.pset-w { position: relative; flex: none; }
.pset-pop { position: absolute; right: 0; top: calc(100% + .45rem); z-index: 60; background: var(--card); border: 1.5px solid var(--sep); border-radius: 14px; padding: .8rem 1rem; box-shadow: 0 14px 30px rgba(0,0,0,.4); display: flex; flex-direction: column; gap: .7rem; width: 17rem; }
.pset-pop .r { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-weight: 700; font-size: .9rem; }
.pset-pop .z { display: inline-flex; align-items: center; gap: .4rem; }
.pset-pop input[type=checkbox] { width: 1.2rem; height: 1.2rem; }
.pr-tools { display: none !important; }
@media (max-width: 999px) {
  main.page.merge-head > .pr-bar.pr-bar18 { display: grid !important; grid-template-columns: 1fr auto; gap: .55rem; align-items: center; flex: 0 0 100%; }
  .pr-bar18 .pr-stores { grid-column: 1; grid-row: 1; display: flex; }
  .pr-bar18 .pr-stores > button { flex: 1 1 0; }
  .pr-bar18 .pset-w { grid-column: 2; grid-row: 1; }
  .pr-bar18 .pr-modes { grid-column: 1 / -1; grid-row: 2; display: flex; }
  .pr-bar18 .pr-modes > button { flex: 1 1 0; }
  .pr-bar18 .pnav { grid-column: 1 / -1; grid-row: 3; margin: 0 auto; }
  .pr-bar18:not(.pl-bar) .pview { display: none; }
  .pl-bar.pr-bar18 .pview { grid-column: 2; grid-row: 1; }
  .pl-bar.pr-bar18 { grid-template-columns: 1fr auto; }
}

/* ===== v1.9.18 : bandes roses : titres centrés et plus gros, extrémités légèrement arrondies ===== */
.ad-t { border-collapse: separate !important; border-spacing: 0; }
.ad-t tr.sec td { text-align: center !important; border-radius: 6px; border: 0 !important; font-size: 1rem !important; padding: .42rem .7rem !important; letter-spacing: .06em; box-shadow: 0 2px 5px rgba(0,0,0,.22); }
.ad-t td { border-bottom: 1.5px solid var(--sep-2); }
.ad-sh { text-align: center; border-radius: 6px !important; font-size: .98rem !important; padding: .42rem .7rem !important; letter-spacing: .06em; }
.pl-grp h3 { font-size: 1.1rem !important; letter-spacing: .03em; }
.vm-h { font-size: 1.15rem !important; }
.band-b { border-radius: 6px; }
.vm-blk .vm-h.band-b { border-radius: 0; }

/* ===== v1.9.18 : zones de dépôt : « cliquez pour choisir » lisible ===== */
.drop-box .db-or { font-size: .95rem; color: var(--text-2); }
.drop-box .db-or u { color: #b3125f; font-weight: 800; font-size: 1rem; }
:root[data-theme="dark"] .drop-box .db-or { color: #d5dae2; }
:root[data-theme="dark"] .drop-box .db-or u { color: #ff8cc6; }

/* ===== v1.9.18 : bouton d'aide plus grand, « ? » blanc, contour rose ===== */
.help-fab { width: 2.6rem !important; height: 2.6rem !important; font-size: 1.45rem !important; font-weight: 900 !important; color: #fff !important; background: radial-gradient(circle at 35% 30%, #3a3f4a, #1b1e24) !important; border: 2.5px solid #ff1493 !important; text-shadow: 0 1px 2px rgba(0,0,0,.6); box-shadow: 0 3px 0 #4a0a2d, 0 4px 8px rgba(0,0,0,.3) !important; }
.help-mini { color: #fff !important; background: radial-gradient(circle at 35% 30%, #3a3f4a, #1b1e24) !important; border: 2px solid #ff1493 !important; font-weight: 900; }

/* ===== v1.9.18 : « Cette semaine » moins haute et plus large sur PC, couleurs des magasins atténuées ===== */
html[data-device="pc"] .week-box.wk-compact { max-width: 64rem; padding: .5rem .9rem .6rem; }
html[data-device="pc"] .wk-compact .wk-title { margin: 0 0 .4rem; font-size: 1.05rem; }
html[data-device="pc"] .wk-tile { flex-direction: row; justify-content: center; gap: .7rem; padding: .4rem .7rem; flex-wrap: nowrap; }
html[data-device="pc"] .wk-tile .wk-ic { width: 2rem; height: 2rem; }
html[data-device="pc"] .wk-tile .wk-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; text-align: left; }
html[data-device="pc"] .wk-tile .wk-lab { font-size: .74rem; }
html[data-device="pc"] .wk-tile .st-pill { font-size: .9rem; padding: .12rem .7rem; }
.st-pill.sarre { background: #6fc4c7; } .st-pill.otter { background: #e9b07a; }
:root[data-theme="dark"] .st-pill.sarre { background: #4fa9ad; } :root[data-theme="dark"] .st-pill.otter { background: #cf9561; }

/* ===== v1.9.18 : Véhicules : onglets « Mes véhicules · Gestion de la flotte », cartes du téléphone mieux rangées ===== */
main.page.merge-head > .vtabs-bar { flex: 1 1 auto; display: flex; align-items: center; margin: 0 0 .2rem; }
.vtabs .pastille { margin-left: .35rem; }
main.page.merge-head > .veh-mine, main.page.merge-head > .fl-top { flex: 0 0 100%; }
@media (max-width: 999px) {
  main.page.merge-head > .vtabs-bar { display: flex !important; flex: 0 0 100%; }
  .vtabs { width: 100%; } .vtabs > a { flex: 1 1 0; font-size: .86rem; padding: .42rem .45rem; }
}
html[data-device="phone"] .fl-card > .row.between { display: grid !important; grid-template-columns: 5rem minmax(0, 1fr); gap: .2rem .7rem; align-items: start; }
html[data-device="phone"] .fl-card .vthumb { grid-row: span 2; width: 5rem; margin: 0; }
html[data-device="phone"] .fl-card > .row.between > .badge { grid-column: 2; justify-self: start; }
.wk-tile .wk-txt { display: contents; }

/* ===== v1.9.18 : zoom à 125 % et plus : la page ne s'élargit plus, seul un tableau trop large défile ===== */
main.page.merge-head > *:not(.page-head) { min-width: 0; max-width: 100%; }
.pay-main .pay-wrap { max-width: 100%; overflow-x: auto; }
table.pay17 { min-width: 54rem !important; }
.sticky-actions { max-width: 100%; box-sizing: border-box; }
table.pay17 td.who .who-l b { overflow-wrap: anywhere; }

/* ===== v1.9.18 : titre de page toujours à la même distance du bouton retour (PC) ===== */
@media (min-width: 1000px) {
  .shell > .page-head { margin: 1rem 1rem 0; padding-left: 3.5rem; min-height: 2.5rem; position: relative; }
  .shell > .page-head + main.page { padding-top: .6rem; }
  main.page.merge-head > .page-head { padding-left: max(0px, calc(4.5rem - var(--off, 0px))); }
}
@media (min-width: 1000px) { .shell > .page-head h1 { margin-left: .2rem; } }
.home-lay.editing, .home-lay.editing * { -webkit-user-select: none; user-select: none; }
html[data-device="phone"] main.page.merge-head > * { flex: none !important; }
@media (max-width: 999px) { main.page.merge-head > .pr-bar, main.page.merge-head > .vtabs-bar, main.page.merge-head > .pay-bar { flex: none !important; } }
@media (max-width: 999px) { .pr-bar18 .pr-stores { width: 100%; box-sizing: border-box; } }
.trial-page { display: block !important; min-height: 0; padding: 1rem !important; max-width: 34rem; margin: 0 auto; box-sizing: border-box; }
.trial-box { width: 100%; box-sizing: border-box; margin-top: 6vh; overflow-wrap: anywhere; }
.trial-box .lock-logo { flex-wrap: nowrap; max-width: 100%; }
.trial-box .lock-logo .logo-word { font-size: 1.45rem; }
html[data-device="phone"] .trial-box .lock-logo .logo-word { font-size: 1.15rem; }
html[data-device="phone"] .trial-box .lock-logo .cross { height: 1.6rem; }
html[data-device="phone"] .trial-box h2, html[data-device="phone"] .trial-box h1 { font-size: 1.35rem; }
html[data-device="phone"] .trial-page { padding: .6rem !important; }
html[data-device="phone"] .trial-box { padding: 1rem .9rem; margin-top: 3vh; }
html[data-device="phone"] .trial-box .lock-logo .logo-word { font-size: 1.05rem; }

/* ===== v1.9.19 : annuaire plus lisible (texte plus épais, noms plus marqués, panneau « interdit » écarté du numéro) ===== */
.ad-t tr:not(.sec) td { font-weight: 600; font-size: .98rem; }
.ad-t tr:not(.sec) td b { font-weight: 800; }
.ad-t td .nc-ico { margin-left: .55rem !important; margin-right: .15rem; }
.pc-num .nc-ico, .ad-card .nc-ico, .pc-line .nc-ico { margin-left: .5rem !important; }

/* ===== v1.9.19 : cadenas de l'accueil habillé comme le « ? », un peu plus écartés ===== */
.hello-tools { gap: .85rem; }
.home-lock { width: 2.1rem; height: 2.1rem; color: #fff !important; background: radial-gradient(circle at 35% 30%, #3a3f4a, #1b1e24) !important; border: 2px solid #ff1493 !important; box-shadow: 0 2px 4px rgba(150,10,80,.30); }
.home-lock svg { width: 1.05rem; height: 1.05rem; }
.home-lock.open { background: radial-gradient(circle at 35% 30%, #ff4fae, #b8166a) !important; border-color: #ff1493 !important; }
.hello-tools .help-mini { width: 2.1rem; height: 2.1rem; font-size: 1.05rem; }
/* v1.9.19 : rangement de l'accueil — pas de sélection, pas de glisser de lien, pas d'aperçu de lien (iPhone) */
.home-lay.editing, .home-lay.editing * { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
html[data-device="phone"] .home-lay.editing .bubble, html[data-device="phone"] .home-lay.editing .home-todo h3 { touch-action: none; }
body.hl-dragging { cursor: grabbing; }

/* ===== v1.9.19 : bouton « Dossiers ouverts » avec décompte (refermer d'un clic) ===== */
.relock { display: inline-flex; align-items: center; gap: .35rem; height: 2.1rem; padding: 0 .75rem 0 .55rem; border-radius: 999px; border: 2px solid #ff1493; background: radial-gradient(circle at 35% 30%, #ff4fae, #b8166a); color: #fff; font: inherit; font-weight: 800; font-size: .85rem; box-shadow: 0 2px 4px rgba(150,10,80,.3); white-space: nowrap; cursor: pointer; flex: none; margin-right: .3rem; font-variant-numeric: tabular-nums; }
.relock[hidden] { display: none !important; }
.relock.soon { animation: rl-pulse 1s ease-in-out infinite; }
@keyframes rl-pulse { 50% { box-shadow: 0 0 0 4px rgba(255,20,147,.35); } }
html[data-device="phone"] .relock { height: 1.9rem; padding: 0 .5rem 0 .4rem; font-size: .8rem; margin-right: .1rem; }

/* ===== v1.9.19 : demande de congé — « Répondre plus tard » (téléphone : boutons centrés sous le texte), en-tête moins tassé ===== */
.later-row { align-items: center; gap: .5rem; }
.later-btns { display: inline-flex; gap: .5rem; }
html[data-device="phone"] .later-row { flex-direction: column; align-items: stretch; gap: .35rem; }
html[data-device="phone"] .later-row > .small { text-align: left; }
html[data-device="phone"] .later-btns { justify-content: center; }
html[data-device="phone"] .later-btns .btn { min-width: 6.5rem; }
html[data-device="phone"] .lv-head { flex-direction: column; align-items: flex-start; gap: .45rem; }
html[data-device="phone"] .lv-head h2 { font-size: 1.2rem; }

/* ===== v1.9.19 : compteur des fêtes ===== */
.badge.fete { background: #fff2c4; color: #8a5a00; border: 1px solid #f1cf6a; font-weight: 700; }
html[data-theme="dark"] .badge.fete { background: #3d3112; color: #ffd76a; border-color: #6b5520; }
.star-btn { width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 1.5px dashed var(--line-2); background: transparent; color: var(--text-3); font-size: 1rem; line-height: 1; cursor: pointer; padding: 0; margin-left: .3rem; vertical-align: middle; }
.star-btn.on { border: 1.5px solid #e8b100; color: #e8a800; background: rgba(255, 200, 0, .14); }
.fete-n { font-size: .72em; opacity: .8; margin-left: .15rem; }
.fete-link { margin: 0 0 .6rem auto; display: inline-flex; }
.fete-t td.c, .fete-t th.c { text-align: center; }
.fete-t th { white-space: normal; font-size: .82rem; }
.fete-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .5rem; }
.fete-sum > div { background: var(--pink-soft); border-radius: 12px; padding: .55rem .7rem; display: flex; flex-direction: column; }
.fete-sum b { font-size: 1.5rem; color: var(--pink-strong); }
.fete-sum span { font-size: .8rem; color: var(--text-2); }
.fete-ic { font-size: 1.2rem; width: 1.8rem; text-align: center; }
.fete-per label { display: inline-flex; align-items: center; gap: .35rem; padding: 0 .5rem; font-size: .9rem; }
.fete-per input { min-height: 2rem; padding-block: .2rem; }
@media print { .fete-bar, .side, .top, .help-fab, details, .card.stack:has(#hadd) { display: none !important; } }

/* ===== v1.9.19 : Primes et repas, même principe que Présences (une ligne de réglages, rien en bas), colonnes équilibrées ===== */
.pc-only { display: inline; } .ph-only { display: none; }
html[data-device="phone"] .pc-only { display: none; } html[data-device="phone"] .ph-only { display: inline; }
.pay-bar19 { align-items: center; }
.pay-bar19 .pnav { flex: none; }
.pay-bar19 .pnav a.pic { text-decoration: none; color: inherit; }
.pay-bar19 .pay-act { flex: none; }
.pay-bar19 .pay-act button { white-space: nowrap; }
.pay-bar19 .st-badge { margin-left: auto; flex: none; }
.pay17 { table-layout: fixed; width: 100%; }
.pay17 td.who, .pay17 td.who b { white-space: nowrap; }
.pay17 td.who { overflow: hidden; text-overflow: ellipsis; }
.pay17 .pline { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; max-width: 100%; min-width: 0; }
.pay17 .pline .pt-sel { flex: 1 1 6rem; min-width: 0; width: auto !important; max-width: 100%; }
.pay17 .pline .pt-lab { flex: 1 1 100%; min-width: 0; }
.pay17 .pline .money-in { flex: none; display: inline-flex; align-items: center; gap: .2rem; }
.pay17 .pline .money-in input { width: 3.9rem !important; }
.pay17 .pline .x-mini { flex: none; }
.pay17 .pline .gross { flex: 1 1 100%; }
.pay17 td.rate input, .pay17 td:nth-child(4) input { max-width: 3.4rem; }
/* téléphone : mois + aide sur la 1re ligne, les actions sur la 2e ligne, « En saisie » est déjà dans le bandeau jaune */
html[data-device="phone"] main.page.merge-head .pay-bar19 { display: grid !important; grid-template-columns: 1fr auto; gap: .45rem; align-items: center; }
html[data-device="phone"] .pay-bar19 .pnav { grid-row: 1 !important; grid-column: 1 !important; order: 0 !important; justify-content: flex-start; width: auto !important; margin: 0 !important; min-width: 0; }
html[data-device="phone"] .pay-bar19 .pnav .plab { font-size: 1rem; white-space: nowrap; }
html[data-device="phone"] .pay-bar19 .st-badge { display: none; }
html[data-device="phone"] .pay-bar19 .ph-help { grid-row: 1; grid-column: 2; }
html[data-device="phone"] .pay-bar19 .pay-act { grid-row: 2 !important; grid-column: 1 / -1 !important; display: flex; width: 100%; box-sizing: border-box; order: 0 !important; }
html[data-device="phone"] .pay-bar19 .pay-act > * { flex: 1 1 0; white-space: nowrap; font-size: .86rem !important; padding-inline: .3rem !important; justify-content: center; }
html[data-device="phone"] .pay-main .pline { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
html[data-device="phone"] .pay-main .pline .pt-sel { flex: 1 1 8rem; min-width: 0; width: auto !important; }
html[data-device="phone"] .pay-main .pline .money-in { flex: none; display: inline-flex; align-items: center; gap: .2rem; }
html[data-device="phone"] .pay-main .pline .money-in input { width: 4.4rem !important; }
html[data-device="phone"] .pay-main .pline .gross { flex: 1 1 100%; }
/* v1.9.19 : « ? » dans la ligne du titre / la barre de réglages */
.help-fab[hidden] { display: none !important; }
.ph-help { flex: none; margin-left: auto; width: 2.1rem !important; height: 2.1rem !important; font-size: 1.05rem !important; }
.pr-bar .st-badge + .ph-help, .pr-bar .badge + .ph-help { margin-left: .5rem; }
.page-head .ph-help { margin-left: auto; }
.shell > .page-head { width: auto; }
/* v1.9.19 : barres « façon Présences » des autres pages */
main.page.merge-head > .pr-bar.staff-bar { flex-wrap: wrap; }
.staff-bar .staff-tabs { flex-wrap: wrap; row-gap: .25rem; }
.staff-bar .staff-tabs a { white-space: nowrap; }
.pr-bar18 .pnav a.pic, .pr-bar18 .pgrp a { text-decoration: none; }
.ad-bar .ad-tools { display: inline-flex; gap: .35rem; margin-left: auto; }
.ad-bar .ad-tool { min-width: 0; }
.ad-bar + #adr .ad-top { margin-top: 0; }
.yr-bar .plab { min-width: 3.5rem; text-align: center; }
html[data-device="phone"] main.page.merge-head > .pr-bar.staff-bar { display: flex !important; overflow-x: auto; flex-wrap: nowrap; }
html[data-device="phone"] .staff-bar .staff-tabs { flex-wrap: nowrap; }
.pay17 td.rate, .pay17 td:nth-child(4) { white-space: nowrap; }
.pay17 td.rate input, .pay17 td:nth-child(4) input { width: 3.1rem !important; max-width: 3.1rem; padding-inline: .3rem; }
.pay17 td.rate .small, .pay17 td:nth-child(4) .small { white-space: nowrap; }
/* annuaire : outils en icônes dans la barre du titre (bulle au survol) */
.ad-bar .ad-tool span { display: none; }
.ad-bar .ad-tool { width: 2.3rem; height: 2.3rem; padding: 0; justify-content: center; }
/* v1.9.19 : pages « barre dans le titre » : pas d'espace étiré entre les blocs */
main.page.merge-head { align-content: flex-start; }
#sec-astreintes .item .grow { min-width: 9rem; }
#sec-astreintes .item .badge.fete { font-size: .72rem; padding: .05rem .45rem; vertical-align: middle; }
main.page.merge-head > .pr-bar.staff-bar { flex: 0 0 100% !important; }
/* v1.9.19 téléphone : barres « façon Présences » des autres pages : la période d'abord, puis les actions, l'aide à droite */
html[data-device="phone"] main.page.merge-head > .pr-bar18:not(.pay-bar19):not(.staff-bar):not(:has(.pr-stores)) { display: flex !important; flex-wrap: wrap; align-items: center; gap: .45rem; }
html[data-device="phone"] .pr-bar18:not(.pay-bar19):not(:has(.pr-stores)) .pnav { order: 0 !important; grid-column: auto !important; margin: 0 !important; width: auto !important; flex: 1 1 auto; justify-content: flex-start; }
html[data-device="phone"] .pr-bar18:not(.pay-bar19):not(:has(.pr-stores)) .ph-help { order: 1; margin-left: auto; }
html[data-device="phone"] .pr-bar18:not(.pay-bar19):not(:has(.pr-stores)) .pgrp { order: 2 !important; grid-column: auto !important; flex: 1 1 100%; display: flex; }
html[data-device="phone"] .pr-bar18:not(.pay-bar19):not(:has(.pr-stores)) .pgrp > * { flex: 1 1 0; justify-content: center; text-align: center; white-space: nowrap; }
html[data-device="phone"] .fete-bar .fete-per { flex-wrap: wrap; }
html[data-device="phone"] .fete-bar .fete-per label { flex: 1 1 45%; padding: 0 .2rem; }
html[data-device="phone"] .fete-bar .fete-per input { width: 100%; min-width: 0; }
html[data-device="phone"] .db-pair { grid-template-columns: 1fr !important; }
html[data-device="phone"] .ad-top { flex-wrap: wrap; }
html[data-device="phone"] .ad-top #q { flex: 1 1 100%; min-width: 0; }
html[data-device="phone"] .fete-bar #fprint { display: none; }
.lv-head .badge { white-space: normal; max-width: 100%; }
html[data-device="phone"] .fete-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-device="phone"] .fete-sum b { font-size: 1.25rem; }
html[data-device="pc"] .staff-bar { flex-wrap: nowrap !important; align-items: flex-start; }
html[data-device="pc"] .staff-bar .staff-tabs { flex: 1 1 0; min-width: 0; display: flex; flex-wrap: wrap !important; border-radius: 18px; }
.ad-t tr:not(.sec) td { font-size: .95rem; padding: .35rem .42rem; }

/* ===== v1.9.19.1 : correctif ===== */
/* Gestion du personnel : la barre d'onglets occupe toute la largeur sur PC seulement (sur téléphone la page est en colonne) */
main.page.merge-head > .pr-bar.staff-bar { flex: none !important; }
html[data-device="pc"] main.page.merge-head > .pr-bar.staff-bar { flex: 0 0 100% !important; }
html[data-device="phone"] main.page.merge-head > .pr-bar.staff-bar { width: 100%; box-sizing: border-box; gap: .4rem; }
html[data-device="phone"] .staff-bar .ph-help { order: -1; flex: none; margin: 0; }
/* Présences sur téléphone : « ? » sur la ligne de la date ; réglages sans chevaucher les lieux */
html[data-device="phone"] .pr-bar18 .pnav .ph-help { margin-left: .35rem; width: 2rem !important; height: 2rem !important; }
.pr-bar18 .pr-stores { min-width: 0; }
html[data-device="phone"] .pr-bar18 .pr-stores button { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
html[data-device="phone"] main.page.merge-head > .pr-bar.pr-bar18:has(.pr-stores) { grid-template-columns: minmax(0, 1fr) auto; }
/* Petites pastilles d'état dans la barre du haut (phase d'essai, alertes en pause, démonstration) */
.state-pill { display: inline-flex; align-items: center; gap: .3rem; height: 1.7rem; padding: 0 .6rem; border-radius: 999px; font-size: .78rem; font-weight: 800; text-decoration: none; white-space: nowrap; flex: none; cursor: pointer; border: 1.5px solid; margin-right: .3rem; line-height: 1; }
.trial-pill, .paused-pill { background: #fff1d6; color: #8a4b00 !important; border-color: #f0b44c; }
:root[data-theme="dark"] .trial-pill, :root[data-theme="dark"] .paused-pill { background: #3a2a10; color: #ffcf7a !important; border-color: #7a5a20; }
.demo-pill19 { background: #fff3b0; color: #6b5300; border-color: #e0c24a; font-family: inherit; letter-spacing: .06em; }
:root[data-theme="dark"] .demo-pill19 { background: #3a3412; color: #f1d76b; border-color: #6b5f1c; }
.sp-n { background: var(--pink); color: #fff; border-radius: 999px; min-width: 1.1rem; height: 1.1rem; font-size: .68rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 .25rem; }
html[data-device="phone"] .state-pill { height: 1.55rem; padding: 0 .45rem; font-size: .72rem; margin-right: .1rem; }
/* Démonstration : barre du haut identique à la vraie application ; « Revenir à AS Connect » court sur téléphone */
.demo-return .dr-short { display: none; }
html[data-device="phone"] .demo-return { padding: .25rem .5rem; font-size: .78rem; max-width: 7.5rem; }
html[data-device="phone"] .demo-return .dr-long { display: none; }
html[data-device="phone"] .demo-return .dr-short { display: inline; white-space: nowrap; }
.paused-banner, .trial-banner, .remark-fab { display: none !important; }
html[data-device="phone"] .pr-bar18:has(.pr-stores) .pset-w { margin-left: .2rem; }
.sp-pause { flex: none; }
html[data-device="phone"] main.page.merge-head > .pr-bar.pr-bar18:has(.pr-stores) .pr-stores { width: 100% !important; min-width: 0; }
html[data-device="phone"] .state-pill { gap: .15rem; }
html[data-device="phone"] main.page.merge-head > .pr-bar.pr-bar18:has(.pset-w) .pr-stores { grid-column: 1 !important; }
html[data-device="phone"] .pr-bar18:has(.pr-stores) .pnav { max-width: 100%; gap: .3rem; }
/* démonstration sur téléphone : la place du logo sert à « ‹ AS Connect » et à la pastille DÉMO */
html[data-device="phone"] .top:has(.demo-return) .top-mid .brand { display: none; }
html[data-device="phone"] .top:has(.demo-return) .top-mid .top-title h1 { font-size: .95rem; }

/* ===================== v1.9.21 ===================== */
/* Barres sur la ligne du titre : l'ensemble est centré (titre à gauche, « ? » à droite) ; Présences inchangée ; téléphone inchangé */
html[data-device="pc"] main.page.merge-head > .pr-bar:not(:has(.pr-stores)) { justify-content: center; }
html[data-device="pc"] main.page.merge-head > .pr-bar:not(:has(.pr-stores))::before { content: ''; margin-right: auto; }
html[data-device="pc"] main.page.merge-head > .pr-bar:not(:has(.pr-stores)) > .ph-help { margin-left: auto !important; }
html[data-device="pc"] main.page.merge-head > .pr-bar:not(:has(.pr-stores)) > .st-badge { margin-left: 0 !important; }
html[data-device="pc"] main.page.merge-head > .pr-bar:not(:has(.pr-stores)):not(:has(.ph-help))::after { content: ''; margin-left: auto; }
html[data-device="pc"] .staff-bar .staff-tabs { justify-content: center; }
/* Planning : l'étoile « compte comme fête » sans cercle, simplement colorée */
.star-btn, .star-btn.on { border: 0 !important; background: transparent !important; width: 1.6rem; height: 1.6rem; font-size: 1.15rem; }
.star-btn { color: var(--text-3); opacity: .7; }
.star-btn.on { color: #f5b800; opacity: 1; }
/* Les deux boutons « ‹ » mieux séparés : retour un peu plus à droite, repli du menu un peu plus à gauche */
html[data-device="pc"] .shell > .back-out { left: 1.7rem; }
html[data-device="pc"] .nav-first .rail-toggle { right: .65rem; }
html[data-device="pc"] main.page > .page-head, html[data-device="pc"] main.page.merge-head > .page-head { padding-left: max(0px, calc(5.1rem - var(--off, 0px))); }
html[data-device="pc"] .shell > .page-head { padding-left: 4.1rem; }
html[data-device="phone"] main.page.merge-head > .pr-bar.plan-bar { display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: .4rem; position: sticky; top: calc(var(--top-h, 3.6rem) + .35rem); z-index: 5; }
html[data-device="phone"] .plan-bar .plan-tabs { flex: 1 1 auto; margin: 0; position: static; }
html[data-device="phone"] .plan-bar .fete-grp { flex: none !important; order: 0 !important; }
html[data-device="phone"] .plan-bar .ph-help { flex: none; }
/* Annuaire complet : traits verticaux, numéros alignés, panneaux et flèches dans des cases fixes */
.ad-t th + th, .ad-t tr:not(.sec) td + td { border-left: 1px solid var(--line-2); }
.ad-t td, .ad-t th { font-variant-numeric: tabular-nums; }
.ad-cell { display: inline-grid; align-items: center; column-gap: .35rem; white-space: nowrap; }
.ad-cell.ad-line { grid-template-columns: 7.6em 1.15em 1.15em; }
.ad-cell.ad-mob { grid-template-columns: 3.4em 7.6em 1.15em; }
.ad-cell .ad-ic { display: inline-flex; align-items: center; justify-content: center; min-height: 1em; }
.ad-cell .ad-ic .nc-ico { margin: 0 !important; }
.ad-cell .ad-tg { display: inline-flex; justify-content: flex-start; }
.ad-t td .ad-num { font-variant-numeric: tabular-nums; }
/* Pages à grand tableau : toute la largeur de la fenêtre (plus de bandes vides sur les côtés) */
html[data-device="pc"] main.page.wide:has(.pay17, .ad-t, table.recap, .fete-t, .vis-t) { max-width: none; padding-left: 1.2rem; padding-right: 1.2rem; }
/* Primes et repas : jours en blanc avec le petit trait pointillé rose ; cases d'astreinte qui ne débordent plus */
.days-fill { color: var(--text) !important; border-bottom: 2px dotted var(--pink) !important; }
:root[data-theme="dark"] .days-fill { color: #fff !important; }
.pay17 .oc-edit .astrow { gap: .3rem; }
.pay17 .oc-edit .astrow span { width: auto; min-width: 2.6rem; }
.pay17 .oc-edit .astrow .num { width: 2.6rem !important; padding-inline: .25rem; text-align: center; }
.pay17 td.astcol, .pay17 td:nth-child(7) { overflow: hidden; }
/* Véhicules : « 7 VH en service » et le bouton « ⚙ Gérer la flotte » sur la ligne du titre */
.vh-n { color: var(--text-2); font-size: .9rem; font-weight: 700; white-space: nowrap; flex: none; }
.gear-w { position: relative; display: inline-flex; flex: none; }
.gear-btn { display: inline-flex; align-items: center; gap: .35rem; height: 2.3rem; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--text); font: inherit; font-weight: 800; font-size: .86rem; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 0 rgba(0,0,0,.22); }
.gear-btn[aria-expanded="true"] { border-color: var(--pink); }
.gear-pop { position: absolute; top: 2.8rem; left: 50%; transform: translateX(-50%); background: #1b1e24; border: 1px solid #3a3e46; border-radius: 14px; box-shadow: 0 12px 28px rgba(0,0,0,.45); padding: .4rem; display: flex; flex-direction: column; min-width: 17rem; z-index: 60; }
.gear-pop[hidden] { display: none !important; }
.gear-pop a, .gear-pop button { padding: .6rem .75rem; border-radius: 10px; color: #fff !important; text-decoration: none; font: inherit; font-weight: 700; font-size: .9rem; display: flex; gap: .6rem; align-items: center; background: transparent; border: 0; text-align: left; cursor: pointer; }
.gear-pop a:hover, .gear-pop button:hover { background: #2a2e36; }
.gear-pop .gp-add { background: linear-gradient(90deg,#5c0d38 0%,#a3135f 30%,#c2186f 50%,#a3135f 70%,#5c0d38 100%) !important; }
.gear-pop hr { border: 0; border-top: 1px solid #3a3e46; margin: .3rem .2rem; }
html[data-device="phone"] .vtabs-bar .vh-n { font-size: .8rem; }
html[data-device="phone"] .gear-btn { height: 2.1rem; padding: 0 .7rem; }
html[data-device="phone"] .gear-pop { left: auto; right: 0; transform: none; }
html[data-device="phone"] main.page.merge-head > .pr-bar.vtabs-bar { display: flex !important; flex-wrap: wrap; align-items: center; gap: .45rem; }
html[data-device="phone"] .vtabs-bar .vtabs { flex: 1 1 100% !important; order: 0 !important; display: flex; }
html[data-device="phone"] .vtabs-bar .vtabs > * { flex: 1 1 0; text-align: center; justify-content: center; }
html[data-device="phone"] .vtabs-bar .vh-n { order: 1; flex: 1 1 auto; }
html[data-device="phone"] .vtabs-bar .gear-w { order: 2; }
html[data-device="phone"] .vtabs-bar .ph-help { order: 3; margin-left: 0 !important; }
/* Fiche : carte Véhicules modifiable sur place */
.vc-sw { display: flex; align-items: center; gap: .7rem; font-weight: 700; cursor: pointer; }
.vc-sw input { position: absolute; opacity: 0; pointer-events: none; }
.vc-sw .sw { width: 2.8rem; height: 1.6rem; border-radius: 999px; background: var(--line-2); position: relative; flex: none; transition: background .15s; }
.vc-sw .sw::after { content: ''; position: absolute; top: .2rem; left: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.vc-sw input:checked + .sw { background: var(--pink); }
.vc-sw input:checked + .sw::after { left: 1.4rem; }
.vt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.2rem, 1fr)); gap: .6rem; }
.vt-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .55rem .4rem .5rem; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; text-align: center; }
.vt-tile img { width: 100%; height: 3.6rem; object-fit: contain; }
.vt-tile .vt-ph { font-size: 2rem; height: 3.6rem; display: flex; align-items: center; }
.vt-tile b { font-size: .86rem; font-variant-numeric: tabular-nums; }
.vt-tile small { font-size: .72rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.vt-tile.on { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 12%, var(--card)); }
.vt-tile .vt-ck { position: absolute; top: .3rem; left: .35rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--pink); color: #fff; font-size: .78rem; font-weight: 900; display: none; align-items: center; justify-content: center; }
.vt-tile.on .vt-ck { display: flex; }
.vt-tile .vt-star { position: absolute; top: .2rem; right: .35rem; font-size: 1.15rem; color: var(--text-3); opacity: .45; }
.vt-tile .vt-star.on { color: #f5b800; opacity: 1; }
.vt-tile.vt-all .vt-star { display: none; }
.vt-tile:disabled { cursor: default; }
.vc-saved.ok { color: var(--ok, #2e9d5b); font-weight: 700; } .vc-saved.bad { color: var(--bad, #d33); }
.drv-ico { font-size: .9rem; }
html[data-device="phone"] .vt-grid { grid-template-columns: 1fr 1fr; }
/* Assistant « Nouveau collaborateur » */
.nh-sheet .sheet, .sheet.nh-sheet { max-width: 44rem; }
.nh-head h2 { margin: 0 0 .5rem; }
.nh-prog { height: .45rem; border-radius: 999px; background: var(--line); overflow: hidden; }
.nh-prog span { display: block; height: 100%; background: linear-gradient(90deg, #c2186f, var(--pink)); transition: width .25s; }
.nh-steps { display: flex; justify-content: space-between; margin: .55rem 0 .9rem; gap: .3rem; }
.nh-steps span { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--text-3); font-weight: 800; }
.nh-steps span em { font-style: normal; font-weight: 700; }
.nh-steps span.on { color: var(--pink-strong); } .nh-steps span.done { color: var(--ok, #2e9d5b); }
html[data-device="phone"] .nh-steps span:not(.on) em { display: none; }
.nh-bigs { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-bottom: .8rem; }
.nh-big { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 1.1rem .5rem; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 1.05rem; cursor: pointer; }
.nh-big .nh-bi { font-size: 2rem; }
.nh-big.on, .nh-role.on { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 12%, var(--card)); }
.nh-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .6rem; }
.nh-role { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .25rem; padding: .9rem .6rem; border-radius: 16px; border: 2px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; }
.nh-role .nh-ri { font-size: 2rem; } .nh-role small { color: var(--text-3); font-size: .76rem; line-height: 1.25; }
html[data-device="phone"] .nh-roles { grid-template-columns: 1fr 1fr; }
.nh-recap { border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; margin-bottom: .7rem; }
.nh-hello { font-size: 1.15rem; margin-bottom: .5rem; }
.nh-line { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-top: 1px dashed var(--line); font-size: .9rem; }
.nh-line span { color: var(--text-3); }
.nh-err { color: var(--bad, #d33); min-height: 1em; margin: .3rem 0 0; }
/* Anciennes fiches : petite zone de dépôt, boutons sur la ligne du titre */
.rep-left { display: flex; flex-direction: column; gap: .6rem; position: sticky; top: 5rem; }
.rep-left .rep-img { position: static; max-height: calc(100vh - 11rem); }
html[data-device="pc"] .rep-drop .drop-box { flex-direction: row; min-height: 0 !important; padding: .5rem .8rem !important; gap: .6rem; }
html[data-device="pc"] .rep-drop .db-ico svg { width: 1.5rem !important; height: 1.5rem !important; }
html[data-device="pc"] .rep-drop .db-pc { display: flex; gap: .4rem; align-items: baseline; font-size: .88rem; }
.rep-bar { gap: .5rem; }
html[data-device="pc"] .rep-bar { justify-content: center; }
@media (max-width: 900px) { .rep-left { position: static; } }
/* Lecteur de documents intégré */
html.pv-open, html.pv-open body { overflow: hidden; }
.pv { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column; background: #2b2e34; }
.pv-bar { display: flex; align-items: center; gap: .5rem; padding: .5rem .8rem; padding-top: max(.5rem, env(safe-area-inset-top)); background: #17191d; color: #fff; border-bottom: 1px solid #3a3e46; }
.pv-t { flex: 1 1 auto; min-width: 0; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-b { display: inline-flex; align-items: center; gap: .35rem; height: 2.3rem; min-width: 2.3rem; justify-content: center; padding: 0 .7rem; border-radius: 999px; border: 1px solid #454a54; background: #22252b; color: #fff; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.pv-b:hover { border-color: var(--pink); }
.pv-b svg { stroke: #fff; }
.pv-close { border-color: var(--pink); }
.pv-zoom { display: inline-flex; align-items: center; gap: .3rem; }
.pv-zoom .pv-b { font-size: 1.2rem; padding: 0; width: 2.3rem; }
.pv-pct { min-width: 3.4rem; text-align: center; font-variant-numeric: tabular-nums; font-size: .85rem; color: #cfd3da; }
.pv-body { flex: 1 1 auto; overflow: auto; -webkit-overflow-scrolling: touch; }
.pv-pages { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 18px 12px 40px; min-width: min-content; }
.pv-page { background: #fff; box-shadow: 0 4px 18px rgba(0,0,0,.45); border-radius: 2px; }
.pv-img { width: 100%; max-width: 1100px; height: auto; background: #fff; }
.pv-wait { color: #e5e7eb; padding: 3rem 1rem; text-align: center; }
.pv-print { position: fixed; right: 0; bottom: 0; width: 1px; height: 1px; border: 0; opacity: 0; }
html[data-device="phone"] .pv-bar { gap: .35rem; padding-inline: .45rem; }
html[data-device="phone"] .pv-b { height: 2.2rem; padding: 0 .55rem; }
html[data-device="phone"] .pv-pct { min-width: 2.8rem; font-size: .78rem; }
html[data-device="phone"] .pv-pages { padding: 8px 6px 30px; gap: 8px; }
/* Mode salarié test */
.state-pill.test-pill { background: #6d28d9; border-color: #6d28d9; color: #fff; font-weight: 900; letter-spacing: .04em; }
.test-back { display: inline-flex; align-items: center; gap: .3rem; height: 1.9rem; padding: 0 .75rem; border-radius: 999px; border: 1.5px solid #6d28d9; background: transparent; color: var(--text); font: inherit; font-weight: 800; font-size: .8rem; white-space: nowrap; cursor: pointer; }
html[data-device="phone"] .test-back { padding: 0 .5rem; font-size: .74rem; }
.tp-rights summary { cursor: pointer; font-weight: 800; padding: .4rem 0; }
.tp-rl { display: flex; flex-direction: column; gap: .35rem; max-height: 46vh; overflow: auto; }
.tp-r { display: flex; justify-content: space-between; align-items: center; gap: .6rem; font-size: .86rem; }
.tp-r .seg { flex: none; }
.tp-r .seg button { padding: .25rem .55rem; font-size: .78rem; }
html[data-device="phone"] .tp-r { flex-direction: column; align-items: stretch; }
html[data-device="pc"] .rep-drop .db-pc { flex-direction: row !important; align-items: baseline; gap: .45rem; }
html[data-device="pc"] .rep-drop .drop-box { padding: .35rem .8rem !important; }
.sheet > .seg, .sheet > .section-title, .sheet > label, .sheet > details { flex-shrink: 0; }
html[data-device="phone"] .pv-pct { display: none; }
/* Téléphone : barres de « Prévus aujourd'hui », du planning et des véhicules sur une ligne sans chevauchement */
html[data-device="phone"] main.page.merge-head > .pr-bar.pl-bar { display: flex !important; flex-wrap: nowrap; gap: .4rem; align-items: center; }
html[data-device="phone"] .pl-bar .pr-stores { flex: 1 1 auto !important; min-width: 0; display: flex; grid-column: auto !important; }
html[data-device="phone"] .pl-bar .pr-stores button { flex: 1 1 0; padding-inline: .3rem; }
html[data-device="phone"] .pl-bar .pview { flex: none !important; }
html[data-device="phone"] .plan-bar .plan-tabs { flex: 1 1 0 !important; min-width: 0; width: auto !important; }
html[data-device="phone"] .plan-bar .fete-grp a { padding: 0 .65rem; font-size: 1.1rem; color: #f5b800; }
html[data-device="phone"] .vtabs-bar .vh-n { order: 1 !important; flex: 1 1 auto !important; grid-column: auto !important; }
html[data-device="phone"] .vtabs-bar .gear-w { order: 2 !important; margin-left: auto; }
html[data-device="phone"] .vtabs-bar .vtabs { order: 0 !important; }
html[data-device="phone"] main.page.merge-head > .pr-bar18.vtabs-bar:not(.pay-bar19) > .pgrp.vtabs { order: 0 !important; flex: 1 1 100% !important; }
html[data-device="phone"] main.page.merge-head > .pr-bar18.vtabs-bar:not(.pay-bar19) > .vh-n { order: 1 !important; }
html[data-device="phone"] main.page.merge-head > .pr-bar18.vtabs-bar:not(.pay-bar19) > .gear-w { order: 2 !important; margin-left: auto; }
html[data-device="phone"] main.page.merge-head > .pr-bar18.vtabs-bar:not(.pay-bar19) > .ph-help { order: 3 !important; margin-left: 0 !important; }
html[data-device="phone"] main.page.merge-head > .pr-bar18.plan-bar:not(.pay-bar19) > .pgrp.fete-grp { flex: none !important; }
html[data-device="phone"] .plan-bar .plan-tabs { grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important; overflow: hidden; }
html[data-device="phone"] .plan-bar .plan-tabs button { min-width: 0; font-size: .82rem; overflow: hidden; text-overflow: ellipsis; }
html[data-device="phone"] .plan-bar .fete-grp a { width: 2.4rem; justify-content: center; padding: 0 !important; }
html[data-device="phone"] main.page.merge-head > .pr-bar18.plan-bar > .pgrp.fete-grp { padding: 0 !important; height: 2.4rem; border-radius: 50%; width: 2.4rem; }
html[data-device="phone"] main.page.merge-head > .pr-bar18.plan-bar { gap: .3rem; }
html[data-device="phone"] .plan-bar .plan-tabs button { font-size: .8rem; padding-inline: .15rem; }
html[data-device="phone"] .plan-bar .plan-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .76rem; line-height: 1.2; }

/* ===================== v1.9.22 ===================== */
/* « Je prends un véhicule » */
.jp-hint { text-align: center; font-weight: 800; color: var(--pink-strong); margin: .2rem 0 .8rem; }
:root[data-theme="dark"] .jp-hint { color: #ff5fa8; }
.jp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: .8rem; }
.jp-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .9rem .6rem .8rem; border-radius: 18px; border: 2px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; box-shadow: 0 3px 0 rgba(0,0,0,.18); transition: transform .08s; }
.jp-tile:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.jp-tile:hover { border-color: var(--pink); }
.jp-tile img { width: 100%; height: 6.5rem; object-fit: contain; }
.jp-tile .jp-ph { font-size: 3.4rem; height: 6.5rem; display: flex; align-items: center; }
.jp-tile b { font-size: 1.15rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.jp-tile small { color: var(--text-3); font-size: .8rem; text-align: center; }
.jp-tile em { font-style: normal; font-size: .74rem; color: var(--warn, #c47d00); font-weight: 700; }
.jp-tile.mine { border-color: #f5b800; }
.jp-tile .jp-star { position: absolute; top: .4rem; right: .6rem; color: #f5b800; font-size: 1.4rem; }
.jp-tile.off { opacity: .5; }
html[data-device="phone"] .jp-grid { grid-template-columns: 1fr 1fr; gap: .55rem; }
html[data-device="phone"] .jp-tile img, html[data-device="phone"] .jp-tile .jp-ph { height: 4.6rem; }
html[data-device="phone"] .jp-tile b { font-size: 1rem; }
/* Page du véhicule : progression et tuiles des démarches */
.vp-prog { margin: .9rem 0 .7rem; display: flex; flex-direction: column; gap: .35rem; text-align: center; }
.vp-bar { height: .55rem; border-radius: 999px; background: var(--line); overflow: hidden; }
.vp-bar span { display: block; height: 100%; background: linear-gradient(90deg, #c2186f, var(--pink)); transition: width .3s; }
.vp-prog.done .vp-bar span { background: linear-gradient(90deg, #1f9d55, #34c46e); }
.vp-prog.done b { color: var(--ok, #2e9d5b); }
.vp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .7rem; }
.vp-tiles.two { grid-template-columns: 1fr 1fr; margin: .6rem 0; }
.vp-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; min-height: 7.4rem; padding: .8rem .5rem; border-radius: 18px; border: 2px solid var(--line); background: var(--card); color: var(--text); font: inherit; text-decoration: none; text-align: center; cursor: pointer; box-shadow: 0 3px 0 rgba(0,0,0,.18); }
.vp-tile:active { transform: translateY(2px); }
.vp-tile .vp-i { font-size: 2.2rem; line-height: 1; }
.vp-tile b { font-size: 1rem; }
.vp-tile small { font-size: .78rem; color: var(--text-3); }
.vp-tile.hot { border-color: var(--pink); background: linear-gradient(160deg, #a3135f, #ec1a84); color: #fff; }
.vp-tile.hot small { color: rgba(255,255,255,.85); }
.vp-tile.ok { border-color: #34c46e; background: color-mix(in srgb, #34c46e 12%, var(--card)); }
.vp-tile.warn { border-color: #e0782a; }
.vp-tile.off, .vp-tile:disabled { opacity: .5; cursor: default; }
html[data-device="phone"] .vp-tiles { grid-template-columns: 1fr 1fr; gap: .5rem; }
html[data-device="phone"] .vp-tile { min-height: 6.4rem; }
.fl-sig { display: inline-flex; align-items: center; padding: .15rem .6rem; border-radius: 999px; border: 1.5px solid #e0782a; color: #e0782a; font-size: .78rem; font-weight: 800; cursor: pointer; }
.fl-sig:hover { background: #e0782a; color: #fff; }
/* Contrôle avant prise : un point par ligne, les choix côte à côte en dessous (téléphone) */
.ck-seg button.on[data-v="ok"] { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.ck-seg button.on[data-v="topup"] { background: #2f8fdd; border-color: #2f8fdd; color: #fff; }
.ck-count { text-align: center; font-weight: 800; font-size: .86rem; color: var(--text-2); }
.ck-count.done { color: var(--ok, #2e9d5b); }
html[data-device="phone"] .ck-row { flex-direction: column; align-items: stretch !important; gap: .45rem; padding: .7rem .2rem; }
html[data-device="phone"] .ck-row > .title { flex: none !important; width: 100%; font-size: .98rem; }
html[data-device="phone"] .ck-row.answered > .title::before { content: '✓ '; color: var(--ok, #2e9d5b); font-weight: 900; }
html[data-device="phone"] .ck-seg { flex: none !important; width: 100%; display: grid !important; grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-columns: none !important; gap: .35rem; }
html[data-device="phone"] .ck-seg button { min-height: 2.6rem; padding: .35rem .2rem; font-size: .86rem; font-weight: 800; white-space: nowrap; }
html[data-device="phone"] #cf .sticky-actions { flex-direction: row !important; flex-wrap: wrap; gap: .4rem; padding-top: .5rem; }
html[data-device="phone"] #cf .sticky-actions .ck-count { flex: 1 1 100%; }
html[data-device="phone"] #cf .sticky-actions > .btn { flex: 1 1 0; min-height: 2.9rem; font-size: .88rem; padding: .4rem .5rem; margin: 0 !important; }
/* Signaler un problème : le véhicule entier visible, boutons plus bas, deux colonnes quand c'est large ou tourné */
.sig-grid { display: flex; flex-direction: column; gap: .6rem; width: 100%; }
.sig-left, .sig-right { display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.sig-grid .vframe { display: flex; justify-content: center; }
.sig-grid .vframe svg { width: auto !important; max-width: 100%; height: auto; max-height: calc(100vh - 17rem); max-height: calc(100dvh - 17rem); }
.zb-acts { display: grid; grid-template-columns: 1fr 2fr; gap: .5rem; margin-top: .6rem; }
.rot-hint { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 0; padding: .45rem .7rem; font-size: .86rem; }
.rot-hint[hidden] { display: none; }
.sig-send { position: static !important; background: none !important; padding: .2rem 0 calc(.4rem + env(safe-area-inset-bottom)) !important; }
/* PC : onglets sur la ligne du titre, vues et vignette moins hautes */
html[data-device="pc"] .sig-bar { justify-content: center; }
html[data-device="pc"] .sig-grid .views { grid-template-columns: 2rem repeat(4, minmax(0, 8rem)); justify-content: center; gap: .35rem; }
html[data-device="pc"] .sig-grid .views .chip { min-height: 0 !important; height: 2.1rem; padding: 0 .6rem; font-size: .88rem; }
html[data-device="pc"] .sig-grid .views .vig { width: 2rem; height: 2.1rem; padding: 1px; }
html[data-device="pc"] .sig-grid .views .vig svg { max-height: 1.9rem; }
html[data-device="pc"] .sig-grid .touch-hint { margin: 0; font-size: .92rem; }
html[data-device="pc"] .sig-grid .vframe svg { max-height: calc(100vh - 15rem); }
@media (min-width: 1150px) {
  html[data-device="pc"] .sig-grid.schema { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(19rem, 1fr); align-items: start; gap: 1rem; }
  html[data-device="pc"] .sig-grid.schema .sig-right { position: sticky; top: 5rem; }
}
/* Téléphone tenu droit : dessin limité pour voir le véhicule entier et le bouton d'envoi */
html[data-device="phone"] .sig-grid .views .chip { min-height: 2.4rem !important; }
html[data-device="phone"] .sig-grid .vframe svg { max-height: calc(100vh - 21rem); max-height: calc(100dvh - 21rem); }
html[data-device="phone"] main.page.merge-head > .pr-bar.sig-bar { display: flex !important; }
html[data-device="phone"] main.page.merge-head > .pr-bar.sig-bar > .pgrp { flex: 1 1 100% !important; display: flex; }
html[data-device="phone"] main.page.merge-head > .pr-bar.sig-bar > .pgrp > button { flex: 1 1 0; }
/* Téléphone tourné : dessin à gauche, le reste à droite */
@media (orientation: landscape) {
  html[data-device="phone"] .sig-grid.schema { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: .6rem; align-items: start; }
  html[data-device="phone"] .sig-grid .vframe svg { max-height: calc(100vh - 8.5rem); max-height: calc(100dvh - 8.5rem); }
  html[data-device="phone"] .sig-grid .touch-hint { font-size: .8rem; }
  html[data-device="phone"] .sig-grid .views .chip { min-height: 2rem !important; font-size: .8rem; }
  html[data-device="phone"] .sig-grid .sig-right { max-height: calc(100dvh - 5rem); overflow: auto; }
  html[data-device="phone"] .rot-hint { display: none !important; }
}
.inst-steps { padding-left: 1.3rem; line-height: 1.6; } .inst-steps li { margin: .25rem 0; }
.xt-row { margin-top: .35rem; } .xt-q { border-color: #ec1a84 !important; } .xt-t { border-color: #6d28d9 !important; }
.vp-tile b { color: var(--text); } .vp-tile.hot b, .vp-tile.hot small, .vp-tile.hot { color: #fff !important; }
html[data-device="phone"] #cf .sticky-actions > .btn { width: auto !important; }
html[data-device="phone"] main.page.merge-head > .pr-bar.sig-bar { flex-wrap: nowrap !important; align-items: center; gap: .4rem; }
html[data-device="phone"] main.page.merge-head > .pr-bar.sig-bar > .pgrp { flex: 1 1 auto !important; min-width: 0; }
html[data-device="phone"] main.page.merge-head > .pr-bar.sig-bar > .ph-help { order: 5 !important; flex: none; margin: 0 !important; }
html[data-device="phone"] .sig-bar .pgrp > button { font-size: .82rem; white-space: nowrap; padding-inline: .4rem; }
html[data-device="phone"] #cf .sticky-actions > .btn { min-width: 0 !important; white-space: normal !important; line-height: 1.15; }
html[data-device="phone"] body:has(#cf .sticky-actions) .help-fab { bottom: calc(8.2rem + env(safe-area-inset-bottom)); }

/* ===================== v1.9.23 ===================== */
/* Bouton d'aide « ? » plus petit dans toute l'application */
.help-fab { width: 2.1rem !important; height: 2.1rem !important; font-size: 1.12rem !important; border-width: 2px !important; box-shadow: 0 2px 0 #4a0a2d, 0 3px 6px rgba(0,0,0,.28) !important; }
.ph-help { width: 1.75rem !important; height: 1.75rem !important; font-size: .9rem !important; border-width: 1.5px !important; box-shadow: 0 1px 0 #4a0a2d, 0 2px 4px rgba(0,0,0,.25) !important; }
html[data-device="phone"] .help-fab { width: 2.3rem !important; height: 2.3rem !important; font-size: 1.2rem !important; }
html[data-device="phone"] .ph-help, html[data-device="phone"] .pr-bar18 .pnav .ph-help { width: 1.95rem !important; height: 1.95rem !important; font-size: .95rem !important; }
/* Onglets : plus d'écriture rose ; blanc en sombre, gris foncé en clair ; l'onglet choisi reste une pastille rose */
.pgrp > a:not(.on), .pgrp > button:not(.on), .tabs3d > a:not(.on), .pgrp .more-btn:not(.on) { color: var(--text) !important; }
:root[data-theme="dark"] .pgrp > a:not(.on), :root[data-theme="dark"] .pgrp > button:not(.on), :root[data-theme="dark"] .tabs3d > a:not(.on), :root[data-theme="dark"] .pgrp .more-btn:not(.on) { color: #f2f3f5 !important; }
/* Gestion du personnel : une ligne d'onglets, « Plus ▾ » */
html[data-device="pc"] .staff-bar .staff-tabs { flex-wrap: nowrap !important; flex: 0 1 auto !important; }
.staff-tabs .more-w { position: relative; display: inline-flex; }
.staff-tabs .more-btn { border: 0; background: none; font: inherit; font-weight: 700; font-size: .9rem; padding: .36rem .72rem; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.staff-tabs .more-btn.on { background: linear-gradient(90deg,#5c0d38 0%,#a3135f 30%,#c2186f 50%,#a3135f 70%,#5c0d38 100%); color: #fff; }
.more-pop { position: absolute; top: 2.4rem; right: 0; background: #1b1e24; border: 1px solid #3a3e46; border-radius: 14px; box-shadow: 0 12px 28px rgba(0,0,0,.45); padding: .35rem; display: flex; flex-direction: column; min-width: 13rem; z-index: 60; }
.more-pop[hidden] { display: none !important; }
.more-pop a { padding: .55rem .75rem; border-radius: 10px; color: #fff !important; text-decoration: none; font-weight: 700; font-size: .9rem; white-space: nowrap; }
.more-pop a:hover { background: #2a2e36; } .more-pop a.on { background: #a3135f; }
html[data-device="phone"] .staff-tabs { overflow-x: auto; scrollbar-width: none; }
html[data-device="phone"] .staff-tabs .more-w { position: static; }
html[data-device="phone"] .more-pop { position: fixed; top: auto; left: .8rem; right: .8rem; bottom: calc(1rem + env(safe-area-inset-bottom)); }
.staff-search { gap: .6rem; flex-wrap: nowrap; }
.staff-search #q { flex: 1 1 auto; max-width: 30rem; height: 2.6rem; }
.staff-search #add { height: 2.6rem; min-height: 0; flex: none; white-space: nowrap; }
html[data-device="phone"] .staff-search #add { width: 2.6rem; padding: 0; justify-content: center; }
html[data-device="pc"] main.page.merge-head > .pr-bar.staff-bar { flex: 1 1 0 !important; min-width: 0; }
a.chip:not(.on) { color: var(--text) !important; }
:root[data-theme="dark"] a.chip:not(.on) { color: #f2f3f5 !important; }

/* ===================== v1.9.24 ===================== */
/* Menu réduit (PC) : rond de l'icône plus gros ; nom au passage de la souris ; bouton « › » fixe en haut */
html[data-device="pc"] .side.rail a.nav .nav3d, html[data-device="pc"] .side.rail a.nav img.asi-home { width: 2.35rem !important; height: 2.35rem !important; transition: transform .12s; }
html[data-device="pc"] .side.rail a.nav { padding-top: .42rem !important; padding-bottom: .42rem !important; }
html[data-device="pc"] .side.rail a.nav:hover .nav3d, html[data-device="pc"] .side.rail a.nav:hover img.asi-home { transform: scale(1.12); }
.rail-tip { position: fixed; z-index: 3000; display: flex; align-items: center; padding: .5rem .9rem; border-radius: 12px; font-weight: 800; font-size: 1rem; line-height: 1.1; white-space: nowrap; pointer-events: none;
  background: #1b1e24; color: #fff; border: 1.5px solid #ec1a84; box-shadow: 0 10px 24px rgba(0,0,0,.45); }
.rail-tip::before { content: ''; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; background: inherit; border-left: 1.5px solid #ec1a84; border-bottom: 1.5px solid #ec1a84; transform: translateY(-50%) rotate(45deg); }
:root:not([data-theme="dark"]) .rail-tip { background: #fff; color: #1b1e24; }
html[data-device="pc"] .side .nav-first { position: sticky; top: -.9rem; z-index: 6; margin-top: -.9rem; padding-top: .9rem; padding-bottom: .3rem; background: var(--card); }
:root[data-theme="dark"] html[data-device="pc"] .side .nav-first, html[data-device="pc"][data-theme="dark"] .side > .nav-first { background: #2a2e37; }
/* Écran du code : même présentation au démarrage et au verrouillage automatique */
.pin-screen .lk-who, .lock-box .lk-who { margin: min(.6rem, 1.2dvh) 0 0; }
.pin-screen .pin-av { margin-top: min(.9rem, 1.6dvh) !important; border: 3px solid var(--pink); background: transparent; color: var(--text); }
.pin-forgot { margin: min(.9rem, 1.6dvh) 0 0 !important; }
.pin-forgot a { color: var(--pink) !important; }
.pin-help { max-width: 21rem; display: flex; flex-direction: column; gap: .5rem; align-items: center; margin-top: .6rem; }
.pin-help[hidden] { display: none; }
.pin-help p { margin: 0 !important; }
.lk-switch { display: flex; flex-direction: column; align-items: center; gap: .45rem; margin-top: min(1rem, 1.8dvh); padding-top: min(.8rem, 1.4dvh); border-top: 1px solid var(--line-2); width: min(22rem, 100%); }
.lk-switch span { color: var(--text-2); font-size: .9rem; }
.lk-out-btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; text-decoration: none; }
html[data-device="phone"] .lk-switch { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: .4rem .6rem; }
html[data-device="phone"] .lk-out-btn { padding: .35rem .8rem; min-height: 0; font-size: .85rem; }
.lock-box .lk-t[hidden] { display: none; }
.qcard .qbox { border-top: 1px solid var(--line-2); padding-top: .6rem; display: flex; flex-direction: column; gap: .55rem; }
.ok-t { color: var(--ok); font-weight: 700; } .bad-t { color: var(--bad); font-weight: 700; }

/* ===================== v1.9.25 ===================== */
/* Prévus aujourd'hui : les compteurs filtrent la liste */
.pl-count button.pl-t { font: inherit; color: inherit; cursor: pointer; border-radius: 999px !important; padding: .25rem .7rem !important; border: 2px solid transparent !important; }
.pl-count button.pl-t:hover { background: var(--card-2) !important; }
.pl-count button.pl-t.sel.in { border-color: #2e9b5a !important; } .pl-count button.pl-t.sel.late { border-color: #d98a1d !important; } .pl-count button.pl-t.sel.abs { border-color: var(--pink) !important; }
.pl-count.filtering button.pl-t:not(.sel) { opacity: .55; }
/* Calendrier des présences sur téléphone : retour possible à la liste (☰ / 📅) */
html[data-device="phone"] main.page.merge-head > .pr-bar.pr-bar18:not(.pl-bar):has(.pview) { grid-template-columns: 1fr auto auto !important; }
html[data-device="phone"] .pr-bar18:not(.pl-bar) .pview { display: flex !important; grid-column: 2; grid-row: 1; }
html[data-device="phone"] .pr-bar18:not(.pl-bar):has(.pview) .pset-w { grid-column: 3; }
html[data-device="phone"] .pr-bar18:not(.pl-bar):has(.pview) .pr-modes, html[data-device="phone"] .pr-bar18:not(.pl-bar):has(.pview) .pnav { grid-column: 1 / -1; }
html[data-device="phone"] .pr-bar18 .pview > * { padding: 0 .6rem !important; display: inline-flex; align-items: center; justify-content: center; }
html[data-device="phone"] .pr-bar18 .pr-stores > button { padding-inline: .3rem; }
/* Planning sur téléphone : onglet choisi en pilule rose foncé (comme ailleurs), ligne plus basse */
html[data-device="phone"] .plan-bar .plan-tabs { padding: .25rem; gap: .3rem; }
html[data-device="phone"] .plan-bar .plan-tabs button { padding: .35rem .2rem; min-height: 2.3rem; border-color: transparent; border-radius: 999px; }
html[data-device="phone"] .plan-bar .plan-tabs button.on { background: linear-gradient(90deg,#5c0d38 0%,#a3135f 30%,#c2186f 50%,#a3135f 70%,#5c0d38 100%); border-color: transparent; color: #fff; }
html[data-device="phone"] .plan-bar .plan-tabs button:not(.on) { color: var(--text); }
:root[data-theme="dark"] html[data-device="phone"] .plan-bar .plan-tabs button:not(.on), html[data-device="phone"][data-theme="dark"] .plan-bar .plan-tabs button:not(.on) { color: #f2f3f5; }
html[data-device="phone"] main.page.merge-head > .pr-bar18.plan-bar > .pgrp.fete-grp { width: 1.95rem !important; height: 1.95rem !important; }
html[data-device="phone"] .plan-bar .fete-grp a { width: 1.95rem !important; font-size: .95rem !important; }
/* « Cette semaine » : pastilles Sarrebourg / Otterswiller moins hautes */
html[data-device="phone"] .week-box .st-pill { font-size: .86rem; padding: .1rem .65rem; line-height: 1.25; }
html[data-device="phone"] .week-box .wk-tile b { font-size: .95rem; }
/* Réglages « Boutons de l'accueil » : le nom sur toute la largeur, l'étiquette et la largeur sur une petite ligne en dessous */
.cust-item .cust-meta { display: inline-flex; align-items: center; gap: .5rem; flex: none; }
.cust-item .cust-meta .badge { white-space: nowrap; }
html[data-device="phone"] #hl .cust-item, html[data-device="phone"] .cust-item[data-id] { display: grid !important; grid-template-columns: auto 1fr; align-items: center; column-gap: .3rem; row-gap: .3rem; padding: .55rem .2rem; }
html[data-device="phone"] .cust-item[data-id] > label { grid-column: 2; min-width: 0; }
html[data-device="phone"] .cust-item[data-id]:not(:has(.grip)) > label { grid-column: 1 / -1; }
html[data-device="phone"] .cust-item[data-id] .cust-t { font-size: .98rem; line-height: 1.2; }
html[data-device="phone"] .cust-item[data-id] .cust3d .nav3d, html[data-device="phone"] .cust-item[data-id] .cust3d img, html[data-device="phone"] .cust-item[data-id] .cust3d > * { width: 2rem !important; height: 2rem !important; }
html[data-device="phone"] .cust-item[data-id] .cust-meta { grid-column: 2; justify-content: space-between; width: 100%; padding-left: 2.1rem; }
html[data-device="phone"] .cust-item[data-id] .cust-meta .badge { font-size: .7rem; }
html[data-device="phone"] .cust-item[data-id] .chip.sz { font-size: .72rem; padding: .15rem .55rem; min-height: 0; }
/* Certificats sur téléphone : carte courte, détail au toucher */
.cert-ph { width: 100%; display: flex; align-items: center; gap: .7rem; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--line-2); padding: .6rem .2rem; cursor: pointer; }
.cert-ph .grow { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.cert-ph .cp-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.2; }
.cert-ph .cp-go { color: var(--text-3); font-size: 1.4rem; flex: none; }
.cert-ph.old { opacity: .6; }
.warn-t { color: var(--warn); font-weight: 700; }
.cp-det .item { display: flex; justify-content: space-between; gap: .8rem; padding: .45rem 0; }
.cp-det .item b { text-align: right; }
/* Menu : ligne « Accueil » fixe avec le même espacement que les autres ; les boutons glissent dessous, net */
html[data-device="pc"] .side .nav-first { padding-bottom: 0 !important; box-shadow: 0 7px 6px -6px rgba(0,0,0,.35); }
:root[data-theme="dark"] html[data-device="pc"] .side .nav-first, html[data-device="pc"][data-theme="dark"] .side .nav-first { box-shadow: 0 8px 7px -6px rgba(0,0,0,.7); }
html[data-device="pc"] .side .nav-first > a.nav { margin: 0 !important; }
/* Menu réduit : boutons du bas en petits ronds, le nom au passage de la souris */
html[data-device="pc"] .side.rail .menu-tools .mt-row { flex-direction: column; align-items: center; gap: .35rem; }
html[data-device="pc"] .side.rail .menu-tools .rank-btn, html[data-device="pc"] .side.rail .demo-pill { width: 2.3rem; height: 2.3rem; min-width: 0; padding: 0 !important; border-radius: 50% !important; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
html[data-device="pc"] .side.rail .menu-tools .rank-btn > span, html[data-device="pc"] .side.rail .demo-pill > span { display: none; }
html[data-device="pc"] .side.rail .menu-tools { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
html[data-device="pc"] .side.rail .demo-pill { margin: 0 auto; }
/* Le titre de la page reste collé au bouton « ‹ » (menu réduit ou déplié) */
html[data-device="pc"] main.page > .page-head, html[data-device="pc"] main.page.merge-head > .page-head { padding-left: 3.6rem !important; }
html[data-device="pc"] .shell > .back-out { left: auto; }
html[data-device="pc"] .side.rail .menu-tools .mt-row { display: grid !important; grid-template-columns: 1fr !important; justify-items: center; width: 100%; }
html[data-device="pc"] .side.rail .menu-tools { padding: 0 !important; align-items: stretch; }
html[data-device="pc"] .side.rail .menu-tools .mt-row + .demo-pill { margin-top: .4rem; }
html[data-device="pc"] .side.rail .menu-tools .demo-pill { display: inline-flex !important; width: 2.3rem !important; margin: .2rem auto 0 !important; }
html[data-device="pc"] .side.rail .menu-tools .rank-btn .hb-q { font-size: 1rem; }
html[data-device="phone"] .pl-count { flex-wrap: wrap; justify-content: center; row-gap: .2rem; column-gap: .3rem; }
html[data-device="phone"] .pl-count button.pl-t { padding: .15rem .5rem !important; }
html[data-device="phone"] .pl-count .pl-t b { font-size: 1.25rem; }
html[data-device="phone"] .pl-count .pl-t span { font-size: .78rem; }

/* ---------- v1.9.26 : menu PC : « Accueil » fixe hors de la zone qui défile, plus aucun bouton chevauché ---------- */
html[data-device="pc"] .side { overflow: hidden !important; padding-left: 0 !important; padding-right: 0 !important; padding-bottom: 0 !important; }
html[data-device="pc"] .side .nav-first { position: relative !important; top: auto !important; margin: 0 !important; padding: 0 .7rem !important; background: none !important; box-shadow: none !important; flex: none; z-index: auto; }
html[data-device="pc"] .side .nav-first > a.nav { margin: 0 !important; }
/* le rond « ‹ » centré sur le cadre « Accueil » lui-même */
html[data-device="pc"] .side:not(.rail) .nav-first .rail-toggle { top: 50% !important; transform: translateY(-50%); right: 1.35rem !important; }
html[data-device="pc"] .side:not(.rail) .nav-first .rail-toggle:active { transform: translateY(calc(-50% + 2px)); }
html[data-device="pc"] .side .side-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: .32rem; padding: .3rem .7rem .9rem; scroll-snap-type: y mandatory; scroll-padding-top: .3rem; overscroll-behavior: contain; scrollbar-width: thin; }
html[data-device="pc"] .side .side-scroll::-webkit-scrollbar { width: 5px; }
html[data-device="pc"] .side .side-scroll::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
/* le défilement s'arrête toujours sur un bouton entier */
html[data-device="pc"] .side .side-scroll .nav-list > a.nav { scroll-snap-align: start; }
html[data-device="pc"] .side .side-scroll .menu-tools { scroll-snap-align: start; }

html[data-device="pc"] .side.rail .nav-first { padding: 0 .55rem !important; }
html[data-device="pc"] .side.rail .side-scroll { padding-left: .55rem; padding-right: .55rem; }
/* v1.9.26 : rien ne dépasse dans la petite marge du haut de la zone qui défile (pas même l'ombre d'un bouton) */
html[data-device="pc"] .side .side-scroll { -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent .28rem, #000 .3rem); mask-image: linear-gradient(to bottom, transparent 0, transparent .28rem, #000 .3rem); }

/* ---------- v1.9.27 : rangement de l'accueil sur téléphone : appui long n'importe où, plus de bouton de travers ---------- */
.home-lay.phone.editing .hl-it, .home-lay.phone.editing .hl-it .bubble, html[data-device="phone"] .home-lay.editing .bubble, html[data-device="phone"] .home-lay.editing .home-todo h3 { touch-action: auto !important; animation: none !important; }
.home-lay.editing .hl-it, .home-lay.editing .hl-it * { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.hl-ghost { transform: scale(1.04) !important; }
.hl-ghost .tile, .hl-ghost .tw { height: auto !important; }
.hl-it.hl-press { transform: scale(1.03); transition: transform .15s; }
/* v1.9.27 : petits boutons (demi-largeur) sur téléphone : icône au-dessus, nom dessous sur toute la largeur ; aucun mot coupé, rien ne dépasse */
.home-lay.phone .hl-it.half .tile { flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: .6rem .45rem .55rem; gap: .35rem; position: relative; overflow: hidden; min-height: 6.2rem; height: 100%; }
.home-lay.phone .hl-it.half .tile .bubble { width: 2.4rem; height: 2.4rem; }
.home-lay.phone .hl-it.half .tile .grow { min-width: 0; width: 100%; flex: none; }
.home-lay.phone .hl-it.half .tile .t { font-size: .8rem; line-height: 1.15; overflow-wrap: normal; word-break: normal; hyphens: none; }
.home-lay.phone .hl-it.half .tile .s { font-size: .68rem; }
.home-lay.phone .hl-it.half .tile .pastille { position: absolute; top: .4rem; right: .4rem; margin: 0; }
.home-lay.phone .hl-row.pair { align-items: stretch; }
.home-lay.phone .hl-row.pair > .hl-it > .tw { height: 100%; }
/* v1.9.27 : choix du thème : chaque aperçu montre toujours SON thème, quel que soit le thème choisi */
html .style-sample[data-sample="asante"] .tile.mid[style*="--cfg"]:not(.urgent) { background: linear-gradient(#fff, #e7e9ed) !important; box-shadow: 0 2px 5px rgba(0,0,0,.12) !important; border-color: #c9cdd4 !important; color: #1d2026 !important; }
html .style-sample[data-sample="asante"] .tile.mid[style*="--cfg"]:not(.urgent) .bubble { border-color: #4a4f58 !important; }
html[data-theme="dark"] .style-sample[data-sample="asante"] .tile.mid[style*="--cfg"]:not(.urgent) { background: linear-gradient(#2b2f36, #1f2328) !important; box-shadow: 0 2px 6px rgba(0,0,0,.35) !important; border-color: #4a4f58 !important; color: #fff !important; }
html .style-sample[data-sample="c1"] .tile.mid[style*="--cfg"]:not(.urgent), html .style-sample[data-sample="c2"] .tile.mid[style*="--cfg"]:not(.urgent) { color: #1d2024 !important; }
html .style-sample[data-sample="c1"] .tile.mid[style*="--cfg"]:not(.urgent) .bubble, html .style-sample[data-sample="c2"] .tile.mid[style*="--cfg"]:not(.urgent) .bubble { border-color: var(--cfg) !important; }
html[data-theme="dark"] .style-sample[data-sample="c1"] .tile.mid[style*="--cfg"]:not(.urgent), html[data-theme="dark"] .style-sample[data-sample="c2"] .tile.mid[style*="--cfg"]:not(.urgent) { color: #f2f4f6 !important; }
html[data-theme="dark"] .style-sample[data-sample="c1"] .tile.mid[style*="--cfg"]:not(.urgent) .bubble, html[data-theme="dark"] .style-sample[data-sample="c2"] .tile.mid[style*="--cfg"]:not(.urgent) .bubble { border-color: color-mix(in srgb, var(--cfg) 55%, #fff) !important; }

/* ---------- v1.9.28 : choix de l'icône de l'application (Team Alliance : claire ou sombre) ---------- */
.aff-pick.aff-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.appicon-pick .aff-opt { display: flex; flex-direction: column; align-items: center; gap: .25rem; }
.appicon-img { width: 3.4rem; height: 3.4rem; border-radius: 22%; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
/* v1.9.28 : grand logo de l'écran de connexion sur téléphone : il tient toujours dans la largeur */
html[data-device="phone"] .biglogo .w1, html[data-device="phone"] .biglogo .w2 { font-size: min(2.1rem, 7.4vw); }
html[data-device="phone"] .biglogo .cross { height: min(3.2rem, 11vw); }

/* ---------- v1.9.29 : droits dans AS Qualité, point par point (fiche, onglet « Droits et accès ») ---------- */
.qrights { display: grid; gap: .3rem; border-top: 1px solid var(--line-2); padding-top: .5rem; }
.qrights.off { opacity: .5; }
.qr-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem; }
.qr-l { font-weight: 600; font-size: .92rem; min-width: 0; }
.qr-seg { flex-wrap: nowrap; }
.qr-seg button { padding: .3rem .65rem; font-size: .85rem; min-height: 2.2rem; }
html[data-device="phone"] .qr-seg button { padding: .3rem .5rem; font-size: .8rem; }
.warn-t { color: var(--warn, #9a5b00); }
html[data-device="phone"] .qr-row { grid-template-columns: 1fr; gap: .2rem; padding: .25rem 0; border-bottom: 1px solid var(--line-2); }
html[data-device="phone"] .qr-row:last-child { border-bottom: 0; }
html[data-device="phone"] .qr-seg { width: 100%; }
html[data-device="phone"] .qr-seg button { flex: 1; }

/* ---------- v1.9.30 : primes et repas : saisie enchaînée, téléphone un collaborateur à la fois, récapitulatif ---------- */
.pq-w { opacity: .75; }
.pq-w:focus-within { opacity: 1; }
.pq { border-style: dashed !important; }
.pq::placeholder { color: var(--pink-strong); font-weight: 700; opacity: .8; }
html[data-theme="dark"] .pq::placeholder { color: #ff6fb5; }
.pay-one { display: grid; gap: .5rem; padding-bottom: 4.6rem; }
.p1-sum, .rc-tot { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: .35rem; }
.p1-sum div, .rc-tot div { border-radius: 10px; background: var(--pink-soft); padding: .35rem .5rem; display: flex; flex-direction: column; min-width: 0; }
.p1-sum div.g, .rc-tot div.g { background: linear-gradient(90deg, #5c0d38, #a3135f); color: #fff; }
.p1-sum span, .rc-tot span { font-size: .72rem; opacity: .8; }
.p1-sum b, .rc-tot b { font-size: .92rem; white-space: nowrap; }
.p1 .pc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .4rem; }
.p1-st { flex: none; }
.p1-info { display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: center; font-size: .88rem; margin: .2rem 0; }
.p1-info .rate-in .i { width: 5.2rem; }
.p1-sec { display: grid; gap: .35rem; padding: .5rem 0; border-top: 1px solid var(--line-2); }
.p1-meal { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.p1-big { font-size: 1.25rem !important; width: 6.5rem !important; min-height: 2.8rem; text-align: center; }
.p1-prime { display: grid; gap: .3rem; padding: .35rem; border-radius: 12px; background: var(--card-2); }
.p1-types { display: flex; flex-wrap: wrap; gap: .3rem; }
.p1-types .chip { min-height: 2.1rem; }
.p1-amt { display: flex; align-items: center; gap: .5rem; }
.p1-add { min-height: 2.8rem; }
.p1-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .5rem; padding: .5rem .7rem calc(.5rem + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0,0,0,.12); }
.p1-pos { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
/* récapitulatif */
.sheet:has(.rc-t) { max-width: 860px !important; width: min(860px, 96vw); }
.rc-t td, .rc-t th { text-align: left; vertical-align: top; padding: .5rem .7rem; }
.rc-t .r { text-align: right; white-space: nowrap; }
.rc-t b, .rc-t td:nth-child(2) { white-space: nowrap; }
.rc-p { display: flex; justify-content: space-between; gap: 1rem; }
.rc-grand td { background: linear-gradient(90deg, #5c0d38, #a3135f 50%, #5c0d38); color: #fff; font-weight: 800; font-size: 1.05rem; }
.rc-card { border: 1px solid var(--line); border-radius: 12px; padding: .4rem .65rem; margin: .3rem 0; background: var(--card-2); font-size: .9rem; }
.rc-h { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.rc-n { font-weight: 800; font-size: .98rem; }
.rc-tt { color: var(--pink-strong); white-space: nowrap; }
html[data-theme="dark"] .rc-tt { color: #ff6fb5; }
.rc-m { display: flex; justify-content: space-between; gap: .6rem; color: var(--text-2); line-height: 1.35; }
.rc-m span:last-child { white-space: nowrap; }
.rc-act { display: flex; gap: .6rem; margin-top: .7rem; }
.rc-act .btn { flex: 1; }
html[data-device="phone"] .rc-act { position: sticky; bottom: 0; background: var(--card); padding: .5rem 0 calc(.3rem + env(safe-area-inset-bottom)); margin-bottom: 0; }
.pq-w { display: inline-flex; align-items: center; margin-top: .15rem; }
.pq-w .pq { width: 8.2rem; text-align: left; font-size: .85rem; }
.p1-bar .btn { min-height: 2.6rem; padding: .4rem .6rem; white-space: nowrap; }
.p1-pos { white-space: nowrap; }
html[data-device="phone"] .rc-act .btn { flex: 1 1 0; min-width: 0; white-space: normal; font-size: .92rem; padding: .5rem .4rem; line-height: 1.15; }
html[data-device="phone"] .rc-act .btn.primary { flex: 1.6 1 0; }
/* v1.9.31 : taux lisible en entier (15,80), case Repas étroite (2 chiffres) pour laisser la place au montant (187,20 €) */
.pay17 .rate-in { white-space: nowrap; }
.pay17 .rate-in .num, .pay17 .meal-in .num { flex: none; }
.pay17 td.rate .rate-in input.num { max-width: none !important; }
.pay17 .rate-in .num { width: 4.4rem !important; padding: 0 .3rem; text-align: right; font-variant-numeric: tabular-nums; }
.pay17 .meal-in { gap: .3rem; white-space: nowrap; }
.pay17 .meal-in .num { width: 2.7rem !important; padding: 0 .25rem; text-align: center; font-variant-numeric: tabular-nums; }
.pay17 .meal-in .small { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pay17 .rate-in .num { font-size: .86rem; font-weight: 600; width: 3.9rem !important; }
.rate-in { align-items: flex-start; }
.rate-in .u { line-height: 2.2rem; }
.rate-box { display: inline-flex; flex-direction: column; align-items: center; }
.rate-rep { line-height: 1.2; margin-top: .1rem; }
/* v1.9.32 : ronds du menu agrandis (même réglage que le logiciel qualité) */
.side a.nav .nav3d, .side a.nav img.asi-home { width: 2.6rem !important; height: 2.6rem !important; }
.side a.nav { gap: .6rem; padding-top: .2rem; padding-bottom: .2rem; line-height: 1.15; }
html[data-device="pc"] .side.rail a.nav .nav3d, html[data-device="pc"] .side.rail a.nav img.asi-home { width: 2.7rem !important; height: 2.7rem !important; }
.menu-list .item .menu3d, .menu-list .item img.asi-home { width: 3.1rem !important; height: 3.1rem !important; }
.menu-list .item { gap: .75rem; }
/* v1.9.33 : cartouches des magasins moins hauts ; noms des permanences plus petits (place pour plus de personnes) */
.st-pill, html[data-device="pc"] .wk-tile .st-pill, html[data-device="phone"] .week-box .st-pill { font-size: .88rem; padding: .04rem .7rem; line-height: 1.3; }
.st-head { gap: .4rem; }
.st-head .badge { padding-top: .05rem; padding-bottom: .05rem; }
.sat-day .chips { gap: .35rem; }
.sat-day .chips .chip { min-height: 2rem; padding: .2rem .75rem; font-size: .9rem; line-height: 1.2; }
.sat-day .chips select.i.sm { min-height: 2rem; padding: .15rem .4rem; font-size: .82rem; }
html[data-device="phone"] .sat-day .chips .chip { min-height: 2.25rem; padding: .25rem .8rem; }
html[data-device="phone"] .sat-day .chips select.i.sm { min-height: 2.25rem; }
/* v1.9.33 : trait de séparation entre les points de vente d'un même samedi (autant de magasins qu'il faut) */
.sat-day .st-block { margin-top: .45rem; }
.sat-day .st-block + .st-block { border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .5rem; }
:root[data-theme="dark"] .sat-day .st-block + .st-block { border-top-color: #4a4f59; }
/* v1.9.33 : « dernière permanence il y a N sem. » après la récupération */
.sat-info { color: var(--pink-strong, #d6267a); font-weight: 700; }
/* v1.9.33 : en-tête du samedi : sur PC tout tient sur une ligne (le survol ne fait jamais bouger les noms) ; sur téléphone l'information passe dessous */
.sat-h { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
html[data-device="pc"] .sat-h { flex-wrap: nowrap; white-space: nowrap; min-width: 0; }
html[data-device="pc"] .sat-h .sat-info { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1 1 auto; }
html[data-device="phone"] .sat-h .sat-info { flex-basis: 100%; }
html[data-device="phone"] .sat-h .sat-info:empty { display: none; }
/* v1.9.33 : pavé du code (verrouillage et ouverture) */
/* touches au contour rose ; appuyée : contour blanc en sombre, rose plein en clair ; effacer et empreinte sans rond */
.lock-box .keypad button:not(.fn):not(.fp), .pin-screen .keypad button:not(.fn):not(.fp) { border: 2px solid var(--pink) !important; }
:root[data-theme="dark"] .lock-box .keypad button:not(.fn):not(.fp):active, :root[data-theme="dark"] .pin-screen .keypad button:not(.fn):not(.fp):active { border-color: #fff !important; box-shadow: 0 0 0 3px rgba(236, 26, 132, .35) !important; }
:root:not([data-theme="dark"]) .lock-box .keypad button:not(.fn):not(.fp):active, :root:not([data-theme="dark"]) .pin-screen .keypad button:not(.fn):not(.fp):active { background: var(--pink) !important; color: #fff !important; border-color: #fff !important; box-shadow: 0 0 0 3px rgba(236, 26, 132, .35) !important; }
.lock-box .keypad button.fn, .pin-screen .keypad button.fn, .lock-box .keypad button.fp, .pin-screen .keypad button.fp { border-color: transparent !important; background: transparent !important; box-shadow: none !important; }
/* croix du logo dans l'axe de l'écran (les deux mots de part et d'autre) */
.logo-c { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; }
.logo-c > .logo-word:first-child { justify-self: end; }
.logo-c > .logo-word:last-child { justify-self: start; }
/* Team Alliance : grande croix d'Alliance en filigrane, au centre du pavé */
:root[data-brand="team"] .lock-box .keypad, :root[data-brand="team"] .pin-screen .keypad { position: relative; }
:root[data-brand="team"] .lock-box .keypad > *, :root[data-brand="team"] .pin-screen .keypad > * { position: relative; z-index: 1; }
:root[data-brand="team"] .lock-box .keypad::before, :root[data-brand="team"] .pin-screen .keypad::before { content: ""; position: absolute; z-index: 0; left: 50%; top: 50%; width: 15rem; height: 17.5rem; max-width: 100%; max-height: 100%; transform: translate(-50%, -50%); background: url(/img/croix.png) center / contain no-repeat; opacity: .22; pointer-events: none; }
:root[data-brand="team"][data-theme="dark"] .lock-box .keypad::before, :root[data-brand="team"][data-theme="dark"] .pin-screen .keypad::before { opacity: .09; }
