/* Démos interactives Batiox, page /demo.
   Tout est rangé sous .bxd pour ne pas toucher au reste du site ;
   le « reset » Tailwind (/styles.css) est neutralisé ici. */
.bxd, .bxd * { margin: 0; padding: 0; box-sizing: border-box; }
.bxd img, .bxd svg { display: inline; vertical-align: baseline; max-width: none; height: auto; }
.bxd {
  font-family: 'Aileron', 'Helvetica Neue', Arial, sans-serif;
  color: var(--slate-900); line-height: normal; -webkit-font-smoothing: antialiased;
}
.bxd h2, .bxd h3 { font-family: 'Montserrat', sans-serif; text-wrap: balance; }
.bxd button { font: inherit; }
    /* ===== Palette exacte de l'app (tailwind APP-BATIOX) ===== */
    :root {
      --navy: #0c2136;
      --navy-3: #1f3449;
      --slate-50: #f8fafc;
      --slate-100: #f1f5f9;
      --slate-200: #e2e8f0;
      --slate-300: #cbd5e1;
      --slate-400: #94a3b8;
      --slate-500: #64748b;
      --slate-600: #475569;
      --slate-700: #334155;
      --slate-800: #1e293b;
      --slate-900: #0f172a;
      --brand-50: #fff7ed;
      --brand-100: #ffedd5;
      --brand-200: #fed7aa;
      --brand-500: #f97316;
      --brand-600: #ea580c;
      --brand-700: #c2410c;
      --emerald-500: #10b981;
      --emerald-700: #047857;
      --emerald-50: #ecfdf5;
      --amber-50: #fffbeb;
      --amber-400: #fbbf24;
      --amber-800: #92400e;
      --red-600: #dc2626;
      --site-orange: #f55e30;
      --site-orange-dark: #e04820;
      --indigo: #3533cd;
      --font-app: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      --z-cursor: 35;
      --z-tooltip: 40;
      --z-toast: 50;
      --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* ===== Chrome de page ===== */

    section.demo { max-width: 1200px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) clamp(16px, 3vw, 32px); }
    section.demo > h2 { font-size: clamp(1.35rem, 2.5vw, 1.9rem); font-weight: 800; color: var(--navy); letter-spacing: -0.015em; margin-bottom: 8px; }
    section.demo > .lead { color: var(--slate-600); font-size: 1.05rem; line-height: 1.6; max-width: 72ch; margin-bottom: 26px; }

    .stage {
      position: relative;
      background: linear-gradient(180deg, #eef1f7 0%, #e7ebf3 100%);
      border: 1px solid var(--slate-200); border-radius: 20px;
      padding: clamp(14px, 2.5vw, 36px); overflow: clip;
    }

    /* ===== Fichiers (bureau) ===== */
    .tray { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; align-items: center; }
    .tray-label { font-size: 13px; font-weight: 600; color: var(--slate-500); margin-right: 4px; }
    .chip {
      display: flex; align-items: center; gap: 9px; background: #fff;
      border: 1px solid var(--slate-200); border-radius: 10px; padding: 7px 13px 7px 9px;
      font-size: 13px; font-weight: 600; color: var(--slate-800);
      box-shadow: 0 1px 3px rgba(12, 33, 54, 0.08);
      transition: opacity 0.3s, filter 0.3s;
    }
    .chip.used { opacity: 0.35; filter: grayscale(1); }
    .ext {
      font-family: 'Montserrat', sans-serif; font-size: 10px; font-weight: 800;
      color: #fff; border-radius: 5px; padding: 3px 6px; letter-spacing: 0.03em; flex: none;
    }
    .ext.pdf { background: #d3352b; }
    .ext.xls { background: #1d7044; }
    .chip-flying {
      position: fixed; z-index: var(--z-cursor); pointer-events: none;
      transition: transform 0.65s cubic-bezier(0.5, 0, 0.2, 1), opacity 0.2s 0.5s;
    }

    /* ===== Fenêtre app ===== */
    .app {
      background: var(--slate-50); border-radius: 14px; overflow: hidden;
      box-shadow: 0 24px 60px -18px rgba(12, 33, 54, 0.35), 0 2px 8px rgba(12, 33, 54, 0.12);
      display: grid; grid-template-columns: 190px 1fr; min-height: 660px; position: relative;
    }
    .app-side { background: var(--navy); color: #fff; padding: 18px 0; display: flex; flex-direction: column; }
    .app-side .logo { padding: 4px 20px 22px; }
    .app-side .logo img { height: 22px; }
    .side-item { display: flex; align-items: center; gap: 11px; padding: 10px 20px; font-size: 13.5px; color: #c7d2de; }
    .side-item svg { width: 16px; height: 16px; flex: none; }
    .side-item.active { background: var(--navy-3); color: #fff; font-weight: 600; border-radius: 8px; margin: 0 10px; padding: 10px 10px; }
    .app-main { position: relative; min-width: 0; font-family: var(--font-app); }

    /* écrans empilés */
    .screen-app {
      position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
      padding: 22px clamp(14px, 2.5vw, 28px);
      opacity: 0; transform: translateX(24px); pointer-events: none;
      transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
      scrollbar-width: none;
    }
    .screen-app::-webkit-scrollbar { display: none; }
    .screen-app.on { opacity: 1; transform: none; pointer-events: auto; }
    .screen-col { max-width: 620px; margin: 0 auto; }

    .crumb { font-size: 13px; color: var(--brand-600); font-weight: 500; margin-bottom: 3px; }
    .screen-h1 { font-size: 19px; font-weight: 700; color: var(--slate-900); margin-bottom: 12px; font-family: var(--font-app); letter-spacing: 0; }

    /* Bascule saisie manuelle / automatique : reproduction exacte */
    .mode-toggle {
      display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
      background: var(--slate-100); border-radius: 12px; padding: 4px; margin-bottom: 14px;
    }
    .mode-toggle button {
      border: 0; border-radius: 10px; padding: 9px 12px; font-size: 13.5px; font-weight: 600;
      color: var(--slate-600); background: transparent; font-family: var(--font-app);
      transition: background 0.25s, color 0.25s, box-shadow 0.25s;
    }
    .mode-toggle button.on { background: var(--brand-500); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.08); }

    /* Cartes app (rounded-2xl border-slate-100 bg-white) */
    .acard { background: #fff; border: 1px solid var(--slate-100); border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
    .acard-label {
      font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
      color: var(--slate-400); margin-bottom: 10px;
      display: flex; justify-content: space-between; align-items: center;
    }
    .acard-label .count { font-size: 11.5px; color: var(--slate-500); text-transform: none; letter-spacing: 0; }

    .dz {
      display: flex; flex-direction: column; align-items: center; gap: 3px;
      border: 2px dashed var(--slate-200); background: var(--slate-50);
      border-radius: 12px; padding: 16px 14px; text-align: center;
      transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    }
    .dz.hot { border-color: var(--brand-500); background: var(--brand-50); box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12); }
    .dz .t1 { font-size: 13.5px; font-weight: 600; color: var(--brand-600); }
    .dz .t2 { font-size: 12px; color: var(--slate-500); max-width: 40ch; }
    .dz .t3 { font-size: 11.5px; color: var(--slate-400); }

    .filelist { list-style: none; border: 1px solid var(--slate-100); border-radius: 14px; margin-top: 10px; overflow: hidden; }
    .filelist li {
      display: flex; align-items: center; gap: 10px; padding: 8px 13px;
      font-size: 13px; color: var(--slate-800); border-top: 1px solid var(--slate-100);
      opacity: 0; transform: translateY(6px);
      transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
    }
    .filelist li:first-child { border-top: 0; }
    .filelist li.in { opacity: 1; transform: none; }
    .filelist .name { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .filelist .rm { font-size: 11.5px; font-weight: 600; color: var(--slate-500); flex: none; }
    .filelist .st { font-size: 11.5px; font-weight: 600; flex: none; color: var(--slate-500); }
    .filelist .st.read { color: var(--emerald-700); }

    .fgrid { display: flex; gap: 10px; }
    .f-ref { width: 104px; flex: none; }
    .f-grow { flex: 1; min-width: 0; }
    .flabel { display: block; font-size: 12.5px; font-weight: 500; color: var(--slate-700); margin-bottom: 5px; }
    .flabel .req { color: var(--red-600); }
    .finput {
      width: 100%; border: 1px solid var(--slate-200); border-radius: 12px;
      padding: 9px 12px; font-size: 13.5px; color: var(--slate-900);
      font-family: var(--font-app); background: #fff; min-height: 38px;
      transition: border-color 0.25s, box-shadow 0.25s;
    }
    .finput .ph { color: var(--slate-400); }
    .finput.focus { border-color: var(--brand-500); box-shadow: 0 0 0 1px var(--brand-500); }
    .fhelp { font-size: 11.5px; color: var(--slate-500); margin-top: 4px; }
    .caret { display: inline-block; width: 1px; height: 14px; background: var(--slate-900); vertical-align: -2px; animation: blink 0.9s steps(1) infinite; }
    @keyframes blink { 50% { opacity: 0; } }

    /* Équipe */
    .team-all {
      width: 100%; border: 1px solid var(--brand-200); background: var(--brand-50);
      color: var(--brand-700); font-weight: 600; font-size: 13px; font-family: var(--font-app);
      border-radius: 12px; padding: 9px 12px; margin-bottom: 10px;
    }
    .member { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--slate-100); font-size: 13px; }
    .member:first-of-type { border-top: 0; }
    .member .avatar {
      width: 28px; height: 28px; border-radius: 99px; flex: none;
      background: var(--brand-100); color: var(--brand-700);
      display: grid; place-items: center; font-size: 10.5px; font-weight: 700;
    }
    img.avatar, .tav img { object-fit: cover; }
    .tav img {
      width: 22px; height: 22px; border-radius: 99px;
      border: 2px solid #fff; margin-left: -6px; display: block;
    }
    .member .who { flex: 1; font-weight: 500; }
    .member .who small { color: var(--slate-400); font-weight: 400; }
    .member .check {
      width: 18px; height: 18px; border-radius: 99px; border: 2px solid var(--slate-300);
      display: grid; place-items: center; transition: background 0.25s, border-color 0.25s;
    }
    .member .check svg { opacity: 0; transition: opacity 0.2s; }
    .member.sel .check { background: var(--brand-500); border-color: var(--brand-500); }
    .member.sel .check svg { opacity: 1; }

    .abtn {
      width: 100%; border: 0; border-radius: 12px; background: var(--brand-500);
      color: #fff; font-weight: 600; font-size: 14.5px; font-family: var(--font-app);
      padding: 13px 16px; min-height: 48px; transition: background 0.2s, transform 0.12s;
    }
    .abtn.pressed { transform: scale(0.985); background: var(--brand-600); }

    /* Panneau d'avancement (bg-brand-50/60 border-brand-100) */
    .progress-panel {
      border: 1px solid var(--brand-100); background: rgba(255, 247, 237, 0.6);
      border-radius: 16px; padding: 12px 16px; margin-top: 12px;
      display: none;
    }
    .progress-panel.on { display: block; }
    .progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
    .progress-head .step { font-size: 13.5px; font-weight: 600; color: var(--slate-800); }
    .progress-head .sum { font-size: 11.5px; color: var(--slate-500); }
    .pfile { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 3px 0; }
    .pfile .n { color: var(--slate-800); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .pfile .s { flex: none; font-size: 11.5px; font-weight: 600; color: var(--slate-500); }
    .pfile .s.reading { color: var(--brand-600); }
    .pfile .s.read { color: var(--emerald-700); }

    /* ===== Écran « Ce que Batiox a compris » ===== */
    .xcard {
      background: #fff; border: 1px solid var(--slate-100); border-radius: 16px;
      padding: 12px 16px; margin-bottom: 10px;
      opacity: 0; transform: translateY(10px);
      transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
    }
    .xcard.in { opacity: 1; transform: none; }
    .xcard-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
    .xcard-head .n { font-size: 13px; font-weight: 600; color: var(--slate-900); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .kind {
      flex: none; font-size: 12px; font-weight: 500; color: var(--slate-800);
      border: 1px solid var(--slate-200); border-radius: 10px; padding: 5px 22px 5px 9px;
      position: relative; background: #fff;
    }
    .kind::after {
      content: ""; position: absolute; right: 8px; top: 50%; transform: translateY(-30%);
      border: 4px solid transparent; border-top-color: var(--slate-500);
    }
    .xfields { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
    .xfield { flex: 1; min-width: 110px; }
    .xfield .l { font-size: 10.5px; color: var(--slate-500); margin-bottom: 3px; }
    .xfield .v {
      border: 1px solid var(--slate-200); border-radius: 10px; padding: 6px 10px;
      font-size: 13px; font-weight: 600; color: var(--slate-900); background: #fff;
      font-variant-numeric: tabular-nums;
    }
    .xfield.doubt .v { border-color: var(--amber-400); background: var(--amber-50); }
    .xfield.doubt .l { color: var(--amber-800); }
    .xline2 { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--slate-700); padding: 4px 0; }
    .xline2 .cb {
      width: 15px; height: 15px; border-radius: 4px; background: var(--brand-500); flex: none;
      display: grid; place-items: center;
    }
    .xline2 .amt { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }
    .xplan { font-size: 11.5px; color: var(--slate-500); margin-top: 8px; line-height: 1.5; }
    .xfooter {
      position: sticky; bottom: 0; background: #fff; border: 1px solid var(--brand-100);
      border-radius: 16px; padding: 10px 16px 12px; box-shadow: 0 -8px 30px -12px rgba(12,33,54,0.25);
    }
    .xfooter .s { font-size: 12.5px; font-weight: 500; color: var(--slate-800); margin-bottom: 8px; }

    /* ===== Écran Rentabilité (v3 réel) ===== */
    .tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--slate-200); margin: 10px 0 14px; }
    .tabs span { font-size: 13.5px; color: var(--slate-500); padding-bottom: 8px; }
    .tabs span.on { color: var(--brand-600); font-weight: 600; border-bottom: 2px solid var(--brand-500); }
    .pill { font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
    .pill.actif { color: var(--emerald-700); background: var(--emerald-50); border: 1px solid #a7f3d0; }
    .pill.ref { color: var(--slate-500); background: #fff; border: 1px solid var(--slate-200); }

    .verdict {
      background: #fff; border: 1px solid var(--slate-100); border-left: 4px solid var(--emerald-500);
      border-radius: 16px; padding: 13px 16px; margin-bottom: 12px;
    }
    .verdict .h { font-size: 15px; color: var(--slate-900); }
    .verdict .h strong { color: var(--emerald-700); font-variant-numeric: tabular-nums; }
    .verdict .s1 { font-size: 13px; color: var(--slate-600); margin-top: 3px; }
    .verdict .s2 { font-size: 12.5px; color: var(--slate-500); margin-top: 2px; }

    .tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
    .tile { background: #fff; border: 1px solid var(--slate-100); border-radius: 16px; padding: 11px 13px; }
    .tile .l { font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate-400); }
    .tile .v { margin-top: 4px; font-size: 17px; font-weight: 600; color: var(--slate-900); font-variant-numeric: tabular-nums; white-space: nowrap; }
    .tile .v.ok { color: var(--emerald-700); }

    .split { background: #fff; border: 1px solid var(--slate-100); border-radius: 16px; padding: 13px 16px; margin-bottom: 12px; }
    .split h3, .hline h3, .coince h3 {
      font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
      color: var(--slate-400); margin-bottom: 9px; font-family: var(--font-app);
    }
    .split .bar { display: flex; height: 16px; border-radius: 99px; overflow: hidden; background: var(--slate-100); }
    .split .seg { height: 100%; width: 0; transition: width 1s var(--ease-out); }
    .seg.spent { background: var(--slate-700); }
    .seg.rest { background: var(--slate-300); }
    .seg.marge { background: var(--emerald-500); }
    .legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 9px; font-size: 12px; color: var(--slate-600); }
    .legend .it { display: flex; align-items: center; gap: 6px; }
    .legend .dot { width: 8px; height: 8px; border-radius: 99px; flex: none; }
    .legend b { color: var(--slate-900); font-weight: 600; font-variant-numeric: tabular-nums; }

    .hline { background: #fff; border: 1px solid var(--slate-100); border-radius: 16px; padding: 13px 16px; margin-bottom: 12px; }
    .hline p { font-size: 13px; color: var(--slate-700); }
    .hline b { font-variant-numeric: tabular-nums; }

    /* ===== Onglet Heures (reproduction ProjectHoursTab) ===== */
    .hrs-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
    .hrs-head .tot { font-size: 14px; font-weight: 700; color: var(--slate-900); margin-top: 2px; }
    .hrs-btn {
      background: var(--brand-500); color: #fff; border: 0; border-radius: 12px;
      padding: 8px 12px; font-size: 13px; font-weight: 600; font-family: var(--font-app); flex: none;
    }
    .hrs-list { list-style: none; background: #fff; border: 1px solid var(--slate-100); border-radius: 16px; overflow: hidden; }
    .hrow { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--slate-100); }
    .hrow:first-child { border-top: 0; }
    .hrow .hwho { min-width: 0; flex: 1; }
    .hrow .hname { font-size: 13.5px; font-weight: 600; color: var(--slate-900); }
    .hrow .hsub { font-size: 11.5px; color: var(--slate-400); margin-top: 1px; }
    .hrow .hdur { flex: none; font-size: 13.5px; font-weight: 700; color: var(--slate-900); font-variant-numeric: tabular-nums; }
    .hrow .hic { display: flex; gap: 4px; flex: none; color: var(--slate-300); }
    .hrow .hic svg { width: 15px; height: 15px; }
    .hrow.h-new { background: var(--brand-50); opacity: 0; transform: translateY(6px); transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out); }
    .hrow.h-new.in { opacity: 1; transform: none; }
    .hrow.h-new .hdur { color: var(--brand-600); }
    .tot.flash { animation: flash 0.8s var(--ease-out); }
    @keyframes flash {
      0% { background: #fff3d6; box-shadow: 0 0 0 5px #fff3d6; border-radius: 4px; }
      100% { background: transparent; box-shadow: none; }
    }

    /* ===== Gantt (couleurs réelles de l'app) ===== */
    .gantt { background: #fff; border: 1px solid var(--slate-100); border-radius: 12px; overflow: hidden; }
    .g-months { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--slate-50); border-bottom: 1px solid var(--slate-100); }
    .g-months span { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate-500); padding: 6px 10px; border-right: 1px solid var(--slate-200); }
    .g-months span:last-child { border-right: 0; }
    .g-body { position: relative; padding: 12px 0 16px; }
    .g-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(12, 1fr); pointer-events: none; }
    .g-grid i { border-right: 1px solid var(--slate-100); }
    .g-grid i:nth-child(4n) { border-right-color: var(--slate-200); }
    .g-row { position: relative; height: 34px; margin: 6px 0; }
    .g-bar {
      position: absolute; top: 3px; bottom: 3px; border-radius: 8px;
      background: #e2e8f0; border: 1px solid #94a3b8; color: #475569;
      font-size: 11.5px; font-weight: 600; display: flex; align-items: center;
      padding: 0 10px; white-space: nowrap; overflow: hidden;
      transform-origin: left; transform: scaleX(0);
      transition: transform 0.7s var(--ease-out);
    }
    .g-bar.in { transform: none; }
    .g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brand-500); }
    .g-today::after { content: "aujourd'hui"; position: absolute; top: -1px; left: 5px; font-size: 9.5px; color: var(--brand-600); font-weight: 600; }
    .g-note { font-size: 12px; color: var(--slate-500); margin-top: 9px; }
    .g-legend { display: flex; gap: 4px 16px; flex-wrap: wrap; align-items: center; margin-top: 10px; font-size: 11px; color: var(--slate-500); }
    .g-legend .it { display: flex; align-items: center; gap: 5px; }
    .g-legend .sw { width: 14px; height: 9px; border-radius: 3px; border: 1px solid; }
    .g-legend .bar-today { width: 2px; height: 12px; background: var(--brand-500); }

    /* Listing des tâches sous le Gantt (comme la fiche chantier réelle) */
    .tasks-head { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 8px; }
    .tasks-head .t { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate-400); }
    .tasks-head .add { font-size: 13px; font-weight: 600; color: var(--brand-600); }
    .seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--slate-100); border-radius: 12px; padding: 3px; margin-bottom: 10px; }
    .seg span { text-align: center; padding: 7px 4px; font-size: 12.5px; font-weight: 600; color: var(--slate-500); border-radius: 10px; }
    .seg span.on { background: #fff; color: var(--slate-900); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
    .seg .n { color: var(--brand-600); }
    .trow {
      position: relative; background: #fff; border: 1px solid var(--slate-100); border-radius: 12px;
      padding: 10px 12px 26px 16px; margin-bottom: 8px; overflow: hidden;
      opacity: 0; transform: translateY(8px);
      transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
    }
    .trow.in { opacity: 1; transform: none; }
    .trow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand-500); }
    .trow .tt { font-size: 13px; font-weight: 600; color: var(--slate-900); padding-right: 80px; }
    .trow .td { font-size: 12px; color: var(--slate-600); margin-top: 3px; }
    .trow .tav { position: absolute; right: 12px; top: 11px; display: flex; }
    .trow .tav i {
      width: 22px; height: 22px; border-radius: 99px; background: var(--brand-100); color: var(--brand-700);
      font-size: 8.5px; font-weight: 700; font-style: normal; display: grid; place-items: center;
      border: 2px solid #fff; margin-left: -6px;
    }
    .trow .note { position: absolute; right: 12px; bottom: 7px; font-size: 11.5px; font-weight: 600; color: var(--brand-600); }

    /* ===== Documents rangés ===== */
    .folder {
      background: #fff; border: 1px solid var(--slate-100); border-radius: 16px;
      overflow: hidden; margin-bottom: 10px;
      opacity: 0; transform: translateY(8px);
      transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
    }
    .folder.in { opacity: 1; transform: none; }
    .folder-head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; font-size: 13.5px; font-weight: 600; color: var(--slate-800); }
    .folder-head svg { width: 16px; height: 16px; color: var(--brand-500); flex: none; }
    .folder-head .n { flex: 1; }
    .folder-head .c { font-size: 12px; color: var(--slate-400); font-weight: 500; }
    .folder ul { list-style: none; border-top: 1px solid var(--slate-100); }
    .folder li { display: flex; gap: 9px; align-items: center; padding: 8px 14px; font-size: 12.5px; color: var(--slate-700); border-top: 1px solid var(--slate-100); }
    .folder li:first-child { border-top: 0; }
    .folder li .ext { font-size: 9px; padding: 2px 5px; }

    /* ===== Messagerie 2 volets ===== */
    .chat { display: grid; grid-template-columns: 215px 1fr; border: 1px solid var(--slate-100); border-radius: 16px; background: #fff; overflow: hidden; min-height: 400px; }
    .chat-list { border-right: 1px solid var(--slate-100); }
    .conv { display: flex; gap: 9px; padding: 10px 12px; border-bottom: 1px solid var(--slate-100); align-items: center; }
    .conv.onc { background: var(--brand-50); }
    .conv .dot-av { width: 30px; height: 30px; border-radius: 10px; background: var(--slate-100); color: var(--slate-600); display: grid; place-items: center; font-weight: 700; font-size: 10px; flex: none; }
    .conv.onc .dot-av { background: var(--brand-100); color: var(--brand-700); }
    .conv .cmid { min-width: 0; flex: 1; }
    .conv .cn { display: block; font-weight: 600; color: var(--slate-900); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .conv .cp { display: block; color: var(--slate-500); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .conv .meta { margin-left: auto; text-align: right; flex: none; }
    .conv .tm { display: block; font-size: 10px; color: var(--slate-400); }
    .conv .badge { background: var(--brand-500); color: #fff; font-size: 9.5px; font-weight: 700; border-radius: 99px; padding: 1px 6px; display: inline-block; margin-top: 3px; }
    .thread { display: flex; flex-direction: column; min-width: 0; }
    .thread-head { padding: 11px 14px; border-bottom: 1px solid var(--slate-100); font-size: 13px; font-weight: 600; color: var(--slate-900); }
    .thread-body { flex: 1; padding: 13px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--slate-50); }
    .msg {
      max-width: 82%; background: #fff; border: 1px solid var(--slate-100); border-radius: 12px;
      padding: 8px 11px; font-size: 12.5px; color: var(--slate-800); line-height: 1.45;
      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    }
    .msg .mh { display: flex; gap: 6px; align-items: baseline; margin-bottom: 2px; }
    .msg .mh .who { font-weight: 700; font-size: 11.5px; }
    .msg .mh .tm { font-size: 10px; color: var(--slate-400); }
    .msg.me { align-self: flex-end; background: var(--brand-50); border-color: var(--brand-100); }
    .msg.newmsg { opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
    .msg.newmsg.in { opacity: 1; transform: none; }
    .chat-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--slate-100); align-items: center; }
    .chat-input .fake { flex: 1; border: 1px solid var(--slate-200); border-radius: 99px; padding: 8px 14px; font-size: 12.5px; color: var(--slate-400); }
    .chat-input .send { width: 34px; height: 34px; border-radius: 99px; background: var(--brand-500); display: grid; place-items: center; color: #fff; flex: none; }
    .chat-input .send svg { width: 15px; height: 15px; }

    /* ===== Hotspot : « à vous de cliquer » ===== */
    .hs { cursor: pointer; animation: pulsehs 1.6s ease-out infinite; }
    @keyframes pulsehs {
      0% { box-shadow: 0 0 0 0 rgba(53, 51, 205, 0.5); }
      70% { box-shadow: 0 0 0 12px rgba(53, 51, 205, 0); }
      100% { box-shadow: 0 0 0 0 rgba(53, 51, 205, 0); }
    }
    .tabs span { border-radius: 6px 6px 0 0; padding: 2px 4px 8px; }
    .tabs span.hs, .side-item.hs { cursor: pointer; }
    .side-badge {
      margin-left: auto; background: var(--brand-500); color: #fff;
      font-size: 10px; font-weight: 700; border-radius: 99px; padding: 1px 6px;
    }
    .btn-auto {
      font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px;
      color: var(--slate-500); background: #fff; border: 1.5px solid var(--slate-300);
      border-radius: 99px; padding: 9px 20px; cursor: pointer; transition: all 0.2s;
    }
    .btn-auto.on { color: var(--indigo); border-color: var(--indigo); background: #edecff; }

    /* ===== Curseur factice ===== */
    .cursor {
      position: absolute; z-index: var(--z-cursor); width: 22px; height: 22px;
      pointer-events: none; opacity: 0;
      transition: top 0.65s var(--ease-out), left 0.65s var(--ease-out), opacity 0.3s;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
    }
    .cursor svg { width: 100%; height: 100%; }
    .cursor.show { opacity: 1; }
    .click-ring {
      position: absolute; z-index: var(--z-cursor); width: 34px; height: 34px; border-radius: 99px;
      border: 2.5px solid var(--indigo); background: rgba(53, 51, 205, 0.2);
      transform: translate(-50%, -50%) scale(0.4); opacity: 0; pointer-events: none;
    }
    .click-ring.go { animation: ring 0.5s var(--ease-out); }
    @keyframes ring {
      0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
      30% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
      100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); }
    }

    /* ===== Tooltip / toast ===== */
    .tip {
      position: absolute; z-index: var(--z-tooltip); max-width: 260px;
      background: var(--indigo); color: #fff; font-size: 13.5px; line-height: 1.45; font-weight: 500;
      padding: 12px 14px; border-radius: 10px;
      box-shadow: 0 12px 30px -8px rgba(53, 51, 205, 0.5);
      opacity: 0; transform: translateY(6px) scale(0.97); pointer-events: none;
      transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
    }
    .tip.show { opacity: 1; transform: none; }
    .tip::before { content: ""; position: absolute; width: 10px; height: 10px; background: inherit; transform: rotate(45deg); }
    .tip[data-arrow="top"]::before { top: -5px; left: var(--ax, 24px); }
    .tip[data-arrow="bottom"]::before { bottom: -5px; left: var(--ax, 24px); }
    .tip[data-arrow="left"]::before { left: -5px; top: 20px; }
    .toast {
      position: absolute; z-index: var(--z-toast); left: 50%; bottom: 16px;
      transform: translate(-50%, 12px);
      background: var(--navy); color: #fff; font-size: 13.5px; font-weight: 600;
      padding: 10px 18px; border-radius: 99px; display: flex; gap: 8px; align-items: center;
      opacity: 0; transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
      white-space: nowrap; pointer-events: none;
    }
    .toast.show { opacity: 1; transform: translate(-50%, 0); }
    .toast .dot { width: 8px; height: 8px; border-radius: 99px; background: #5fd693; }

    /* ===== Contrôles ===== */
    .controls { display: flex; align-items: center; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
    .btn-replay {
      font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px;
      color: var(--navy); background: #fff; border: 1.5px solid var(--navy);
      border-radius: 99px; padding: 9px 20px; cursor: pointer; transition: background 0.2s, color 0.2s;
    }
    .btn-replay:hover { background: var(--navy); color: #fff; }
    .stepper { display: flex; gap: 4px 14px; flex-wrap: wrap; }
    .stepper span { font-size: 12.5px; color: var(--slate-400); font-weight: 600; transition: color 0.3s; }
    .stepper span.done { color: var(--slate-500); }
    .stepper span.on { color: var(--site-orange); }

    /* ===================== DÉMO 2 : téléphone ===================== */
    .duo { display: grid; grid-template-columns: minmax(280px, 375px) 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; justify-content: center; }
    .phone-wrap { display: flex; justify-content: center; }
    .phone {
      width: min(320px, 86vw); aspect-ratio: 320 / 750;
      background: #0a0d12; border-radius: 44px; padding: 9px; position: relative;
      box-shadow: 0 30px 70px -20px rgba(12, 33, 54, 0.45), inset 0 0 0 2px #2a2f36;
    }
    .phone .notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; background: #0a0d12; border-radius: 99px; z-index: 6; }
    .screen { background: #cfd6df; border-radius: 36px; overflow: hidden; height: 100%; display: flex; flex-direction: column; position: relative; font-family: var(--font-app); }
    .m-head { background: var(--navy); color: #fff; padding: 34px 16px 12px; display: flex; justify-content: space-between; align-items: center; flex: none; }
    .m-head img { height: 15px; }
    .m-head .ic { display: flex; gap: 12px; color: #c7d2de; }
    .m-head .ic svg { width: 15px; height: 15px; }

    .sheet {
      background: var(--slate-50); border-radius: 18px 18px 0 0; flex: 1; margin-top: 8px;
      display: flex; flex-direction: column; overflow: hidden; position: relative;
    }
    .sheet::before { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 36px; height: 4px; border-radius: 99px; background: var(--slate-300); }
    .sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 14px 8px; }
    .sheet-head .t { font-size: 16.5px; font-weight: 700; color: var(--slate-900); }
    .sheet-head .x { color: var(--slate-500); font-size: 16px; line-height: 1; }
    .sheet-body {
      padding: 0 12px 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0;
      overflow-y: auto; scrollbar-width: none;
    }
    .sheet-body::-webkit-scrollbar { display: none; }
    .sheet-body > * { flex: none; }
    .sheet-foot { flex: none; padding: 8px 12px 10px; border-top: 1px solid var(--slate-100); background: var(--slate-50); }
    .sheet-foot .m-btn { margin-top: 0; }

    /* adresse chantier : champ + bouton Zone, puis bloc zone calculée */
    .m-addr-row { display: flex; gap: 6px; }
    .m-input {
      flex: 1; min-width: 0; background: #fff; border: 1px solid var(--slate-200); border-radius: 11px;
      padding: 8px 10px; font-size: 12px; color: var(--slate-900); font-weight: 500; line-height: 1.3;
      transition: border-color 0.3s, box-shadow 0.3s;
    }
    .m-input .ph { color: var(--slate-400); font-weight: 400; font-size: 11px; }
    .m-input.filled { border-color: var(--brand-500); box-shadow: 0 0 0 2px var(--brand-100); }
    .m-zbtn { flex: none; align-self: stretch; display: grid; place-items: center; border: 1px solid var(--slate-200); border-radius: 11px; padding: 0 10px; font-size: 12px; font-weight: 600; color: var(--slate-600); background: #fff; }
    .m-zonebox {
      display: none; align-items: center; gap: 7px; background: var(--brand-50); border: 1px solid var(--brand-100);
      border-radius: 11px; padding: 7px 10px; font-size: 11.5px; color: var(--slate-600);
    }
    .m-zonebox.in { display: flex; animation: popin 0.4s var(--ease-out); }
    .m-zonebox .zb { background: var(--brand-500); color: #fff; font-weight: 700; font-size: 11px; border-radius: 7px; padding: 2px 7px; }
    .m-zonebox b { margin-left: auto; color: var(--brand-700); font-size: 13px; }
    @keyframes popin { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }

    /* répartition par chantier : sélecteur + liste + durée + postes */
    .rp-block { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 12px; padding: 9px; display: flex; flex-direction: column; gap: 8px; }
    .rp-pick { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--slate-200); border-radius: 9px; padding: 7px 10px; font-size: 12px; color: var(--slate-900); }
    .rp-pick .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .rp-pick .lbl em { font-style: normal; color: var(--slate-400); font-weight: 600; font-size: 10.5px; margin-right: 4px; }
    .rp-pick .chg { flex: none; font-size: 11px; font-weight: 700; color: var(--brand-600); cursor: pointer; }
    .rp-search { display: none; background: #fff; border: 1px solid var(--brand-500); border-radius: 9px; padding: 7px 10px; font-size: 12px; }
    .rp-search .ph { color: var(--slate-400); }
    .rp-list { display: none; background: #fff; border: 1px solid var(--slate-200); border-radius: 11px; box-shadow: 0 10px 24px -10px rgba(15,23,42,0.25); padding: 3px 0; }
    .rp-block.open .rp-pick { display: none; }
    .rp-block.open .rp-search, .rp-block.open .rp-list { display: block; animation: popin 0.3s var(--ease-out); }
    .rp-list .it { padding: 6px 10px; font-size: 12px; color: var(--slate-600); cursor: pointer; }
    .rp-list .it div { color: var(--slate-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .rp-list .it em { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--slate-400); margin-right: 3px; }
    .rp-list .it small { display: block; font-size: 10.5px; color: var(--slate-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .rp-list .it.hl { background: var(--brand-50); }
    .rp-dur { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--slate-500); }
    .rp-dur .box { background: #fff; border: 1px solid var(--slate-200); border-radius: 7px; padding: 3px 8px; font-weight: 600; color: var(--slate-900); min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
    .rp-dur .box.flash { animation: flash 0.8s var(--ease-out); }
    .rp-dur .fill { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--brand-600); visibility: hidden; }
    .rp-dur .fill.on { visibility: visible; }
    .rp-tasks { display: none; }
    .rp-tasks.in { display: block; animation: popin 0.35s var(--ease-out); }
    .rp-tasks .lab { font-size: 11px; color: var(--slate-500); margin-bottom: 5px; }
    .rp-tasks .chips { display: flex; flex-wrap: wrap; gap: 5px; }
    .tk { border: 1px solid var(--slate-200); background: #fff; color: var(--slate-600); border-radius: 8px; padding: 4px 8px; font-size: 11px; font-weight: 500; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
    .tk.on { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }

    .m-card { background: #fff; border: 1px solid var(--slate-100); border-radius: 12px; padding: 8px 12px; }
    .m-card .lab { font-size: 10.5px; color: var(--slate-400); }
    .m-card .val { font-size: 13.5px; font-weight: 600; color: var(--slate-900); }
    .m-times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .m-time { background: var(--slate-200); border-radius: 12px; padding: 7px 6px; text-align: center; transition: box-shadow 0.25s, background 0.25s; }
    .m-time .lab { font-size: 10.5px; color: var(--slate-500); }
    .m-time .val { font-size: 17px; font-weight: 700; color: var(--slate-900); font-variant-numeric: tabular-nums; }
    .m-time.tapped { background: #fff; box-shadow: 0 0 0 2px var(--brand-500); }
    .m-time .val.flash { animation: flash 0.8s var(--ease-out); }
    .m-hint { font-size: 10px; color: var(--slate-400); text-align: center; margin-top: -3px; }
    .m-addr { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
    .m-addr .val { font-size: 12.5px; }
    .tag.zone {
      background: var(--brand-500); color: #fff; border: 0; white-space: nowrap;
      font-weight: 700; opacity: 0; transform: scale(0.8);
      transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
    }
    .tag.zone.in { opacity: 1; transform: none; }
    .repart-row.sub { padding: 6px 12px 6px 22px; font-size: 11.5px; color: var(--slate-500); }
    .repart-row.sub .h { font-weight: 600; color: var(--slate-700); font-size: 11.5px; }
    .m-pause { display: flex; justify-content: space-between; align-items: center; }
    .m-pause .tag { font-size: 9.5px; background: var(--slate-100); color: var(--slate-500); padding: 3px 8px; border-radius: 99px; font-weight: 600; flex: none; }

    .m-amp {
      background: var(--emerald-50); border: 1px solid #a7f3d0; border-radius: 12px; padding: 8px 12px;
      opacity: 0.4; transition: opacity 0.4s;
    }
    .m-amp.on { opacity: 1; }
    .m-amp .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--slate-700); padding: 1.5px 0; }
    .m-amp .row .r { font-variant-numeric: tabular-nums; }
    .m-amp .row.total { border-top: 1px solid #a7f3d0; margin-top: 3px; padding-top: 4px; font-weight: 700; color: var(--slate-900); }
    .m-amp .row.total .r { color: #059669; font-size: 15px; font-weight: 800; }

    .m-sec { font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate-400); margin: 2px 2px 0; }
    .chips2 { display: flex; gap: 8px; }
    .chip2 {
      flex: 1; text-align: center; border: 1px solid var(--slate-200); background: #fff;
      border-radius: 10px; padding: 7px 6px; font-size: 12px; font-weight: 600; color: var(--slate-700);
      transition: background 0.25s, border-color 0.25s, color 0.25s;
    }
    .chip2 em { font-style: normal; font-weight: 400; font-size: 10.5px; display: none; }
    .chip2.on { background: #f0fdf4; border-color: #86efac; color: #15803d; }
    .chip2.on em { display: inline; }

    .repart { display: flex; justify-content: space-between; align-items: center; }
    .repart .rest { font-size: 11px; font-weight: 700; color: var(--brand-600); }
    .repart .rest.ok { color: #059669; }
    .repart-row {
      display: flex; justify-content: space-between; align-items: center;
      background: #fff; border: 1px solid var(--slate-100); border-radius: 12px; padding: 8px 12px;
      font-size: 12.5px; opacity: 0; transform: translateY(6px);
      transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
    }
    .repart-row.in { opacity: 1; transform: none; }
    .repart-row .h { font-weight: 700; color: var(--slate-900); font-variant-numeric: tabular-nums; }

    .m-btn {
      margin-top: auto; background: var(--brand-500); color: #fff; text-align: center;
      font-weight: 700; font-size: 14px; border-radius: 12px; padding: 12px;
      transition: transform 0.15s, filter 0.15s;
    }
    .m-btn.pressed { transform: scale(0.97); filter: brightness(0.92); }

    .m-nav {
      flex: none; background: #fff; border-top: 1px solid var(--slate-100);
      display: grid; grid-template-columns: repeat(6, 1fr); padding: 7px 4px 14px;
    }
    .m-nav .it { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 7.5px; color: var(--slate-400); white-space: nowrap; }
    .m-nav .it svg { width: 16px; height: 16px; }
    .m-nav .it.on { color: #1d89c2; font-weight: 600; }
    .mic {
      position: absolute; right: 12px; bottom: 66px; width: 42px; height: 42px; border-radius: 99px;
      background: var(--navy); color: #fff; display: grid; place-items: center; z-index: 5;
      box-shadow: 0 8px 20px -6px rgba(12, 33, 54, 0.5);
    }
    .mic svg { width: 17px; height: 17px; }
    .m-toast {
      position: absolute; left: 12px; right: 12px; bottom: 70px; z-index: 7;
      background: var(--navy); color: #fff; border-radius: 12px; padding: 11px 13px;
      font-size: 12.5px; font-weight: 600; display: flex; gap: 8px; align-items: center;
      opacity: 0; transform: translateY(8px); pointer-events: none;
      transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
    }
    .m-toast.show { opacity: 1; transform: none; }
    .m-toast .dot { width: 8px; height: 8px; border-radius: 99px; background: #5fd693; flex: none; }
    .tapdot {
      position: absolute; width: 36px; height: 36px; border-radius: 99px;
      background: rgba(53, 51, 205, 0.35); border: 2px solid rgba(53, 51, 205, 0.7);
      transform: translate(-50%, -50%) scale(0.4); opacity: 0; pointer-events: none; z-index: 8;
    }
    .tapdot.go { animation: ring 0.55s var(--ease-out); }

    /* côté bureau : écran Équipe › Heures (reproduction de /timesheets) */
    .bureau h3 { font-family: 'Montserrat', sans-serif; font-size: 1.25rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; letter-spacing: -0.01em; }
    .bureau p.note { color: var(--slate-600); font-size: 1rem; line-height: 1.6; margin-bottom: 20px; max-width: 48ch; }
    .bureau-stack { position: relative; max-width: 430px; width: 100%; }
    .bureau-card {
      background: var(--slate-50); border: 1px solid var(--slate-100); border-radius: 16px; padding: 16px 18px;
      box-shadow: 0 14px 40px -16px rgba(12, 33, 54, 0.25); font-family: var(--font-app);
    }
    .ts-seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--slate-100); border-radius: 14px; padding: 3px; margin-bottom: 12px; }
    .ts-seg span { text-align: center; padding: 7px 4px; font-size: 12.5px; font-weight: 600; color: var(--slate-500); border-radius: 11px; }
    .ts-seg span.on { background: #fff; color: var(--slate-900); box-shadow: 0 1px 2px rgba(0,0,0,0.06); font-weight: 700; }
    .ts-toprow { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
    .ts-sup { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-400); }
    .ts-sup em { font-style: normal; color: var(--brand-500); }
    .ts-range { font-size: 13px; font-weight: 600; color: var(--slate-700); margin-top: 1px; }
    .ts-nav { display: flex; gap: 5px; align-items: center; }
    .ts-chev { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--slate-200); background: #fff; border-radius: 10px; color: var(--slate-600); font-size: 15px; }
    .ts-export {
      display: flex; align-items: center; gap: 5px; border: 1px solid var(--slate-200); background: #fff;
      border-radius: 10px; padding: 0 10px; height: 30px; font-size: 11.5px; font-weight: 700; color: var(--slate-600);
      box-shadow: 0 1px 2px rgba(0,0,0,0.04); font-family: inherit; cursor: pointer;
    }
    .ts-export svg { width: 13px; height: 13px; }
    .ts-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 10px; }
    .ts-days .d { border-radius: 10px; padding: 6px 0 5px; text-align: center; background: #fff; border: 1px solid var(--slate-100); color: var(--slate-400); }
    .ts-days .d span { display: block; font-size: 9px; }
    .ts-days .d b { display: block; font-size: 10.5px; margin-top: 1px; font-variant-numeric: tabular-nums; color: var(--slate-300); font-weight: 700; }
    .ts-days .d.today { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
    .ts-days .d.today b { color: #fff; }
    .ts-total {
      display: flex; justify-content: space-between; align-items: center; background: #fff;
      border: 1px solid var(--slate-100); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px;
      font-size: 12.5px; color: var(--slate-500);
    }
    .ts-total b { font-size: 16px; color: var(--slate-900); font-variant-numeric: tabular-nums; }
    .ts-total b.flash { animation: flash 0.8s var(--ease-out); }
    .ts-memb-h { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-400); margin: 0 2px 6px; }
    .ts-list { list-style: none; background: #fff; border: 1px solid var(--slate-100); border-radius: 14px; overflow: hidden; margin: 0; padding: 0; }
    .ts-list li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--slate-100); font-size: 13px; transition: background 0.4s; }
    .ts-list li:first-child { border-top: 0; }
    .ts-list li.hl { background: var(--brand-50); }
    .ts-list .av { width: 30px; height: 30px; border-radius: 99px; object-fit: cover; background: var(--slate-200); flex: none; }
    .ts-list .n { font-weight: 600; color: var(--slate-900); flex: 1; text-align: left; }
    .ts-list b { font-variant-numeric: tabular-nums; font-size: 12.5px; }
    .ts-list b.amber { color: #f59e0b; }
    .ts-list b.red { color: #f87171; }
    .ts-list b.flash { animation: flash 0.8s var(--ease-out); }
    .ts-list i { color: var(--slate-300); font-style: normal; }

    /* panneau « Exporter feuille d'heures » (reproduction du bottom sheet réel) */
    .ts-sheet {
      position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
      background: #fff; border: 1px solid var(--slate-100); border-radius: 16px; padding: 14px 16px 16px;
      box-shadow: 0 24px 60px -18px rgba(12, 33, 54, 0.45);
      display: flex; flex-direction: column; gap: 8px; font-family: var(--font-app);
      opacity: 0; transform: translateY(16px); pointer-events: none;
      transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
    }
    .ts-sheet.in { opacity: 1; transform: none; pointer-events: auto; }
    .ts-sheet .head { display: flex; justify-content: space-between; align-items: center; }
    .ts-sheet .head .t { font-size: 14.5px; font-weight: 700; color: var(--slate-900); }
    .ts-sheet .head .x { color: var(--slate-400); font-size: 15px; line-height: 1; }
    .ts-lab { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate-400); display: flex; justify-content: space-between; margin: 2px 2px 0; }
    .ts-lab .links { display: flex; gap: 10px; text-transform: none; letter-spacing: 0; }
    .ts-lab .links em { font-style: normal; font-size: 11px; font-weight: 700; }
    .ts-lab .links em.a { color: var(--brand-600); }
    .ts-lab .links em.b { color: var(--slate-400); }
    .ts-emp { border: 1px solid var(--slate-200); border-radius: 12px; overflow: hidden; }
    .ts-emp label { display: flex; gap: 9px; align-items: center; padding: 7px 11px; border-top: 1px solid var(--slate-100); font-size: 12.5px; font-weight: 500; color: var(--slate-800); }
    .ts-emp label:first-child { border-top: 0; }
    .cb { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--slate-300); flex: none; position: relative; }
    .cb.on { background: var(--brand-500); border-color: var(--brand-500); }
    .cb.on::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 800; }
    .ts-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .ts-date { background: var(--slate-50); border: 1px solid var(--slate-100); border-radius: 10px; padding: 7px 10px; font-size: 12.5px; font-weight: 600; color: var(--slate-800); font-variant-numeric: tabular-nums; margin-top: 3px; }
    .ts-preview { background: var(--brand-50); color: var(--brand-700); border-radius: 10px; padding: 7px 10px; font-size: 11.5px; }
    .ts-select { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--slate-200); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; font-weight: 600; color: var(--slate-800); background: #fff; }
    .ts-select i { color: var(--slate-400); font-style: normal; font-size: 10px; }
    .ts-select.flash { animation: flash 0.8s var(--ease-out); }
    .ts-help { font-size: 10.5px; color: var(--slate-500); margin: -3px 2px 0; }
    .ts-dl {
      margin-top: 2px; display: flex; gap: 7px; align-items: center; justify-content: center;
      background: var(--brand-500); color: #fff; border: 0; border-radius: 14px; min-height: 44px;
      font-weight: 700; font-size: 13px; font-family: inherit; cursor: pointer;
      transition: transform 0.15s, filter 0.15s;
    }
    .ts-dl.pressed { transform: scale(0.97); filter: brightness(0.92); }
    .ts-dl svg { width: 15px; height: 15px; }
    .ts-dl .spin { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff; border-radius: 99px; animation: tsspin 0.7s linear infinite; }
    @keyframes tsspin { to { transform: rotate(1turn); } }
    .dl-chip {
      margin: 12px auto 0; width: fit-content; display: flex; gap: 7px; align-items: center;
      background: #fff; border: 1px solid var(--slate-200); border-radius: 99px; padding: 8px 14px;
      font-family: var(--font-app); font-size: 11.5px; font-weight: 600; color: var(--slate-800);
      box-shadow: 0 8px 24px -10px rgba(12, 33, 54, 0.35);
      opacity: 0; transform: translateY(8px);
      transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
    }
    .dl-chip.in { opacity: 1; transform: none; }
    .dl-chip .ext { font-size: 8.5px; padding: 2px 5px; }

    /* ===================== DÉMO 3 : PLANNING (reproduction de PlanningGrid) ===================== */
    .pl-wrap { max-width: 900px; margin: 0 auto; position: relative; }
    .pl-tools { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
    .pl-tool {
      display: flex; align-items: center; gap: 5px; border: 1px solid var(--slate-200); background: #fff;
      border-radius: 11px; padding: 6px 11px; font-size: 11.5px; font-weight: 600; color: var(--slate-600);
      box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    }
    .pl-tool svg { width: 13px; height: 13px; }
    .pl-grid { background: #fff; border-radius: 16px; box-shadow: 0 1px 3px rgba(15,23,42,0.06); overflow: hidden; }
    .pl-head { border-bottom: 1px solid var(--slate-100); padding: 11px 16px; display: flex; flex-direction: column; gap: 9px; }
    .pl-r1 { display: flex; justify-content: space-between; align-items: center; }
    .pl-nav { display: flex; align-items: center; gap: 12px; }
    .pl-nav .ch { color: var(--slate-400); font-size: 16px; }
    .pl-nav .t { font-size: 14px; font-weight: 700; color: var(--slate-900); text-align: center; }
    .pl-nav .r { font-size: 11px; color: var(--slate-400); text-align: center; }
    .pl-add { background: var(--brand-500); color: #fff; border-radius: 11px; padding: 6px 12px; font-size: 12px; font-weight: 600; cursor: pointer; }
    .pl-r2 { display: flex; align-items: center; gap: 14px; }
    .pl-seg { display: flex; border: 1px solid var(--slate-200); background: var(--slate-50); border-radius: 11px; padding: 2px; }
    .pl-seg span { border-radius: 9px; padding: 3px 14px; font-size: 11.5px; font-weight: 600; color: var(--slate-400); }
    .pl-seg span.on { background: #fff; color: var(--slate-900); box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
    .pl-sat { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--slate-500); }
    .pl-sat i { width: 12px; height: 12px; border: 1.5px solid var(--slate-300); border-radius: 3px; display: inline-block; }
    .pl-scroll { overflow-x: auto; scrollbar-width: none; }
    .pl-scroll::-webkit-scrollbar { display: none; }
    .pl-table { display: grid; grid-template-columns: 78px repeat(6, minmax(0, 1fr)); min-width: 560px; }
    .pl-dh { text-align: center; padding: 8px 2px 6px; }
    .pl-dh span { display: block; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--slate-400); }
    .pl-dh b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 99px; font-size: 13px; color: var(--slate-700); margin-top: 2px; }
    .pl-dh b.today { background: #1d89c2; color: #fff; }
    .pl-dh.blk span, .pl-dh.blk b { color: var(--slate-300); }
    .pl-bl { grid-column: 1; }
    .pl-band {
      grid-column: 2 / 8; margin: 0 4px 4px; height: 20px; border-radius: 6px; padding: 0 7px;
      display: flex; align-items: center; justify-content: space-between; gap: 6px;
      font-size: 10px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; cursor: pointer;
    }
    .pl-band span { overflow: hidden; text-overflow: ellipsis; }
    .pl-mem { border-top: 1px solid var(--slate-100); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 2px; background: #fff; position: sticky; left: 0; z-index: 1; }
    .pl-mem img { width: 30px; height: 30px; border-radius: 99px; object-fit: cover; border: 2px solid #fff; }
    .pl-mem span { font-size: 9.5px; font-weight: 600; color: var(--slate-600); white-space: nowrap; }
    .pl-cell { border-top: 1px solid var(--slate-100); border-left: 1px solid var(--slate-100); padding: 4px; min-height: 84px; display: flex; flex-direction: column; gap: 4px; transition: background 0.25s, box-shadow 0.25s; }
    .pl-cell.blk { background: rgba(248, 250, 252, 0.7); }
    .pl-cell .dot { margin: auto; color: var(--slate-200); font-size: 16px; line-height: 1; }
    .pl-cell.drop { background: var(--brand-50); box-shadow: inset 0 0 0 2px #fdba74; }
    .pl-ev {
      border-radius: 10px; padding: 5px 6px 5px 7px; min-width: 0; cursor: pointer;
      transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), opacity 0.3s;
    }
    .pl-ev p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
    .pl-ev .t { font-size: 10.5px; font-weight: 700; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    .pl-ev .c { font-size: 9.5px; opacity: 0.85; }
    .pl-ev .h { font-size: 9.5px; opacity: 0.7; font-variant-numeric: tabular-nums; }
    .pl-ev .p { font-size: 9.5px; opacity: 0.55; }
    .pl-ev .av { display: flex; margin-top: 3px; }
    .pl-ev .av img { width: 16px; height: 16px; border-radius: 99px; object-fit: cover; box-shadow: 0 0 0 1.5px #fff; margin-right: -3px; }
    .pl-ev.lift { transform: rotate(2deg) scale(1.04); box-shadow: 0 10px 22px -8px rgba(15,23,42,0.4); opacity: 0.85; }
    .pl-ev.fresh { animation: evin 0.7s var(--ease-out); }
    @keyframes evin { 0% { opacity: 0; transform: scale(0.85); } 60% { opacity: 1; transform: scale(1.04); box-shadow: 0 0 0 3px var(--brand-200); } 100% { transform: none; box-shadow: none; } }
    .pl-abs { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 10px; background: var(--slate-50); border: 1px dashed var(--slate-200); }
    .pl-abs b { font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-400); }
    .pl-abs span { font-size: 9px; color: var(--slate-300); }
    .pl-foot { border-top: 1px solid var(--slate-100); padding: 9px 16px; font-size: 11.5px; color: var(--slate-400); }

    .pl-seg span { cursor: pointer; }
    .pl-nm { display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--slate-500); }
    .pl-nm[hidden] { display: none; }
    .pl-nm b { font-weight: 600; font-size: 11px; border: 1px solid var(--slate-200); border-radius: 7px; padding: 1px 7px; color: var(--slate-500); background: #fff; }
    .pl-nm b.on { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }

    /* vue Mois (grille 7 colonnes, bandeaux chantier par semaine, 3 événements max par jour) */
    .pm { animation: popin 0.4s var(--ease-out); }
    .pm-dh { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--slate-50); border-bottom: 1px solid var(--slate-100); }
    .pm-dh span { text-align: center; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-400); padding: 6px 0; }
    .pm-dh span.we { color: var(--slate-300); }
    .pm-bands { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px 0; padding: 3px 0; background: rgba(248, 250, 252, 0.6); border-bottom: 1px solid var(--slate-100); }
    .pm-band { height: 15px; border-radius: 5px; margin: 0 3px; padding: 0 6px; font-size: 9px; font-weight: 600; color: #fff; display: flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; }
    .pm-band span { overflow: hidden; text-overflow: ellipsis; }
    .pm-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .pm-cell { min-height: 92px; border-right: 1px solid var(--slate-100); border-bottom: 1px solid var(--slate-100); padding: 5px; min-width: 0; }
    .pm-cell:nth-child(7n) { border-right: 0; }
    .pm-cell.out { opacity: 0.35; }
    .pm-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: var(--slate-700); margin-bottom: 3px; }
    .pm-n.today { background: var(--brand-500); color: #fff; }
    .pm-ev { border-radius: 7px; padding: 3px 5px 3px 6px; margin-bottom: 3px; min-width: 0; }
    .pm-ev p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
    .pm-ev .t { font-size: 10px; font-weight: 600; }
    .pm-ev .c { font-size: 9px; opacity: 0.8; }
    .pm-ev .h { display: flex; justify-content: space-between; align-items: center; gap: 3px; font-size: 9px; opacity: 0.75; font-variant-numeric: tabular-nums; }
    .pm-ev .h .av { display: flex; flex: none; }
    .pm-ev .h .av img { width: 13px; height: 13px; border-radius: 99px; object-fit: cover; box-shadow: 0 0 0 1.2px #fff; margin-left: -3px; }
    .pm-ev.fresh { animation: evin 0.7s var(--ease-out); }
    .pm-ev.hl { box-shadow: 0 0 0 2px var(--brand-200); }
    .pm-more { display: inline-block; font-size: 10px; font-weight: 600; color: var(--brand-500); cursor: pointer; border-radius: 5px; padding: 0 3px; }

    /* popup d'un événement */
    .pl-pop {
      position: absolute; z-index: 6; width: 264px; background: #fff; border: 1px solid var(--slate-100);
      border-radius: 16px; box-shadow: 0 22px 50px -14px rgba(15,23,42,0.35); padding: 13px 14px 12px;
      opacity: 0; transform: translateY(6px) scale(0.97); pointer-events: none;
      transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
    }
    .pl-pop.in { opacity: 1; transform: none; pointer-events: auto; }
    .pp-h { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
    .pp-h i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
    .pp-h b { font-size: 13.5px; color: var(--slate-900); flex: 1; }
    .pp-h span { color: var(--slate-400); font-size: 13px; }
    .pp-l { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; color: var(--slate-700); padding: 4px 0; }
    .pp-l svg { width: 14px; height: 14px; color: var(--slate-400); flex: none; margin-top: 1px; }
    .pp-l a { color: var(--brand-600); text-decoration: underline; }
    .pp-l small { display: block; color: var(--slate-500); font-size: 11.5px; }
    .pp-docs { display: flex; flex-direction: column; gap: 4px; }
    .pp-doc { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--slate-800); font-weight: 500; }
    .pp-doc .ext { font-size: 8px; padding: 2px 4px; }
    .pp-act { display: flex; gap: 12px; align-items: center; font-size: 11.5px; font-weight: 600; color: var(--slate-600); border-top: 1px solid var(--slate-100); margin-top: 7px; padding-top: 8px; }
    .pp-act .del { margin-left: auto; color: #f87171; }
    .pp-feed { margin-top: 8px; background: var(--brand-50); color: var(--brand-700); border-radius: 11px; padding: 8px; text-align: center; font-size: 12px; font-weight: 600; }

    /* Gantt jour par jour (reproduction de GanttChart : 1 colonne = 1 jour) */
    .pg-tools { display: flex; justify-content: flex-end; margin-bottom: 10px; }
    .pg { border: 1px solid var(--slate-100); border-radius: 12px; overflow: hidden; }
    .pg-months { background: var(--slate-50); font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--slate-500); padding: 5px 8px; border-bottom: 1px solid var(--slate-100); }
    .pg-days { display: grid; grid-template-columns: repeat(19, 1fr); border-bottom: 1px solid var(--slate-100); }
    .pg-days span { text-align: center; font-size: 9px; color: var(--slate-500); padding: 4px 0; }
    .pg-days span.we { background: var(--slate-50); color: var(--slate-300); }
    .pg-body { position: relative; }
    .pg-we { position: absolute; top: 0; bottom: 0; background: var(--slate-50); width: calc(100% / 19); }
    .pg-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--brand-500); left: calc(100% / 38); z-index: 2; }
    .pg-row { position: relative; height: 38px; border-bottom: 1px solid var(--slate-100); }
    .pg-row:last-child { border-bottom: 0; }
    .pg-bar {
      position: absolute; top: 7px; height: 24px; border-radius: 8px; border: 1.5px solid #94a3b8;
      background: #e2e8f0; color: #475569; font-size: 10px; font-weight: 600; padding: 0 7px;
      display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; z-index: 1;
      transition: left 0.9s var(--ease-out);
    }
    .pg-bar.moved { animation: barflash 1.2s var(--ease-out); }
    @keyframes barflash { 0%, 100% { box-shadow: none; } 40% { box-shadow: 0 0 0 4px var(--brand-200); } }
    .pg-ghost { position: absolute; top: 7px; height: 24px; border-radius: 8px; border: 1.5px dashed var(--slate-300); opacity: 0; transition: opacity 0.4s; }
    .pg-ghost.in { opacity: 1; }
    .pt-list { background: #fff; border: 1px solid var(--slate-100); border-radius: 16px; overflow: hidden; }
    .pt-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 0; border-top: 1px solid var(--slate-100); }
    .pt-row:first-child { border-top: 0; }
    .pt-row .bar { width: 4px; align-self: stretch; border-radius: 0 3px 3px 0; flex: none; }
    .pt-row .tx { flex: 1; min-width: 0; }
    .pt-row .tt { font-size: 13px; font-weight: 600; color: var(--slate-900); }
    .pt-row .sd { font-size: 11.5px; color: var(--slate-500); margin-top: 1px; }
    .pt-row .sd.flash { animation: flash 0.9s var(--ease-out); }
    .pt-row .avs { display: flex; }
    .pt-row .avs img { width: 22px; height: 22px; border-radius: 99px; object-fit: cover; box-shadow: 0 0 0 2px #fff; margin-left: -5px; }
    .pt-row i { color: var(--slate-300); font-style: normal; }

    /* formulaire « Nouvel événement » */
    .pn-sec { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate-400); margin-bottom: 10px; }
    .pn-f { margin-bottom: 10px; }
    .pn-f:last-child { margin-bottom: 0; }
    .finput.filled { border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-100); }
    .pn-help { font-size: 11.5px; color: var(--slate-400); margin-top: 6px; }
    .pn-import { display: flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px dashed var(--slate-300); border-radius: 12px; padding: 10px; font-size: 13px; font-weight: 600; color: var(--slate-600); cursor: pointer; }
    .pn-import svg { width: 15px; height: 15px; }
    .pn-files { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
    .pn-files li { display: flex; align-items: center; gap: 8px; border: 1px solid var(--slate-100); border-radius: 10px; padding: 7px 10px; font-size: 12.5px; color: var(--slate-800); animation: popin 0.35s var(--ease-out); }
    .pn-files li .ext { font-size: 8.5px; padding: 2px 5px; }
    .pn-files li .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .pn-files li .rm { font-size: 11.5px; font-weight: 600; color: var(--slate-400); }
    .pn-times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .pn-mem { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--slate-100); }
    .pn-mem:first-of-type { border-top: 0; }
    .pn-mem img { width: 30px; height: 30px; border-radius: 99px; object-fit: cover; }
    .pn-mem .nm { flex: 1; font-size: 13px; font-weight: 500; color: var(--slate-900); }
    .pn-mem .warn { display: none; font-size: 11.5px; font-weight: 600; color: #d97706; margin-top: 1px; }
    .pn-mem.absent .warn { display: block; }
    .pn-ck { width: 20px; height: 20px; border-radius: 99px; border: 1.5px solid var(--slate-300); flex: none; position: relative; transition: background 0.2s, border-color 0.2s; }
    .pn-ck.on { background: var(--brand-500); border-color: var(--brand-500); }
    .pn-ck.on::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 800; }
    .pn-cnt { font-size: 11.5px; color: var(--slate-500); text-transform: none; letter-spacing: 0; font-weight: 500; }
    .pn-conflict { display: none; border: 1px solid #fde68a; background: var(--amber-50); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
    .pn-conflict.in { display: block; animation: popin 0.35s var(--ease-out); }
    .pn-conflict b { display: block; font-size: 13px; color: #b45309; margin-bottom: 3px; }
    .pn-conflict span { font-size: 12px; color: #92400e; }
    .pn-submit { background: var(--brand-500); color: #fff; border-radius: 12px; min-height: 48px; display: grid; place-items: center; font-size: 14.5px; font-weight: 700; cursor: pointer; transition: transform 0.15s, filter 0.15s; }
    .pn-submit.pressed { transform: scale(0.98); filter: brightness(0.92); }

    /* ===================== DÉMO INTERVENTIONS (mobile : reports/*) ===================== */
    .iv-body { position: relative; flex: 1; min-height: 0; background: var(--slate-50); }
    .iv-scr {
      position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; padding: 12px 12px 18px;
      opacity: 0; transform: translateX(16px); pointer-events: none;
      transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
    }
    .iv-scr::-webkit-scrollbar { display: none; }
    .iv-scr.on { opacity: 1; transform: none; pointer-events: auto; }
    .iv-ph { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
    .iv-ph .tt { display: flex; gap: 8px; align-items: center; }
    .iv-ph .bar { width: 3px; height: 22px; border-radius: 9px; background: #1d89c2; }
    .iv-ph b { display: block; font-size: 17px; font-weight: 700; color: var(--slate-900); letter-spacing: -0.01em; line-height: 1.1; }
    .iv-ph small { font-size: 10.5px; color: var(--slate-500); }
    .iv-new { background: var(--brand-500); color: #fff; border-radius: 10px; padding: 6px 10px; font-size: 11.5px; font-weight: 600; cursor: pointer; }
    .iv-filter { background: #fff; border: 1px solid var(--slate-100); border-radius: 14px; padding: 8px 10px; margin-bottom: 8px; }
    .iv-filter .l { font-size: 10px; color: var(--slate-400); margin-bottom: 4px; }
    .iv-filter .r { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--slate-400); }
    .iv-filter .r span { flex: 1; border: 1px solid var(--slate-200); border-radius: 8px; padding: 4px 6px; }
    .iv-selbar { display: flex; justify-content: space-between; font-size: 10px; color: var(--slate-400); margin: 0 2px 6px; }
    .iv-selbar b { font-weight: 500; color: var(--slate-500); }
    .iv-item { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--slate-100); border-radius: 14px; padding: 9px 10px; margin-bottom: 6px; }
    .iv-item .cb { width: 15px; height: 15px; border: 1.5px solid var(--slate-300); border-radius: 4px; flex: none; }
    .iv-item .tx { flex: 1; min-width: 0; }
    .iv-item .n { font-size: 12px; font-weight: 600; color: var(--slate-900); }
    .iv-item .d { font-size: 10px; color: var(--slate-500); }
    .iv-item .c { font-size: 10px; color: var(--slate-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .iv-st { border-radius: 99px; border: 1px solid; font-size: 9.5px; font-weight: 500; padding: 1px 7px; flex: none; }
    .iv-st.sg { background: var(--emerald-50); color: var(--emerald-700); border-color: #a7f3d0; }
    .iv-st.dr { background: var(--slate-50); color: var(--slate-500); border-color: var(--slate-200); }
    .iv-back { font-size: 11.5px; font-weight: 500; color: var(--brand-600); margin-bottom: 2px; }
    .iv-h1 { font-size: 16px; font-weight: 700; color: var(--slate-900); margin-bottom: 10px; }
    .iv-card { background: #fff; border: 1px solid var(--slate-100); border-radius: 14px; padding: 10px 11px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 7px; }
    .iv-sec { font-size: 9.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate-400); }
    .iv-lab { font-size: 11px; font-weight: 500; color: var(--slate-700); margin-bottom: 3px; }
    .iv-in { border: 1px solid var(--slate-200); border-radius: 10px; padding: 6px 9px; font-size: 11.5px; color: var(--slate-900); min-height: 30px; line-height: 1.4; background: #fff; transition: border-color 0.3s, box-shadow 0.3s; }
    .iv-in .ph { color: var(--slate-400); }
    .iv-in.filled { border-color: var(--brand-500); box-shadow: 0 0 0 2px var(--brand-100); }
    .iv-in.sel { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
    .iv-in.sel i { font-style: normal; font-size: 9px; color: var(--slate-400); }
    .iv-in.area { min-height: 62px; }
    .iv-help { font-size: 9.5px; color: var(--slate-400); margin-top: 2px; }
    .iv-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .iv-dd { display: none; background: #fff; border: 1px solid var(--slate-200); border-radius: 10px; box-shadow: 0 10px 24px -10px rgba(15,23,42,0.25); padding: 3px 0; }
    .iv-dd.open { display: block; animation: popin 0.3s var(--ease-out); }
    .iv-dd div { padding: 6px 10px; font-size: 11.5px; color: var(--slate-700); cursor: pointer; }
    .iv-dd div em { font-style: normal; font-size: 10px; font-weight: 700; color: var(--slate-400); margin-right: 3px; }
    .iv-dd div.hl { background: var(--brand-50); }
    .iv-mat { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--slate-800); padding: 2px 0; animation: popin 0.35s var(--ease-out); }
    .iv-mat b { font-weight: 700; }
    .iv-mat i { font-style: normal; color: var(--slate-300); margin-left: 8px; }
    .iv-phh { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--slate-700); margin: 4px 2px 6px; }
    .iv-phh span { font-weight: 400; color: var(--slate-400); font-size: 10px; }
    .iv-photos { display: flex; gap: 6px; margin-bottom: 10px; }
    .iv-thumb { width: 52px; height: 52px; border-radius: 10px; flex: none; background-size: cover; animation: popin 0.35s var(--ease-out); }
    .iv-tile { width: 52px; height: 52px; border-radius: 10px; flex: none; border: 1.5px dashed var(--slate-300); display: grid; place-items: center; text-align: center; font-size: 8.5px; color: var(--slate-500); line-height: 1.2; }
    .iv-sign { border: 1.5px dashed var(--slate-300); border-radius: 14px; min-height: 66px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11.5px; color: var(--slate-400); background: #fff; cursor: pointer; margin-bottom: 10px; }
    .iv-sign.ok { border: 1px solid #bbf7d0; background: #f0fdf4; color: #15803d; flex-direction: column; gap: 0; font-weight: 600; }
    .iv-sign.ok svg { width: 110px; height: 36px; }
    .iv-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .iv-btns span { min-height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 12.5px; font-weight: 600; }
    .iv-btns .b1 { border: 1px solid var(--slate-200); background: #fff; color: var(--slate-700); }
    .iv-btns .b2 { background: var(--brand-500); color: #fff; }
    /* signature plein écran */
    .iv-sig { position: absolute; inset: 0; z-index: 9; background: #fff; display: flex; flex-direction: column; padding: 38px 14px 14px; opacity: 0; pointer-events: none; transform: translateY(14px); transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out); }
    .iv-sig.in { opacity: 1; pointer-events: auto; transform: none; }
    .iv-sig .hd { display: flex; justify-content: space-between; align-items: flex-start; }
    .iv-sig .hd b { font-size: 14px; color: var(--slate-900); display: block; }
    .iv-sig .hd small { font-size: 11px; color: var(--slate-500); }
    .iv-sig .hd span { color: var(--slate-400); }
    .iv-pad { position: relative; flex: 1; }
    .iv-pad .guide { position: absolute; left: 22px; right: 22px; bottom: 60px; border-top: 1.5px dashed var(--slate-200); }
    .iv-pad .ghost { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--slate-300); transition: opacity 0.3s; }
    .iv-pad svg { position: absolute; left: 20px; right: 20px; bottom: 58px; width: calc(100% - 40px); height: 110px; }
    .iv-pad path { fill: none; stroke: #1e293b; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
    .iv-sig .ok { background: var(--brand-500); color: #fff; border-radius: 12px; padding: 11px; text-align: center; font-size: 13px; font-weight: 600; cursor: pointer; }
    .iv-sig .row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
    .iv-sig .row span { border: 1px solid var(--slate-200); border-radius: 12px; padding: 9px; text-align: center; font-size: 12px; font-weight: 600; color: var(--slate-600); }
    /* fiche détail */
    .iv-dh { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
    .iv-dh .h { font-size: 16px; font-weight: 700; color: var(--slate-900); line-height: 1.2; }
    .iv-dh .c { font-size: 11.5px; color: var(--slate-500); margin-top: 1px; }
    .iv-badge { border-radius: 99px; font-size: 10px; font-weight: 600; padding: 2px 8px; flex: none; background: #dcfce7; color: #15803d; }
    .iv-acts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; margin: 10px 0; }
    .iv-acts span { border-radius: 10px; padding: 8px 2px; text-align: center; font-size: 10.5px; font-weight: 600; border: 1px solid var(--slate-200); color: var(--slate-700); background: #fff; white-space: nowrap; transition: transform 0.15s; }
    .iv-acts span.dl { border-color: var(--brand-200); background: var(--brand-50); color: var(--brand-700); cursor: pointer; }
    .iv-acts span.pressed { transform: scale(0.96); }
    .iv-dc { background: #fff; border: 1px solid var(--slate-200); border-radius: 12px; padding: 9px 11px; margin-bottom: 7px; font-size: 11.5px; color: var(--slate-700); display: flex; flex-direction: column; gap: 3px; }
    .iv-dc .s { font-size: 9.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate-400); margin-bottom: 2px; }
    .iv-dc a { color: var(--brand-600); }
    .iv-dc .ok { color: #15803d; font-weight: 500; }
    .iv-dc .sigimg { border: 1px solid #bbf7d0; background: #f0fdf4; border-radius: 10px; display: grid; place-items: center; padding: 4px; }
    .iv-dc .sigimg svg { width: 130px; height: 42px; }
    .iv-dc .sigimg path, .iv-sign.ok path, .ivp-sig path { fill: none; stroke: #1e293b; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
    /* fenêtre « Ajouter à votre feuille d'heures ? » */
    .iv-modal { position: absolute; inset: 0; z-index: 8; background: rgba(15,23,42,0.45); display: grid; place-items: center; padding: 18px; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
    .iv-modal.in { opacity: 1; pointer-events: auto; }
    .iv-modal .box { background: #fff; border-radius: 16px; padding: 14px; width: 100%; }
    .iv-modal b { display: block; font-size: 13.5px; color: var(--slate-900); margin-bottom: 4px; }
    .iv-modal p { font-size: 11.5px; color: var(--slate-500); margin-bottom: 12px; }
    .iv-modal .bt { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .iv-modal .bt span { border-radius: 10px; padding: 9px; text-align: center; font-size: 12px; font-weight: 600; }
    .iv-modal .bt .no { border: 1px solid var(--slate-200); color: var(--slate-600); }
    .iv-modal .bt .yes { background: var(--brand-500); color: #fff; cursor: pointer; }
    /* côté bureau : feed du chantier + fiche PDF */
    .iv-side { display: flex; flex-direction: column; gap: 14px; max-width: 470px; width: 100%; }
    .iv-feed { background: #fff; border: 1px solid var(--slate-100); border-radius: 16px; box-shadow: 0 14px 40px -16px rgba(12,33,54,0.25); font-family: var(--font-app); overflow: hidden; }
    .iv-feed .hd { padding: 11px 14px 0; }
    .iv-feed .hd b { font-size: 13.5px; color: var(--slate-900); }
    .iv-feed .tabs { margin: 6px 0 0; gap: 12px; }
    .iv-feed .tabs span { font-size: 11.5px; }
    .iv-feed .bd { background: var(--slate-50); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
    .iv-day { align-self: center; font-size: 10px; font-weight: 600; color: var(--slate-400); background: #fff; border: 1px solid var(--slate-100); border-radius: 99px; padding: 1px 9px; }
    .iv-msg { align-self: flex-start; max-width: 82%; background: #fff; border: 1px solid var(--slate-100); border-radius: 14px; padding: 7px 10px; font-size: 11.5px; color: var(--slate-800); }
    .iv-msg .w { font-size: 10px; font-weight: 600; color: var(--slate-500); margin-bottom: 1px; }
    .iv-cr { align-self: center; width: 85%; display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--slate-200); border-radius: 14px; padding: 8px 11px; box-shadow: 0 1px 3px rgba(15,23,42,0.06); opacity: 0; transform: translateY(8px); transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out); }
    .iv-cr.in { opacity: 1; transform: none; box-shadow: 0 0 0 3px var(--brand-100); }
    .iv-cr .ic { width: 30px; height: 30px; border-radius: 10px; background: var(--brand-50); color: var(--brand-500); display: grid; place-items: center; flex: none; }
    .iv-cr .ic svg { width: 16px; height: 16px; }
    .iv-cr .tx { flex: 1; min-width: 0; }
    .iv-cr .t { font-size: 12px; font-weight: 600; color: var(--slate-900); display: flex; gap: 6px; align-items: center; }
    .iv-cr .t em { font-style: normal; font-size: 9px; font-weight: 600; background: #dcfce7; color: #15803d; border-radius: 99px; padding: 1px 6px; }
    .iv-cr .s { font-size: 10.5px; color: var(--slate-400); }
    .iv-cr .tm { font-size: 9.5px; color: var(--slate-300); }
    .iv-pdf { background: #fff; border: 1px solid var(--slate-200); border-radius: 6px; box-shadow: 0 18px 44px -16px rgba(12,33,54,0.35); padding: 16px 18px 12px; font-family: Helvetica, Arial, sans-serif; color: #1f2937; opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
    .iv-pdf.in { opacity: 1; transform: none; }
    .ivp-h { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid #f97316; padding-bottom: 6px; margin-bottom: 8px; }
    .ivp-h b { display: block; color: #f97316; font-size: 12px; letter-spacing: 0.02em; }
    .ivp-h small { font-size: 9px; color: #6b7280; }
    .ivp-h .r { text-align: right; font-size: 8px; color: #6b7280; line-height: 1.4; }
    .ivp-h .r em { font-style: normal; font-weight: 700; color: #15803d; }
    .ivp-box { background: #f3f4f6; border-radius: 4px; padding: 7px 9px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 8.5px; margin-bottom: 8px; }
    .ivp-box u { text-decoration: none; display: block; font-size: 7px; font-weight: 700; color: #6b7280; letter-spacing: 0.05em; }
    .ivp-s { font-size: 7.5px; font-weight: 700; color: #6b7280; letter-spacing: 0.05em; margin: 6px 0 3px; }
    .ivp-t { font-size: 8.5px; line-height: 1.45; }
    .ivp-m { display: flex; justify-content: space-between; font-size: 8.5px; border-bottom: 1px solid #f3f4f6; padding: 2px 0; }
    .ivp-sig { display: flex; align-items: flex-end; gap: 12px; }
    .ivp-sig svg { width: 110px; height: 36px; }
    .ivp-sig small { font-size: 7.5px; color: #6b7280; }
    .ivp-f { border-top: 1px solid #e5e7eb; margin-top: 8px; padding-top: 4px; font-size: 7px; color: #9ca3af; text-align: center; }
    .iv-file { align-self: flex-start; display: flex; gap: 7px; align-items: center; background: #fff; border: 1px solid var(--slate-200); border-radius: 99px; padding: 6px 12px; font-family: var(--font-app); font-size: 11px; font-weight: 600; color: var(--slate-800); box-shadow: 0 8px 24px -10px rgba(12,33,54,0.35); opacity: 0; transition: opacity 0.4s; }
    .iv-file.in { opacity: 1; }
    .iv-file .ext { font-size: 8px; padding: 2px 5px; }

    /* ===================== DÉMO PARAMÈTRES (reproduction de settings/SettingsClient) ===================== */
    .side-sep { margin-top: auto; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 8px; }
    .st-wrap { max-width: 900px; margin: 0 auto; }
    .st-h1 { font-size: 19px; font-weight: 700; color: var(--slate-900); margin-bottom: 16px; }
    .st-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 26px; align-items: start; }
    .st-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; }
    .st-tab { display: flex; align-items: center; gap: 9px; border-radius: 11px; padding: 8px 11px; font-size: 13px; font-weight: 500; color: var(--slate-500); cursor: pointer; transition: background 0.2s, color 0.2s; }
    .st-tab svg { width: 15px; height: 15px; color: var(--slate-400); flex: none; }
    .st-tab.on { background: var(--brand-50); color: var(--brand-700); }
    .st-tab.on svg { color: var(--brand-600); }
    .st-body { min-width: 0; }
    .st-pane { display: none; flex-direction: column; gap: 22px; }
    .st-pane.on { display: flex; animation: popin 0.35s var(--ease-out); }
    .st-sec { display: flex; flex-direction: column; gap: 10px; }
    .st-h2 { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate-400); }
    .st-card { background: #fff; border: 1px solid var(--slate-100); border-radius: 16px; }
    .st-card.pad { padding: 16px; }
    .st-help { font-size: 11.5px; color: var(--slate-400); line-height: 1.45; }
    .st-ver { text-align: center; font-size: 11.5px; color: var(--slate-300); padding: 18px 0 6px; }
    /* compte */
    .st-id { display: flex; align-items: center; gap: 14px; padding: 16px; }
    .st-id img { width: 54px; height: 54px; border-radius: 99px; object-fit: cover; }
    .st-id .n { font-size: 15px; font-weight: 600; color: var(--slate-900); }
    .st-role { display: inline-flex; margin-top: 3px; border-radius: 99px; background: var(--brand-50); color: var(--brand-700); font-size: 11.5px; font-weight: 500; padding: 1px 8px; }
    .st-row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--slate-100); }
    .st-row svg { width: 15px; height: 15px; color: var(--slate-400); flex: none; }
    .st-row .l { font-size: 9.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-400); }
    .st-row .v { font-size: 13px; font-weight: 500; color: var(--slate-800); }
    .st-row .sp { flex: 1; min-width: 0; }
    .st-tg { width: 42px; height: 24px; border-radius: 99px; background: var(--slate-200); position: relative; flex: none; cursor: pointer; transition: background 0.25s; }
    .st-tg::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2); transition: transform 0.25s var(--ease-out); }
    .st-tg.on { background: var(--brand-500); }
    .st-tg.on.bx { background: #1d89c2; }
    .st-tg.on::after { transform: translateX(18px); }
    .st-out { border: 1px solid #fee2e2; background: #fff; border-radius: 16px; padding: 12px; text-align: center; font-size: 13px; font-weight: 600; color: #ef4444; }
    .st-del { border: 1px solid #fecaca; background: #fef2f2; border-radius: 16px; padding: 12px; text-align: center; font-size: 13px; font-weight: 600; color: #dc2626; }
    /* heures & paie */
    .st-form { padding: 16px; display: flex; flex-direction: column; gap: 20px; }
    .st-bt { font-size: 12px; font-weight: 600; color: var(--slate-700); margin-bottom: 7px; }
    .st-radios { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .st-radio { border: 2px solid var(--slate-200); border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: border-color 0.25s, background 0.25s; }
    .st-radio b { display: block; font-size: 13px; color: var(--slate-900); }
    .st-radio span { font-size: 11.5px; color: var(--slate-500); }
    .st-radio.on { border-color: var(--brand-500); background: var(--brand-50); }
    .st-in { display: inline-flex; align-items: center; border: 1px solid var(--slate-200); border-radius: 11px; padding: 7px 11px; font-size: 13px; color: var(--slate-900); background: #fff; font-variant-numeric: tabular-nums; min-width: 0; }
    .st-in.w { width: 100%; }
    .st-in.ph { color: var(--slate-400); }
    .st-in.flash { animation: flash 0.9s var(--ease-out); }
    .st-inl { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--slate-600); flex-wrap: wrap; }
    .st-lab { display: block; font-size: 11.5px; color: var(--slate-600); margin-bottom: 4px; }
    .st-hl { border: 1px solid var(--slate-200); background: var(--slate-50); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
    .st-days { display: flex; gap: 4px; flex-wrap: wrap; }
    .st-days span { width: 32px; height: 28px; display: grid; place-items: center; border: 1px solid var(--slate-200); background: #fff; border-radius: 8px; font-size: 11.5px; font-weight: 600; color: var(--slate-500); }
    .st-days span.on { border-color: var(--brand-500); background: var(--brand-500); color: #fff; }
    .st-ck { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--slate-600); }
    .st-ck i { width: 14px; height: 14px; border-radius: 4px; background: var(--brand-500); display: grid; place-items: center; color: #fff; font-size: 9px; font-style: normal; font-weight: 800; }
    .st-addline { align-self: flex-start; border: 1px dashed var(--slate-300); border-radius: 11px; padding: 6px 11px; font-size: 12.5px; font-weight: 600; color: var(--slate-600); }
    .st-hs { border: 1px solid #fde68a; background: var(--amber-50); border-radius: 12px; padding: 11px 12px; display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--slate-700); }
    .st-hs b.t { color: #92400e; font-size: 12.5px; }
    .st-hs .li { display: flex; gap: 7px; align-items: flex-start; }
    .st-hs .li i { width: 16px; height: 16px; border-radius: 99px; flex: none; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: #fff; font-style: normal; margin-top: 1px; }
    .st-g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
    .st-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .st-zt { border: 1px solid var(--slate-200); border-radius: 12px; overflow: hidden; }
    .st-zr { display: flex; align-items: center; gap: 8px; padding: 7px 11px; border-top: 1px solid var(--slate-100); font-size: 12.5px; color: var(--slate-600); }
    .st-zr:first-child { border-top: 0; }
    .st-zr .zn { width: 70px; font-weight: 600; color: var(--slate-900); }
    .st-zr .st-in { padding: 4px 8px; border-radius: 8px; font-size: 12.5px; justify-content: flex-end; }
    .st-zr .km { width: 44px; }
    .st-zr .pr { width: 56px; margin-left: auto; }
    .st-links { display: flex; gap: 14px; font-size: 11.5px; font-weight: 600; }
    .st-links .a { color: var(--brand-600); }
    .st-links .b { color: var(--slate-500); font-weight: 500; }
    .st-save { background: var(--brand-500); color: #fff; border-radius: 12px; padding: 11px; text-align: center; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background 0.3s; }
    .st-save.ok { background: #22c55e; }
    /* planning */
    .st-pl { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
    .st-pl b { font-size: 13.5px; color: var(--slate-900); }
    .st-pl p { font-size: 12px; color: var(--slate-500); margin-top: 3px; line-height: 1.45; }
    .st-saved { font-size: 11.5px; color: #16a34a; margin-top: 6px; opacity: 0; transition: opacity 0.3s; }
    .st-saved.in { opacity: 1; }
    .st-addrow { display: flex; gap: 8px; }
    .st-btn { background: var(--brand-500); color: #fff; border-radius: 11px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; white-space: nowrap; display: grid; place-items: center; }
    .st-btn2 { border: 1px solid var(--slate-200); color: var(--slate-700); border-radius: 11px; padding: 7px 14px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: #fff; }
    .st-pal { display: flex; gap: 7px; align-items: center; }
    .st-pal i { width: 20px; height: 20px; border-radius: 99px; display: block; }
    .st-pal i.sel { box-shadow: 0 0 0 1.5px #fff, 0 0 0 3.5px var(--slate-900); }
    .st-pal i.rb { background: conic-gradient(#ef4444,#f59e0b,#eab308,#22c55e,#06b6d4,#3b82f6,#8b5cf6,#ec4899,#ef4444); display: grid; place-items: center; color: #fff; font-style: normal; font-size: 12px; font-weight: 800; }
    .st-box { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--slate-200); background: var(--slate-50); border-radius: 9px; padding: 6px 10px; font-size: 12.5px; color: var(--slate-700); align-self: flex-start; }
    .st-box i { width: 13px; height: 13px; border: 1.5px solid var(--slate-300); border-radius: 3px; background: #fff; }
    .st-list .it { display: flex; align-items: center; gap: 10px; padding: 9px 16px; border-top: 1px solid var(--slate-50); font-size: 13px; color: var(--slate-800); }
    .st-list .it:first-child { border-top: 0; }
    .st-list .dot { width: 13px; height: 13px; border-radius: 99px; flex: none; }
    .st-list .sub { font-size: 11.5px; color: var(--slate-400); }
    .st-list .tag { border-radius: 99px; background: var(--slate-100); color: var(--slate-500); font-size: 10.5px; font-weight: 500; padding: 1px 7px; }
    .st-list .ic { margin-left: auto; color: var(--slate-300); font-size: 12px; letter-spacing: 8px; }
    .st-cat-h { display: flex; justify-content: space-between; align-items: center; background: var(--slate-50); padding: 7px 16px; border-radius: 16px 16px 0 0; }
    .st-cat-h b { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate-500); }
    .st-cat-h span { font-size: 11.5px; color: var(--slate-400); }
    /* abonnement */
    .st-plan { display: flex; justify-content: space-between; align-items: center; padding: 16px; }
    .st-pill { display: inline-flex; border-radius: 99px; background: #eff8ff; color: #165f8a; font-size: 11.5px; font-weight: 600; padding: 2px 10px; margin-top: 3px; }
    .st-cnt { text-align: right; }
    .st-cnt b { font-size: 18px; color: var(--slate-900); display: block; }
    .st-cnt span { font-size: 10px; color: var(--slate-400); }
    .st-bill { border-top: 1px solid var(--slate-100); background: var(--slate-50); padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--slate-700); }
    .st-bill .ln { display: flex; justify-content: space-between; }
    .st-bill .ln small { display: block; font-size: 11px; color: var(--slate-400); }
    .st-bill .nt { font-size: 11px; color: var(--slate-400); }
    .st-manage { border: 1px solid var(--slate-200); border-radius: 12px; padding: 9px; text-align: center; font-size: 13px; font-weight: 600; color: var(--slate-600); background: #fff; }
    .st-mem { display: flex; align-items: center; gap: 11px; padding: 9px 16px; border-top: 1px solid var(--slate-50); }
    .st-mem img { width: 32px; height: 32px; border-radius: 99px; object-fit: cover; }
    .st-mem .n { flex: 1; font-size: 13px; color: var(--slate-900); font-weight: 500; }
    .st-mem .n small { display: block; font-size: 11.5px; color: var(--slate-400); font-weight: 400; }
    .st-mem .r { text-align: right; }
    .st-mem .r b { display: inline-block; border-radius: 99px; font-size: 10px; font-weight: 600; padding: 1px 8px; }
    .st-mem .r b.adm { background: var(--brand-50); color: var(--brand-600); }
    .st-mem .r b.tec { background: var(--slate-100); color: var(--slate-500); }
    .st-mem .r small { display: block; font-size: 10.5px; color: var(--slate-400); margin-top: 1px; }
    .st-mem .r small.inc { color: #22c55e; }
    .st-help-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
    .st-help-row .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); display: grid; place-items: center; font-size: 19px; }
    .st-help-row b { display: block; font-size: 13.5px; color: var(--slate-900); }
    .st-help-row span { font-size: 12px; color: var(--slate-500); }
    @media (max-width: 980px) {
      .st-grid { grid-template-columns: 1fr; gap: 12px; }
      .st-nav { flex-direction: row; overflow-x: auto; position: static; }
      .st-tab { flex: none; }
      .st-g3 { grid-template-columns: 1fr 1fr; }
    }

    /* ===== CTA ===== */

    /* ===== Responsive ===== */
    @media (max-width: 980px) {
      /* la fenêtre d'app a une hauteur fixe : les écrans sont empilés en position absolue */
      .app {
        grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr);
        min-height: 0; height: clamp(520px, calc(100vh - 190px), 700px);
      }
      .app-side { flex-direction: row; align-items: center; padding: 8px 10px; gap: 4px; overflow-x: auto; scrollbar-width: none; }
      .app-side::-webkit-scrollbar { display: none; }
      .app-side .logo { padding: 0 10px 0 2px; }
      .app-side .logo img { height: 18px; }
      .side-item { padding: 8px 10px; flex: none; font-size: 13px; }
      .side-item.active { margin: 0; }
      .side-sep { margin: 0 0 0 auto; border-top: 0; padding-top: 0; }
      .tiles { grid-template-columns: 1fr 1fr; }
      .duo { grid-template-columns: 1fr; }
      .bureau { display: flex; flex-direction: column; align-items: center; text-align: center; }
    }
    @media (max-width: 640px) {
      section.demo { padding: 26px 14px 30px; }
      section.demo > h2 { font-size: 1.3rem; }
      section.demo > .lead { font-size: 0.97rem; margin-bottom: 18px; }
      .stage { padding: 10px; border-radius: 16px; }
      .app { border-radius: 12px; }
      /* barre latérale → rangée d'icônes, comme la barre d'une app mobile */
      .app-side .logo { display: none; }
      .app-side { justify-content: space-between; padding: 6px 8px; gap: 2px; }
      .side-item { font-size: 0; gap: 0; padding: 9px 11px; border-radius: 10px; position: relative; }
      .side-item svg { width: 19px; height: 19px; }
      .side-item .side-badge { position: absolute; top: 2px; right: 2px; margin: 0; }
      .side-sep { margin: 0; }
      .screen-app { padding: 16px 12px; }
      .controls { gap: 10px; }
      .controls .btn-replay, .controls .btn-auto { padding: 8px 14px; font-size: 13px; }
      .bxd-next { margin-left: 0; width: 100%; }
      .tray { gap: 6px; }
      .chip { font-size: 11.5px; padding: 6px 10px 6px 7px; }
      .tip { font-size: 13px; padding: 10px 12px; }
      /* Messages : fil en pleine largeur, seule la conversation ouverte reste au-dessus */
      .chat { grid-template-columns: 1fr; min-height: 0; }
      .chat-list { border-right: 0; }
      .chat-list .conv:not(.onc) { display: none; }
      /* planning : blocs allégés (titre + horaires), mois lisible en défilement horizontal */
      .pl-ev .c, .pl-ev .p { display: none; }
      .pl-cell { min-height: 70px; }
      .pm { overflow-x: auto; scrollbar-width: none; }
      .pm::-webkit-scrollbar { display: none; }
      .pm > * { min-width: 640px; }
    }
    @media (prefers-reduced-motion: reduce) {
      .bxd *, .bxd *::before, .bxd *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
    }
  
