/* GÉNÉRÉ par outils/sim/porter.py depuis batiflow-dist/simulation/src/style.css — ne pas modifier à la main. */
#toile, #toile2 {
  color-scheme: dark;
  --orange: #F15A24;
  --anneau: #E0543E;
  --pilule: #26262B;
  --gris6: #1C1C1E;
  --ink: #1A1B1E;
  --encre: #111214;
  --gris: #5B5E64;
  --filet: #E6E6E8;
  --champ: #F4F4F5;
  --champ-c: #EEEEF0;
  --sub: #8A8F98;
  --ambre: #FAC775;
  --bleu: #0A84FF;
  --rouge-enr: #FF3B30;
  --rouge-annot: #FF453A;
  --sf: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Helvetica Neue", Arial, sans-serif;
  --inter: "Inter", -apple-system, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
@keyframes bandeau { from { transform: translateY(-30px); opacity: 0; } }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
@keyframes fondu { from { opacity: 0; } }
@keyframes monte { from { transform: translateY(100%); } }
@keyframes monte { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
#toile .ic, #toile2 .ic { display: block; background: currentColor; -webkit-mask: var(--m) center / 100% 100% no-repeat; mask: var(--m) center / 100% 100% no-repeat; flex: none; }
/* ============ Calque des onglets (AIBQDrawerLayer) ============ */
#toile #calque { position: absolute; left: 0; top: 62px; width: 402px; height: 812px; background: #fff; color: var(--ink); color-scheme: light; border-radius: 20px 20px 0 0; box-shadow: 0 -4px 18px rgba(0,0,0,.18); z-index: 35; animation: monte .25s cubic-bezier(.3,.8,.4,1); display: flex; flex-direction: column; box-sizing: border-box; padding: 8px 14px 0; }
#toile #calque .contenu { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; padding-bottom: 76px; }
/* Constats */
#toile .ent-ref { display: flex; align-items: center; gap: 0; padding: 0 2px; }
#toile .ent-ref .ret { width: 36px; height: 44px; display: grid; place-items: center; flex: none; margin-left: -8px; }
#toile .ent-ref .tt { flex: 1; min-width: 0; }
#toile .ent-ref .tt b { display: block; font-size: 20px; line-height: 24px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#toile .ent-ref .tt small { display: block; font-size: 14px; line-height: 17px; color: var(--gris); }
#toile .ent-ref .plus { width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
#toile #scene-f { position: relative; flex: 1; min-height: 0; margin-top: 6px; touch-action: pan-y; }
#toile .fiche { position: absolute; top: 0; transform-style: preserve-3d; transition: transform .42s cubic-bezier(.22,.75,.20,1), opacity .42s, left .26s ease-in-out, width .26s ease-in-out; }
#toile .fiche .faces { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.25,.70,.25,1); }
#toile .fiche.retournee .faces { transform: rotateY(180deg); }
#toile .face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; background: #fff; border-radius: 24px; box-shadow: inset 0 0 0 1px #E2E2E5, 0 12px 34px rgba(0,0,0,.16); padding: 16px 15px 14px; box-sizing: border-box; display: flex; flex-direction: column; color: var(--encre); }
#toile .face.verso { transform: rotateY(180deg); }
#toile .ent { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; line-height: 16.7px; }
#toile .ent b { font-weight: 600; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#toile .ent span { font-weight: 500; font-variant-numeric: tabular-nums; flex: none; }
#toile .rang-badge { display: flex; align-items: center; justify-content: space-between; margin-top: 14.5px; }
#toile .badge { display: flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 99px; font-size: 12px; line-height: 14.3px; font-weight: 600; letter-spacing: .4px; color: var(--orange); box-shadow: inset 0 0 0 1.5px var(--orange); white-space: nowrap; }
#toile .badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
#toile .badge.plein { background: var(--orange); color: #fff; }
#toile .badge.plein i { background: #fff; }
#toile .badge.gris { color: var(--gris); box-shadow: inset 0 0 0 1.5px #B7B9BE; }
#toile .badge.gris i { background: #B7B9BE; }
#toile .menu-btn { width: 36px; height: 30px; display: grid; place-items: center; color: var(--encre); flex: none; }
#toile .recto h4 { margin: 15.7px 0 8px; font-size: 21px; line-height: 24.6px; font-weight: 700; color: var(--encre); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#toile .recto .txt { margin: 0; font-size: 14px; line-height: 18.7px; color: var(--gris); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
#toile .recto .txt.vide, #toile .recto h4.vide { color: var(--gris); }
#toile .photos { margin-top: auto; display: flex; gap: 7px; height: 132px; flex: none; padding-top: 10px; }
#toile .photos img { flex: 1; min-width: 0; height: 132px; object-fit: cover; border-radius: 12px; background: #DDD; }
#toile .ajout { width: 74px; flex: none; border-radius: 12px; border: 1.5px dashed #C9C9CD; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 12px; line-height: 14.5px; color: var(--gris); text-align: center; }
#toile .pied { display: flex; gap: 7px; padding-top: 12px; flex: none; }
#toile .statut { flex: 1; height: 42px; border-radius: 99px; background: var(--champ-c); color: var(--encre); display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; font-weight: 500; white-space: nowrap; }
#toile .statut > i { width: 20px; height: 20px; border-radius: 50%; background: currentColor; display: grid; place-items: center; flex: none; }
#toile .statut > i .ic, #toile2 .statut > i .ic { background: #fff; }
#toile .statut.valider { background: #FFF1EB; color: #D9481A; }
#toile .statut.rediger { background: #E4EEFA; color: #3F72AA; }
#toile .btn-flip { flex: 1; height: 42px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--orange); color: var(--orange); display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 15px; font-weight: 600; }
#toile .verso .defil { flex: 1; min-height: 0; overflow-y: auto; margin-top: 2px; }
#toile .verso h4 { margin: 10px 0 4px; font-size: 21px; line-height: 25px; font-weight: 700; color: var(--encre); }
#toile .cv { padding: 10px 0; display: flex; flex-direction: column; gap: 6px; text-align: left; width: 100%; }
#toile .cv .h { display: flex; align-items: center; justify-content: space-between; }
#toile .cv .h b { font-size: 14px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
#toile .cv .mod { height: 28px; padding: 0 10px; border-radius: 99px; background: var(--champ-c); font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 5px; }
#toile .cv p { margin: 0; font-size: 16px; line-height: 21px; }
#toile .cv p.vide { color: var(--gris); }
#toile .cv .grav { display: flex; align-items: center; gap: 8px; font-size: 16px; }
#toile .cv .grav i { width: 10px; height: 10px; border-radius: 50%; }
#toile .cv textarea { font: 400 15px/1.3 var(--sf); border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--encre); border: 0; padding: 9px; resize: none; color: var(--encre); min-height: 40px; }
#toile .cv .okann { display: flex; gap: 8px; }
#toile .cv .okann button { flex: 1; height: 40px; border-radius: 10px; font-size: 15px; font-weight: 600; }
#toile .cv .okann .ok { background: var(--encre); color: #fff; }
#toile .cv .okann .an { background: var(--champ-c); }
#toile .filet { height: 1px; background: var(--filet); flex: none; }
#toile .interne { margin-top: 8px; padding: 12px; border-radius: 14px; background: var(--champ); display: flex; flex-direction: column; gap: 8px; }
#toile .interne .t { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #3D3F44; }
#toile .interne b { font-size: 14px; }
#toile .interne .hr { font-size: 15px; font-weight: 600; }
#toile .interne .lect { display: flex; align-items: center; gap: 10px; }
#toile .interne .lect .p { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; }
#toile .interne .lect .wf { display: flex; gap: 2px; align-items: center; }
#toile .interne .lect .wf i { width: 2px; border-radius: 1px; background: #BDBEC2; }
#toile .photos-v { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; }
#toile .photos-v img { width: 120px; height: 96px; border-radius: 10px; object-fit: cover; flex: none; }
#toile .photos-v .ajout { width: 80px; height: 96px; font-size: 11.5px; }
#toile #pager { display: flex; flex-direction: column; align-items: center; gap: 0; flex: none; transition: opacity .2s; }
#toile #pager .l { display: flex; align-items: center; gap: 22px; }
#toile #pager .l button { width: 44px; height: 44px; display: grid; place-items: center; color: var(--encre); }
#toile #pager .l button:disabled { opacity: .3; }
#toile #pager .pts { display: flex; align-items: center; gap: 8px; }
#toile #pager .pts i { width: 8px; height: 8px; border-radius: 50%; background: #D4D4D7; }
#toile #pager .pts i.on { background: var(--orange); }
#toile #pager .pts i.mini { width: 5px; height: 5px; }
#toile #pager small { font-size: 13px; line-height: 16px; color: var(--gris); }
#toile .rail { display: flex; padding: 3px; border-radius: 22px; background: var(--champ); box-shadow: inset 0 0 0 1px var(--filet); flex: none; margin-bottom: 6px; }
#toile .rail button { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 19px; text-align: left; }
#toile .rail button div { flex: 1; min-width: 0; }
#toile .rail button b { display: block; font-size: 15.5px; line-height: 19px; font-weight: 600; white-space: nowrap; }
#toile .rail button small { display: block; font-size: 13px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#toile .rail .sombre { background: var(--ink); color: #fff; }
#toile .rail .sombre small { color: #C9CACE; }
#toile .rail .claire small { color: var(--gris); }
#toile .vide-fil { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--gris); text-align: center; padding: 0 30px; }
#toile .vide-fil b { font-size: 15px; font-weight: 600; }
#toile .vide-fil small { font-size: 13px; }
/* Aperçu et Compte rendu */
#toile .ent-ong { display: flex; align-items: center; gap: 8px; padding-top: 4px; flex: none; }
#toile .ent-ong .rd { width: 44px; height: 44px; border-radius: 50%; background: var(--champ); display: grid; place-items: center; flex: none; }
#toile .ent-ong .tt { flex: 1; min-width: 0; text-align: center; }
#toile .ent-ong .tt b { display: block; font-size: 18px; line-height: 22px; font-weight: 700; }
#toile .ent-ong .tt small { display: block; font-size: 12.5px; color: var(--gris); }
#toile .defil-ong { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 0 4px 24px; }
#toile .rech-ap { display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 14px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--filet); color: var(--sub); flex: none; }
#toile .rech-ap input { flex: 1; min-width: 0; border: 0; background: transparent; font: 400 16px var(--sf); color: var(--ink); padding: 0 0 0 6px; }
#toile .rech-ap input::placeholder { color: #8D8E93; }
#toile .rech-ap .kb { width: 36px; height: 44px; display: grid; place-items: center; }
#toile .rech-ap .micro { width: 44px; height: 44px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; flex: none; }
#toile .filtres { display: flex; gap: 8px; flex: none; flex-wrap: wrap; }
#toile .filtres button { height: 36px; padding: 0 14px; border-radius: 99px; background: var(--champ); font-size: 14px; font-weight: 500; white-space: nowrap; }
#toile .filtres button.on { background: #E2E2E6; font-weight: 600; }
#toile .filtres button.or { background: #FFF1EB; color: var(--orange); box-shadow: inset 0 0 0 1px rgba(241,90,36,.6); }
#toile .filtres button.or.on { background: var(--orange); color: #fff; }
#toile .prog { padding: 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--filet); display: flex; flex-direction: column; gap: 12px; flex: none; }
#toile .prog .l { display: flex; align-items: center; gap: 14px; }
#toile .prog .n { font-size: 44px; line-height: 48px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
#toile .prog .n span { font-size: 30px; font-weight: 400; margin: 0 2px; }
#toile .prog .d b { display: block; font-size: 16px; font-weight: 600; }
#toile .prog .d small { display: block; font-size: 14px; color: var(--gris); }
#toile .barre8 { height: 8px; border-radius: 4px; background: #E8E8EB; overflow: hidden; position: relative; }
#toile .barre8 i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--orange); border-radius: 4px; }
#toile .tl { display: flex; flex-direction: column; flex: none; }
#toile .tl .it { display: flex; gap: 14px; padding-bottom: 14px; position: relative; text-align: left; width: 100%; }
#toile .tl .it::before { content: ""; position: absolute; left: 15.25px; top: 32px; bottom: 0; width: 1.5px; background: var(--filet); }
#toile .tl .it:last-child::before { display: none; }
#toile .tl .pt { width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--filet); display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--gris); flex: none; position: relative; z-index: 1; }
#toile .tl .pt.fait { background: var(--ink); box-shadow: none; color: #fff; }
#toile .tl .pt.cour { background: var(--orange); box-shadow: none; color: #fff; font-weight: 700; }
#toile .tl .c { flex: 1; min-width: 0; padding-top: 5px; }
#toile .tl .c b { display: block; font-size: 17px; line-height: 21px; font-weight: 600; color: var(--gris); }
#toile .tl .c b.ink { color: var(--ink); }
#toile .tl .c small { display: block; font-size: 14px; line-height: 18px; color: var(--gris); margin-top: 2px; }
#toile .tl .fin { width: 24px; display: grid; place-items: center; padding-top: 8px; flex: none; color: var(--gris); }
#toile .pastille-av { height: 26px; padding: 0 10px; border-radius: 99px; background: #FFF1EB; box-shadow: inset 0 0 0 1px rgba(241,90,36,.45); color: var(--orange); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; white-space: nowrap; margin-top: 6px; }
#toile .volet { margin-top: 8px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--filet); overflow: hidden; }
#toile .volet button { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; width: 100%; box-sizing: border-box; text-align: left; }
#toile .volet button + button { box-shadow: inset 0 1px 0 var(--filet); }
#toile .volet button span { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; }
#toile .volet button.voir span { font-size: 14.5px; color: var(--gris); font-weight: 400; }
#toile .carte-cr { padding: 16px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--filet); display: flex; flex-direction: column; gap: 10px; flex: none; }
#toile .carte-cr h4 { margin: 0; font-size: 20px; font-weight: 700; }
#toile .carte-cr small { font-size: 14.5px; color: var(--gris); }
#toile .carte-cr .bl { display: flex; align-items: center; gap: 10px; }
#toile .carte-cr .bl .barre8 { flex: 1; overflow: visible; }
#toile .carte-cr .bl .barre8 b { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px #fff, 0 1px 4px rgba(0,0,0,.15); }
#toile .carte-cr .bl span { font-size: 15px; font-weight: 600; }
#toile .segments { display: flex; gap: 3px; padding: 3px; border-radius: 99px; background: #F1F1F1; overflow-x: auto; flex: none; scrollbar-width: none; }
#toile .segments button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 11px; border-radius: 99px; color: var(--sub); font-size: 9.5px; font-weight: 500; flex: 1; }
#toile .segments button.on { background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); color: var(--ink); }
#toile .btn-noir { height: 52px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 16.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; flex: none; }
#toile .btn-sec { height: 44px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--filet); font-size: 15px; font-weight: 600; width: 100%; margin-top: 8px; }
#toile .btn-rev { height: 34px; padding: 0 14px; border-radius: 99px; box-shadow: inset 0 0 0 1.3px var(--orange); color: var(--orange); font-size: 14px; font-weight: 600; flex: none; margin-top: 2px; }
#toile .rappel { align-self: flex-start; height: 32px; padding: 0 12px; border-radius: 99px; box-shadow: inset 0 0 0 1.3px var(--orange); color: var(--orange); display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
#toile .lien-gris { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14.5px; font-weight: 500; color: var(--gris); padding: 4px 0; }


#toile #voile-sys, #toile2 #voile-sys { position: absolute; inset: 0; background: rgba(0,0,0,.35); z-index: 100; animation: fondu .25s; }
#toile .feuille-sys, #toile2 .feuille-sys { position: absolute; left: 0; right: 0; bottom: 0; top: 72px; z-index: 101; background: #F2F2F7; color: #000; color-scheme: light; border-radius: 12px 12px 0 0; animation: monte .3s cubic-bezier(.3,.8,.4,1); display: flex; flex-direction: column; }
#toile .feuille-sys .poignee, #toile2 .feuille-sys .poignee { width: 36px; height: 5px; border-radius: 3px; background: rgba(60,60,67,.3); margin: 5px auto 0; flex: none; }
#toile .feuille-sys .nav, #toile2 .feuille-sys .nav { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 16px; flex: none; }
#toile .feuille-sys .nav b, #toile2 .feuille-sys .nav b { font-size: 17px; font-weight: 600; text-align: center; flex: 1; }
#toile .feuille-sys .nav button, #toile2 .feuille-sys .nav button { color: var(--bleu); font-size: 17px; min-width: 60px; }
#toile .feuille-sys .nav button.ok, #toile2 .feuille-sys .nav button.ok { font-weight: 600; text-align: right; }
#toile .feuille-sys .corps, #toile2 .feuille-sys .corps { flex: 1; overflow-y: auto; padding: 8px 16px 40px; display: flex; flex-direction: column; gap: 12px; }
#toile .feuille-sys .groupe, #toile2 .feuille-sys .groupe { background: #fff; border-radius: 10px; overflow: hidden; }
#toile .feuille-sys .groupe .r, #toile2 .feuille-sys .groupe .r { display: flex; align-items: center; gap: 12px; padding: 11px 16px; min-height: 44px; box-sizing: border-box; font-size: 17px; }
#toile .feuille-sys .groupe .r + .r, #toile2 .feuille-sys .groupe .r + .r { box-shadow: inset 16px 0 0 #fff, inset 0 .5px 0 #C6C6C8; }
#toile .feuille-sys .groupe .r small, #toile2 .feuille-sys .groupe .r small { display: block; font-size: 13px; color: #8A8A8E; }
#toile .feuille-sys .groupe .r .d, #toile2 .feuille-sys .groupe .r .d { flex: 1; min-width: 0; }
#toile .feuille-sys .tg, #toile2 .feuille-sys .tg { font-size: 13px; color: #6D6D72; text-transform: uppercase; padding: 0 16px; margin-bottom: -6px; }
#toile .feuille-sys p.vide, #toile2 .feuille-sys p.vide { color: #8A8A8E; text-align: center; font-size: 15px; padding: 30px 10px; }
#toile .menu-ios, #toile2 .menu-ios { position: absolute; z-index: 120; min-width: 250px; max-width: 300px; border-radius: 14px; background: rgba(242,242,247,.86); -webkit-backdrop-filter: blur(30px) saturate(1.8); backdrop-filter: blur(30px) saturate(1.8); box-shadow: 0 10px 40px rgba(0,0,0,.22); overflow: hidden; color: #000; color-scheme: light; animation: pop .2s cubic-bezier(.3,.8,.4,1); }
#toile .menu-ios button, #toile2 .menu-ios button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 16px; box-sizing: border-box; font-size: 17px; text-align: left; }
#toile .menu-ios button + button, #toile2 .menu-ios button + button { box-shadow: inset 0 .5px 0 rgba(60,60,67,.29); }
#toile .menu-ios button .ic, #toile2 .menu-ios button .ic { margin-left: auto; }
#toile .menu-ios button.coche::before, #toile2 .menu-ios button.coche::before { content: "✓"; width: 14px; margin-left: -4px; font-weight: 600; }
#toile .menu-ios button.rouge, #toile2 .menu-ios button.rouge { color: #FF3B30; }
#toile .menu-ios .sep, #toile2 .menu-ios .sep { height: 8px; background: rgba(60,60,67,.12); }
#toile #voile-menu, #toile2 #voile-menu { position: absolute; inset: 0; z-index: 119; }
#toile #toast, #toile2 #toast { position: absolute; left: 201px; top: 120px; transform: translateX(-50%); z-index: 130; max-width: 360px; padding: 10px 16px; border-radius: 99px; background: rgba(28,28,30,.92); color: #fff; font-size: 14px; font-weight: 600; text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); animation: bandeau .25s cubic-bezier(.3,.8,.4,1); white-space: nowrap; }