/* QG VEARTUS — l'habillage « verre » (repris de l'esprit de Compta CNB v133 : panneaux en verre dépoli, pilules, police Poppins),
   aux couleurs de VEARTUS : nuit bleue, bleu de la marque, et le point doré du logo pour « ce qui t'attend ».
   Chargé en dernier : il ne fait que régler les variables et habiller les grands panneaux. Sans carte graphique (ou si on le
   coupe dans Équipe & réglages), html.lite garde les mêmes couleurs sans flou : tout reste lisible et rapide. */

@font-face { font-family: "Poppins"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/poppins-400.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 500 600; font-style: normal; font-display: swap; src: url("fonts/poppins-500.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 650 900; font-style: normal; font-display: swap; src: url("fonts/poppins-700.woff") format("woff"); }

:root {
  --navy: #081320; --deep: #0B3D66; --blue: #2B8FD6; --sky: #9FD3F5; --gold: #FFD166;
  --bg: #081320;
  --surface: rgba(20, 38, 60, .62); --surface2: rgba(34, 58, 88, .66); --surface3: rgba(52, 80, 114, .7);
  --solid: #0e2136; /* là où il faut un fond plein (menus déroulants du navigateur, impression) */
  --bubble-out: rgba(43, 143, 214, .34); --bubble-in: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .10); --line2: rgba(255, 255, 255, .18);
  --text: #ffffff; --sec: rgba(232, 241, 250, .74); --mute: rgba(214, 228, 242, .50);
  --rose: var(--gold); --violet: #6DB3F2; --amber: #FF9F45; --green: #5FD39A; --red: #FF7B6B;
  --grad: linear-gradient(135deg, #3FA2EC, #1D6DB5);
  --r9: 12px; --r14: 16px; --r17: 20px; --r19: 24px;
  --disp: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ui: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --top-bg: rgba(8, 19, 32, .46); --tab-bg: rgba(14, 30, 48, .62);
  --hover: rgba(255, 255, 255, .06); --hover2: rgba(255, 255, 255, .10);
  --on-row: rgba(43, 143, 214, .20);
  --shadow: 0 18px 50px rgba(0, 0, 0, .34);
  --kbd-bg: rgba(255, 255, 255, .10);
  --av-bg: linear-gradient(150deg, rgba(63, 162, 236, .55), rgba(11, 61, 102, .75));
  --white-btn: #ffffff; --white-btn-text: #0b1b2c;
  --verre: saturate(150%) blur(26px);
  --bord-haut: rgba(255, 255, 255, .26);
  --fond: radial-gradient(1100px 700px at 12% -8%, rgba(63, 162, 236, .50), transparent 62%),
          radial-gradient(900px 620px at 96% 108%, rgba(29, 109, 181, .46), transparent 60%),
          radial-gradient(520px 380px at 88% 6%, rgba(255, 209, 102, .17), transparent 64%),
          linear-gradient(160deg, #0a1c30 0%, #0b2744 46%, #06101b 100%);
  --courbes: .16;
}
html[data-theme="light"] {
  --bg: #e9f1f8;
  --surface: rgba(255, 255, 255, .66); --surface2: rgba(255, 255, 255, .82); --surface3: rgba(214, 228, 240, .9);
  --solid: #ffffff;
  --bubble-out: rgba(43, 143, 214, .20); --bubble-in: rgba(255, 255, 255, .78);
  --line: rgba(11, 31, 51, .10); --line2: rgba(11, 31, 51, .20);
  --text: #0B1F33; --sec: #44586b; --mute: #7d8d9c;
  --rose: #a36a00; --violet: #1c6fb8; --amber: #b25a00; --green: #12804a; --red: #c2402f;
  --top-bg: rgba(233, 241, 248, .55); --tab-bg: rgba(255, 255, 255, .7);
  --hover: rgba(11, 31, 51, .05); --hover2: rgba(11, 31, 51, .09);
  --on-row: rgba(43, 143, 214, .16);
  --shadow: 0 18px 44px rgba(11, 31, 51, .16);
  --kbd-bg: rgba(11, 31, 51, .07);
  --av-bg: linear-gradient(150deg, #cfe6f8, #9fd3f5);
  --white-btn: #0B1F33; --white-btn-text: #ffffff;
  --bord-haut: rgba(255, 255, 255, .9);
  --fond: radial-gradient(1100px 700px at 10% -10%, rgba(159, 211, 245, .95), transparent 62%),
          radial-gradient(900px 620px at 98% 110%, rgba(43, 143, 214, .34), transparent 60%),
          radial-gradient(520px 380px at 86% 4%, rgba(255, 209, 102, .40), transparent 64%),
          linear-gradient(160deg, #f4f9fd 0%, #e3eef7 50%, #d6e6f3 100%);
  --courbes: .0;
}
html.lite {
  --surface: #12263c; --surface2: #1a3350; --surface3: #244263; --top-bg: #0b1b2c; --tab-bg: #0e2136;
  --bubble-out: #1c4f7e; --bubble-in: #16304a; --verre: none;
}
html.lite[data-theme="light"] { --surface: #ffffff; --surface2: #f1f6fa; --surface3: #dfe9f2; --top-bg: #eef4f9; --tab-bg: #ffffff; --bubble-out: #d3e8f8; --bubble-in: #ffffff; }

/* ---------- le fond : une nuit bleue, des courbes de niveau très discrètes (la Suisse des cartes) ---------- */
html { background: var(--bg); }
body { background: transparent; font-weight: 400; letter-spacing: -.003em; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: var(--fond); }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url("fond.svg") center / cover no-repeat; opacity: var(--courbes); }
html.lite body::after { display: none; }
::selection { background: rgba(63, 162, 236, .40); }
:focus-visible { outline-color: var(--sky); }

/* ---------- typographie : Poppins partout, plus aucune étiquette en capitales ---------- */
.lbl { font-family: var(--ui); font-size: 12.5px; letter-spacing: 0; text-transform: none; color: var(--sec); font-weight: 500; margin: 26px 0 10px; }
.lbl b { color: var(--mute); font-weight: 400; }
.num, kbd, .row .side time, .row time { font-family: var(--ui); }
.row .side time, .row time { font-size: 11.5px; }
.pill { font-family: var(--ui); font-size: 10.5px; letter-spacing: .01em; text-transform: none; font-weight: 500; height: 22px; padding: 0 9px; border-radius: 999px; }
.nb { font-family: var(--ui); font-size: 11px; font-weight: 500; border-radius: 999px; background: rgba(255, 209, 102, .16); border-color: rgba(255, 209, 102, .5); }
.chip b, .chip.day { font-family: var(--ui); font-size: 11.5px; }
.h15, .h16, .h17, .row .t, .top-title, .switch-row strong { font-weight: 600; }
.row .t { font-size: 15.5px; }
.tabbar button span, .tabbar button.on span { font-family: var(--ui); font-size: 10.5px; letter-spacing: 0; font-weight: 500; }

/* ---------- la marque ---------- */
.vmark { display: inline-block; width: 30px; height: 30px; flex: none; border-radius: 9px; background: linear-gradient(135deg, #2B8FD6, #0B3D66); position: relative; box-shadow: 0 6px 18px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .28); }
.vmark::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 84'%3E%3Cpath d='M20 24 L42 66 L64 24' fill='none' stroke='%23fff' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M34 24 L42 40 L50 24' fill='none' stroke='%239FD3F5' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='66' cy='18' r='5' fill='%23FFD166'/%3E%3C/svg%3E") center / contain no-repeat; }
.brand { flex-direction: row; align-items: center; gap: 11px; padding: 2px 4px 0; }
.brand .vname { font-weight: 700; font-size: 16px; letter-spacing: .22em; color: var(--text); line-height: 1; }
.brand .vsub { font-size: 11px; font-weight: 500; color: var(--mute); margin-left: auto; padding: 3px 8px; border: 1px solid var(--line2); border-radius: 999px; line-height: 1.2; }
.brand.big { flex-direction: column; gap: 14px; padding: 0; }
.brand.big .vmark { width: 64px; height: 64px; border-radius: 18px; }
.brand.big .vname { font-size: 26px; letter-spacing: .34em; padding-left: .34em; }
.brand.big .vsub { margin: 0; border: 0; padding: 0; font-size: 13px; font-weight: 400; color: var(--sec); }
.top-brand { align-items: center; gap: 9px; }
.top-brand .vmark { width: 26px; height: 26px; border-radius: 8px; }
.top-brand .vname { font-weight: 700; font-size: 14px; letter-spacing: .2em; }

/* ---------- le verre : les grands panneaux ---------- */
.sidebar, .top, .tabbar, .helpbar, .sheet, .toast, .card, .login-in, .gl {
  -webkit-backdrop-filter: var(--verre); backdrop-filter: var(--verre);
}
.card, .gl { background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .03)), var(--surface); border: 1px solid var(--line2); border-top-color: var(--bord-haut); border-radius: var(--r19); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .08); }
html[data-theme="light"] .card, html[data-theme="light"] .gl { background: var(--surface); }

/* connexion : une carte de verre au milieu */
.login { background: transparent; }
.login-in { max-width: 380px; padding: 34px 28px 28px; border-radius: 28px; background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)), var(--surface); border: 1px solid var(--line2); border-top-color: var(--bord-haut); box-shadow: var(--shadow); }
.login .brand { margin-bottom: 26px; }
.login .lbl { justify-content: center; margin-top: 4px; }
.login .lbl::after { display: none; }
.login-who { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 6px; }
.login-msg { color: var(--gold); font-weight: 500; }
html[data-theme="light"] .login-msg { color: var(--red); }
.keypad button { border-radius: 18px; background: rgba(255, 255, 255, .08); border-color: var(--line2); font-size: 22px; font-weight: 500; }
html[data-theme="light"] .keypad button { background: rgba(255, 255, 255, .8); }
.keypad button.soft { background: none; border-color: transparent; }
.keypad button.ok { border-radius: 999px; font-weight: 600; box-shadow: 0 10px 26px rgba(29, 109, 181, .45); }

/* barre du haut, aide, onglets du téléphone */
.top { border-bottom-color: var(--line); }
.helpbar { background: rgba(43, 143, 214, .16); border-bottom-color: var(--line); color: var(--sec); }
html[data-theme="light"] .helpbar { background: rgba(159, 211, 245, .38); }
.helpbar .ico { color: var(--sky); }
html[data-theme="light"] .helpbar .ico { color: var(--violet); }
.tabbar { left: 10px; right: 10px; bottom: calc(8px + var(--sab)); padding-bottom: 0; border: 1px solid var(--line2); border-top-color: var(--bord-haut); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.tabbar button.on::before { background: var(--gold); top: 6px; width: 5px; height: 5px; }
.view { padding-bottom: calc(var(--tab-h) + var(--sab) + 44px); }

/* boutons, puces, champs : des pilules */
.btn { border-radius: 999px; font-weight: 600; background: rgba(255, 255, 255, .09); border-color: var(--line2); }
html[data-theme="light"] .btn { background: rgba(255, 255, 255, .78); }
.btn:hover { background: rgba(255, 255, 255, .15); }
html[data-theme="light"] .btn:hover { background: #fff; }
.btn.sm, .btn.xs { border-radius: 999px; }
.btn.grad { background: var(--grad); border: 0; font-weight: 600; box-shadow: 0 10px 26px rgba(29, 109, 181, .42); }
.btn.grad:hover { background: var(--grad); }
.btn.white, .btn.reply { background: var(--white-btn); color: var(--white-btn-text); font-weight: 600; }
.btn.white:hover, .btn.reply:hover { background: var(--white-btn); }
.btn.ok { color: #06281a; font-weight: 600; }
.btn.ghost { background: none; }
.btn.ghost:hover { background: var(--hover2); }
.btn.no, .btn.later, .btn.open { background: transparent; }
.ibtn { border-radius: 999px; }
.ibtn.on { color: var(--gold); }
.chip { background: rgba(255, 255, 255, .07); }
html[data-theme="light"] .chip { background: rgba(255, 255, 255, .7); }
.chip b { color: var(--gold); }
html[data-theme="light"] .chip b { color: var(--rose); }
.chip.on b { color: inherit; opacity: .7; }
.seg { border-radius: 999px; padding: 3px; background: rgba(255, 255, 255, .07); border-color: var(--line2); }
.seg button { border-radius: 999px; font-weight: 500; }
.seg button.on { font-weight: 600; }
.input { background: rgba(255, 255, 255, .08); border-color: var(--line2); border-radius: var(--r14); }
html[data-theme="light"] .input { background-color: rgba(255, 255, 255, .86); }
.input:focus { border-color: rgba(159, 211, 245, .9); box-shadow: 0 0 0 3px rgba(63, 162, 236, .22); }
select.input, select.flat { color-scheme: dark; }
html[data-theme="light"] select.input, html[data-theme="light"] select.flat { color-scheme: light; }
select option { background: var(--solid); color: var(--text); }
.switch[aria-checked="true"] { background: var(--blue); border-color: var(--blue); }
.radio-list button .ico { color: var(--sky); }
html[data-theme="light"] .radio-list button .ico { color: var(--violet); }

/* la feuille (bas de l'écran sur téléphone, fenêtre sur ordinateur) et les messages */
.sheet { background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02)), rgba(13, 30, 49, .86); border: 1px solid var(--line2); border-top-color: var(--bord-haut); }
html[data-theme="light"] .sheet { background: rgba(255, 255, 255, .93); }
html.lite .sheet { background: var(--solid); }
.sheet-bg { background: rgba(3, 9, 16, .55); }
.toast { background: rgba(13, 30, 49, .88); border: 1px solid var(--line2); border-radius: 18px; }
html[data-theme="light"] .toast { background: rgba(11, 31, 51, .92); color: #fff; }

/* ordinateur : la barre latérale devient un panneau de verre flottant */
@media (min-width: 1024px) {
  :root { --side-w: 264px; }
  .sidebar { top: 14px; left: 14px; bottom: 14px; width: calc(var(--side-w) - 28px); padding: 20px 12px 14px 14px; border: 1px solid var(--line2); border-top-color: var(--bord-haut); border-radius: 26px; background: linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02)), var(--surface); box-shadow: var(--shadow); }
  html[data-theme="light"] .sidebar { background: var(--surface); }
  html.lite .sidebar { background: var(--surface); }
  .top { background: transparent; border-bottom: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .top::before { content: ""; position: absolute; inset: 0 0 -14px 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, var(--top-bg) 55%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
  html.lite .top::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--top-bg); -webkit-mask-image: none; mask-image: none; inset: 0; }
  .helpbar { margin: 0 20px 0 calc(var(--side-w) + 6px); border: 1px solid var(--line); border-radius: 16px; top: calc(var(--top-h) + 4px); }
  .tabbar { display: none; }
}
.side-nav::after { background: none; }
.side-nav .gap { border-bottom-color: var(--line); }
.side-nav button { border-radius: 12px; font-weight: 500; height: 38px; }
.side-nav button.on { font-weight: 600; background: rgba(255, 255, 255, .11); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12); }
html[data-theme="light"] .side-nav button.on { background: rgba(43, 143, 214, .14); }
.side-nav button.on::before { background: var(--gold); width: 5px; height: 5px; left: 4px; }
html[data-theme="light"] .side-nav button.on::before { background: var(--blue); }
.side-me strong { font-weight: 600; }

/* les lignes : la sélection en bleu, le « non lu » avec le point doré */
.row.on { background: rgba(43, 143, 214, .14); }
.row.kb-cur { box-shadow: inset 3px 0 0 var(--sky); }
.empty .ico { color: var(--sky); }
html[data-theme="light"] .empty .ico { color: var(--violet); }
a.link, .link, .pa-linkbtn, .linkbtn { color: var(--sky); }
html[data-theme="light"] a.link, html[data-theme="light"] .link, html[data-theme="light"] .pa-linkbtn, html[data-theme="light"] .linkbtn { color: var(--violet); }

@media (prefers-reduced-transparency: reduce) {
  .sidebar, .top, .tabbar, .helpbar, .sheet, .toast, .card, .login-in, .gl { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media print { body::before, body::after { display: none; } html { background: #fff; } }

/* =====================================================================================================================
   Les écrans de la société (pages/veartus.js) : accueil, tâches, clients, connexions, ce qu'on vend
   ===================================================================================================================== */
.vx-hello { margin: 6px 2px 18px; }
.vx-hello h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.vx-hello p { margin: 4px 0 0; color: var(--sec); font-size: 15px; }
.vx-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vx-tiles.small { margin-bottom: 6px; }
.vx-tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 16px 15px; text-align: left; color: var(--text); min-width: 0; transition: transform 160ms var(--ease), background 160ms; }
button.vx-tile:hover { transform: translateY(-2px); }
.vx-tile > .ico { position: absolute; top: 16px; right: 16px; width: 19px; height: 19px; color: var(--mute); }
.vx-tile .n { font-size: 38px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vx-tile .l { font-size: 14.5px; font-weight: 500; }
.vx-tile .s { font-size: 12.5px; color: var(--sec); min-height: 18px; }
.vx-tile.hot .n { color: var(--gold); }
html[data-theme="light"] .vx-tile.hot .n { color: var(--rose); }
.vx-tile.hot::after { content: ""; position: absolute; top: 14px; left: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 209, 102, .18); }
.vx-tile.hot { padding-left: 30px; }
.vx-tile.flat { padding: 13px 15px; border-radius: var(--r17); }
.vx-tile.flat .n { font-size: 26px; }
.vx-na { color: var(--mute); }
.vx-panel { padding: 4px 18px 18px; margin-top: 14px; }
.vx-panel > .lbl:first-child, .vx-ph .lbl { margin-top: 14px; }
.vx-ph { display: flex; align-items: center; gap: 10px; }
.vx-ph .lbl { flex: 1; }
.vx-ph .btn { margin-top: 4px; }
.vx-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 14px; }
.vx-pipe { display: flex; gap: 3px; height: 16px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .06); margin: 4px 0 14px; }
.vx-pipe i { display: block; min-width: 6px; }
.vx-pipe i.e-a_contacter, .vx-legend i.e-a_contacter { background: rgba(214, 228, 242, .42); }
.vx-pipe i.e-attente, .vx-legend i.e-attente { background: #6DB3F2; }
.vx-pipe i.e-relance, .vx-legend i.e-relance { background: #FF9F45; }
.vx-pipe i.e-repondu, .vx-legend i.e-repondu { background: #FFD166; }
.vx-pipe i.e-discussion, .vx-legend i.e-discussion { background: #2B8FD6; }
.vx-pipe i.e-client, .vx-legend i.e-client { background: #5FD39A; }
.vx-legend { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.vx-legend button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--sec); font-size: 13.5px; }
.vx-legend button:hover { background: var(--hover2); color: var(--text); }
.vx-legend button i { width: 9px; height: 9px; border-radius: 50%; }
.vx-legend button b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.vx-ferme { font-size: 13px; color: var(--mute); margin-left: 4px; }
.vx-none { display: flex; align-items: center; gap: 14px; padding: 8px 0 2px; }
.vx-none > .ico { width: 22px; height: 22px; color: var(--sky); }
.vx-none div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vx-none span { color: var(--sec); font-size: 14px; }
.vx-calm { display: flex; align-items: center; gap: 10px; color: var(--sec); font-size: 15px; margin: 10px 0 0; }
.vx-calm .ico { color: var(--green); }
.vx-steps { display: flex; flex-direction: column; }
.vx-steps button { display: flex; align-items: center; gap: 13px; padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; color: var(--text); }
.vx-steps button:last-child { border-bottom: 0; }
.vx-steps button > .ico:first-child { color: var(--sky); width: 19px; height: 19px; }
html[data-theme="light"] .vx-steps button > .ico:first-child { color: var(--violet); }
.vx-steps button > .ico:last-child { color: var(--mute); width: 15px; height: 15px; }
.vx-steps div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vx-steps b { font-weight: 600; font-size: 15px; }
.vx-steps span { color: var(--sec); font-size: 13px; line-height: 1.4; }
.vx-steps button:hover b { text-decoration: underline; text-underline-offset: 3px; }
.vx-pres { display: flex; flex-wrap: wrap; gap: 8px; }
.vx-pu { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; }

/* tâches */
.vx-quick { position: relative; margin: 4px 0 6px; }
.vx-quick > .ico { position: absolute; left: 15px; top: 50%; margin-top: -9px; color: var(--mute); pointer-events: none; }
.vx-quick .input { padding-left: 42px; border-radius: 999px; }
.vx-segn { margin-left: 7px; font-size: 12px; opacity: .65; font-variant-numeric: tabular-nums; }
.vx-task { align-items: flex-start; }
.vx-check { width: 26px; height: 26px; margin-top: 1px; flex: none; border-radius: 50%; border: 1.6px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; color: #06281a; transition: background 140ms, border-color 140ms, transform 140ms var(--ease); }
.vx-check:hover { border-color: var(--green); transform: scale(1.06); }
.vx-check.on { background: var(--green); border-color: var(--green); }
.vx-check .ico { width: 15px; height: 15px; stroke-width: 3; }
.vx-task .t { white-space: normal; }
.vx-task.done .t { color: var(--mute); text-decoration: line-through; text-decoration-thickness: 1px; font-weight: 400; }
.vx-task.late .t { color: var(--text); }
.vx-prio { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); margin-right: 8px; vertical-align: 2px; }
.vx-notes { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--mute); flex: none; margin-top: 4px; }
.vx-notes .ico { width: 14px; height: 14px; }
.vx-journal { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; max-height: 220px; overflow: auto; }
.vx-jl { display: flex; gap: 12px; font-size: 14px; line-height: 1.45; }
.vx-jl time { flex: none; width: 96px; color: var(--mute); font-size: 12px; padding-top: 2px; }
.vx-jl b { font-weight: 600; }
.vx-addnote { display: flex; gap: 8px; align-items: center; }
.vx-addnote .input { flex: 1; }
.hint { font-size: 12.5px; color: var(--mute); margin-top: 6px; line-height: 1.45; }

/* ce qu'on vend */
.vx-lead { padding: 22px 22px 20px; margin-top: 0; }
.vx-lead h1 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -.015em; max-width: 30ch; }
.vx-lead p { margin: 12px 0 0; color: var(--sec); font-size: 15.5px; line-height: 1.55; max-width: 68ch; }
.vx-off { align-items: flex-start; }
.vx-off .t { white-space: normal; }
.vx-off .s { font-size: 14px; line-height: 1.5; margin-top: 3px; }
.vx-off .side { padding-top: 2px; }
.vx-offnote { font-size: 13px; color: var(--amber); margin-top: 6px; line-height: 1.45; }
.vx-ol, .vx-ul { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 9px; font-size: 15px; line-height: 1.5; color: var(--sec); }
.vx-ol b { color: var(--text); font-weight: 600; }
.vx-ol li::marker { color: var(--sky); font-weight: 600; }
.vx-ul { color: var(--text); padding-left: 18px; }
.vx-ul li::marker { color: var(--gold); }
.vx-disc { display: flex; flex-direction: column; }
.vx-dl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.vx-dl span { font-size: 13px; color: var(--sec); font-weight: 500; }
.vx-dl p { margin: 0; font-size: 15px; line-height: 1.55; max-width: 72ch; }

@media (min-width: 720px) { .vx-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .vx-dl { grid-template-columns: 190px minmax(0, 1fr); } }
@media (min-width: 1024px) { .vx-cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } .vx-hello h1 { font-size: 34px; } .vx-lead h1 { font-size: 28px; } }

/* ---------- vues en deux colonnes (prospects, boîte mail) : un seul grand panneau de verre ---------- */
:root { --pane: rgba(21, 39, 61, .96); }
html[data-theme="light"] { --pane: rgba(255, 255, 255, .96); }
html.lite { --pane: #0e2136; }
html.lite[data-theme="light"] { --pane: #ffffff; }
.side-title { font-size: 11.5px; font-weight: 500; color: var(--mute); padding: 6px 12px 5px 14px; }
.split-empty .ico { color: var(--sky); }
@media (min-width: 1024px) {
  .view .page.split, .ml { background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)), var(--surface); border: 1px solid var(--line2); border-top-color: var(--bord-haut); border-radius: var(--r19); box-shadow: var(--shadow); -webkit-backdrop-filter: var(--verre); backdrop-filter: var(--verre); }
  html[data-theme="light"] .view .page.split, html[data-theme="light"] .ml { background: var(--surface); }
  .split-list, .ml .ml-folders, .ml .ml-list, html .ml-folders, html .ml-list { background: transparent; }
  .split-list .toolbar, .pa-split .split-list > #paTop, html .ml .ml-toolbar { background: var(--pane); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
}
.ml-compose { background: var(--fond), var(--bg); }
.tbl th { font-weight: 500; color: var(--sec); }
.bub.out, .pa-bub.out { border-color: rgba(63, 162, 236, .35); }

/* les barres collantes (actions groupées, pied de carte, en-têtes de tableau) : un verre plus dense, pour rester lisibles au défilement */
.bulk, .rp-bulk, .se-foot, .wa-compose, .tbl th, .ml-comp-foot { background: var(--pane); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
html.lite .bulk, html.lite .rp-bulk, html.lite .se-foot, html.lite .wa-compose, html.lite .tbl th { -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (max-width: 1023px) { .helpbar { background: var(--pane); } .split-list .toolbar, .pa-split .split-list > #paTop, .ml-toolbar { background: transparent; } }
.vx-tile.hot { padding-left: 16px; }
.vx-tile.hot::after { display: none; }

/* équipe : l’état du compte (« code à choisir ») se lit en entier */
#uList .row .s { white-space: normal; }

/* la fiche ouverte : les quatre vues tiennent sur une ligne (Poppins est plus large que la police d’origine) */
.pa-split.detail-on .pa-modes.pa-modes4 button { font-size: 12px; padding: 0 2px; white-space: nowrap; letter-spacing: -.01em; gap: 5px; }

/* le pied collant de la carte d’écriture : bord haut doux, coins arrondis */
.se-foot { border-top: 1px solid var(--line2); border-radius: 16px 16px 0 0; }

/* thème clair : les états « actif » gardent leur fond plein (les fonds blancs du thème clair ne doivent pas les recouvrir) */
html[data-theme="light"] .chip.on { background: var(--white-btn); color: var(--white-btn-text); border-color: var(--white-btn); }
html[data-theme="light"] .chip.on b { color: inherit; }
html[data-theme="light"] .btn.white, html[data-theme="light"] .btn.reply, html[data-theme="light"] .btn.white:hover, html[data-theme="light"] .btn.reply:hover { background: var(--white-btn); color: var(--white-btn-text); }
html[data-theme="light"] .btn.grad, html[data-theme="light"] .btn.grad:hover { background: var(--grad); color: #fff; }
html[data-theme="light"] .btn.danger { background: rgba(214, 69, 69, .1); }

/* ====================================================================================================================
   DEVIS — la feuille de devis, la grille de prix, les documents à imprimer
   ==================================================================================================================== */
.dv-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 16px; }
.dv-links .chip .ico { width: 15px; height: 15px; }
.dv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row .side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.row .side .v { font-size: 12.5px; color: var(--sec); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dv-ed { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 16px; align-items: start; padding-bottom: 96px; }
.dv-main { min-width: 0; }
.dv-fs { border: 0; padding: 0; margin: 0; min-width: 0; }
.dv-fs[disabled] { opacity: .62; }
.dv-fold > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; padding: 16px 0 12px; font-weight: 600; }
.dv-fold > summary::-webkit-details-marker { display: none; }
.dv-fold > summary .ico { width: 17px; height: 17px; color: var(--mute); transition: transform 160ms var(--ease); }
.dv-fold:not([open]) > summary .ico { transform: rotate(-90deg); }
.dv-fold > summary em { margin-left: auto; font-style: normal; font-weight: 400; font-size: 13px; color: var(--mute); }
.dv-qs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 18px; }
.dv-opts { display: flex; flex-wrap: wrap; gap: 7px; }
.dv-fh { display: flex; align-items: baseline; gap: 10px; padding-top: 16px; }
.dv-fh h2 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.dv-fn { font-size: 12.5px; font-weight: 600; color: var(--gold); min-width: 20px; }
html[data-theme="light"] .dv-fn { color: var(--rose); }
.dv-fn:not(:empty)::after { content: " choisis"; font-weight: 400; color: var(--mute); }
.dv-fi { margin: 4px 0 6px; color: var(--sec); font-size: 14px; line-height: 1.45; max-width: 68ch; }
.dv-item { display: flex; align-items: flex-start; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); }
.dv-item .switch { margin-top: 2px; }
.dv-item .switch[disabled] { opacity: .55; cursor: default; }
.dv-it { flex: 1; min-width: 0; }
.dv-in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.dv-in b { font-size: 15.5px; font-weight: 600; }
.dv-it p { margin: 3px 0 0; color: var(--sec); font-size: 13.5px; line-height: 1.45; max-width: 70ch; }
.dv-item:not(.on) .dv-in b { color: var(--sec); font-weight: 500; }
.dv-px { flex: none; max-width: 150px; text-align: right; font-size: 12.5px; color: var(--sec); font-variant-numeric: tabular-nums; line-height: 1.4; padding-top: 3px; }
.dv-item.on .dv-px { color: var(--text); }
.dv-extra { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 10px; }
.dv-mini { display: flex; flex-direction: column; gap: 4px; width: 132px; }
.dv-mini.wide { width: 250px; } .dv-mini.note { flex: 1 1 240px; width: auto; }
.dv-mini span { font-size: 11.5px; color: var(--mute); }
.dv-mini .input { min-height: 40px; font-size: 14px; }
.dv-aside { padding-top: 14px; margin-top: 14px; }
.dv-rh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.dv-rh b { font-size: 16px; }
.dv-rf { margin: 12px 0 3px; font-size: 11.5px; font-weight: 500; color: var(--mute); }
.dv-rl { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 3px 0; }
.dv-rl span { min-width: 0; } .dv-rl em { font-style: normal; color: var(--sec); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dv-al { margin: 12px 0 0; font-size: 13px; }
.dv-tot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line2); }
.dv-tl { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0; font-size: 14px; }
.dv-tl b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dv-tl.big b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.dv-tl.sub { color: var(--sec); font-size: 13px; } .dv-tl.sub b { font-weight: 500; }
.dv-marge { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(95, 211, 154, .10); border: 1px solid rgba(95, 211, 154, .28); font-size: 13.5px; }
.dv-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.dv-acts .btn { justify-content: center; }
.dv-cache { margin-top: 14px; }
.dv-bar { position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 999px; background: var(--pane); border: 1px solid var(--line2); box-shadow: var(--shadow); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.dv-gt { display: flex; flex-direction: column; }
.dv-gr { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.dv-gr.head { display: none; }
.dv-gr .n { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.dv-gr .n b { font-weight: 500; font-size: 14.5px; } .dv-gr .n i { font-style: normal; }
.dv-gr > span[data-l] { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-variant-numeric: tabular-nums; }
.dv-gr > span[data-l]::before { content: attr(data-l); font-size: 12px; color: var(--mute); }
.dv-gr .two { gap: 6px; } .dv-gr .two .input { width: 74px; }
.dv-gi { width: 120px; min-height: 38px; text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; }
.dv-gacts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; }
@media (max-width: 719px) { .dv-item { flex-wrap: wrap; } .dv-px { order: 3; flex: 1 1 100%; max-width: none; text-align: left; padding: 0 0 0 62px; } }
@media (min-width: 720px) {
  .dv-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dv-qs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dv-gr, .dv-gr.head { display: grid; grid-template-columns: minmax(0, 1fr) 130px 170px; }
  .dv-grille .dv-gr:has(.m), .dv-grille .dv-gr.head:has(span:nth-child(5)) { grid-template-columns: minmax(0, 1fr) 124px 166px 130px 100px; }
  .dv-gr.head { border-top: 0; font-size: 12px; color: var(--mute); padding: 0 0 4px; } .dv-gr.head span { text-align: right; }
  .dv-gr > span[data-l] { justify-content: flex-end; } .dv-gr > span[data-l]::before { content: none; }
}
@media (min-width: 1180px) {
  .dv-ed { grid-template-columns: minmax(0, 1fr) 340px; padding-bottom: 24px; }
  .dv-aside { position: sticky; top: 132px; max-height: calc(100vh - 150px); overflow: auto; }
  .dv-bar { display: none; }
}

/* les documents : une feuille de papier blanc, à l'écran comme à l'impression, quel que soit le thème */
.dvd-page { max-width: 900px; }
.dvd-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.dvd-bar .btn.grad { margin-left: auto; }
.dvd { background: #fff; color: #10233a; border-radius: 14px; padding: 44px 48px 30px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); font-size: 13.5px; line-height: 1.5; }
.dvd-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 20px; border-bottom: 2px solid #10233a; }
.dvd-brand b { display: block; font-size: 17px; font-weight: 700; letter-spacing: .3em; } .dvd-brand span { font-size: 11.5px; color: #5b6b7d; }
.dvd-t { text-align: right; } .dvd-t h1 { margin: 0; font-size: 25px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; } .dvd-t p { margin: 4px 0 0; color: #5b6b7d; font-size: 12.5px; max-width: 46ch; margin-left: auto; }
.dvd-who { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0 6px; }
.dvd-who span { display: block; font-size: 11px; color: #5b6b7d; margin-bottom: 2px; } .dvd-who b { display: block; font-size: 15px; } .dvd-who em { display: block; font-style: normal; color: #33475c; font-size: 12.5px; }
.dvd-who.blank { grid-template-columns: 1fr 1fr; gap: 14px 24px; } .dvd-who.blank i { display: block; height: 22px; border-bottom: 1px solid #9aa8b6; }
.dvd-intro { margin: 14px 0 0; color: #33475c; }
.dvd-f { margin-top: 22px; break-inside: auto; }
.dvd-f h2 { margin: 0 0 6px; font-size: 15.5px; font-weight: 700; padding-bottom: 5px; border-bottom: 1px solid #c9d3dd; break-after: avoid; }
.dvd-fi { margin: 0 0 4px; color: #5b6b7d; font-size: 12px; }
.dvd table { width: 100%; border-collapse: collapse; }
.dvd th { text-align: right; font-size: 10.5px; font-weight: 500; color: #5b6b7d; padding: 2px 0 2px 12px; white-space: nowrap; }
.dvd td { vertical-align: top; padding: 8px 0; border-bottom: 1px solid #e4eaf0; break-inside: avoid; }
.dvd td b { font-weight: 600; } .dvd td b i { font-style: normal; font-weight: 400; color: #5b6b7d; }
.dvd td p { margin: 2px 0 0; color: #46586b; font-size: 12px; line-height: 1.45; } .dvd td p.n { color: #10233a; font-style: italic; }
.dvd td u { text-decoration: none; font-size: 10.5px; color: #8a5a00; border: 1px solid #e0c890; border-radius: 99px; padding: 1px 7px; margin-left: 4px; white-space: nowrap; }
.dvd td.p { text-align: right; white-space: nowrap; padding-left: 14px; width: 104px; font-variant-numeric: tabular-nums; font-weight: 500; }
.dvd .box { display: inline-block; width: 13px; height: 13px; border: 1.4px solid #10233a; border-radius: 3px; margin-right: 8px; vertical-align: -2px; }
.dvd .box.on { background: linear-gradient(135deg, transparent 42%, #10233a 42%, #10233a 58%, transparent 58%), linear-gradient(45deg, transparent 42%, #10233a 42%, #10233a 58%, transparent 58%); }
.dvd.feuille td p { margin-left: 21px; }
.dvd-tot { margin-top: 22px; padding: 14px 16px; border: 1.5px solid #10233a; border-radius: 10px; break-inside: avoid; }
.dvd-tot div { display: grid; grid-template-columns: 1fr 120px 150px; gap: 10px; padding: 3px 0; } .dvd-tot div b { text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.dvd-tot div.big { margin-top: 6px; padding-top: 8px; border-top: 1px solid #c9d3dd; font-size: 16px; } .dvd-tot div.big b, .dvd-tot div.big span { font-weight: 700; }
.dvd-tot p { margin: 8px 0 0; font-size: 11.5px; color: #46586b; }
.dvd .warn { margin: 12px 0 0; padding: 8px 12px; border: 1px solid #d99a00; background: #fff6dd; color: #6b4a00; border-radius: 8px; font-size: 12px; font-weight: 500; }
.dvd dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 5px 18px; } .dvd dt { color: #46586b; font-size: 12.5px; } .dvd dd { margin: 0; font-weight: 500; }
.dvd-c { white-space: pre-wrap; margin: 0; }
.dvd-q { margin: 9px 0; break-inside: avoid; } .dvd-q b { font-weight: 500; } .dvd-q p { margin: 4px 0 0; color: #33475c; font-size: 12.5px; }
.dvd-lines i { display: block; height: 24px; border-bottom: 1px solid #9aa8b6; }
.dvd-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 30px; break-inside: avoid; } .dvd-sign span { font-size: 11.5px; color: #5b6b7d; } .dvd-sign i { display: block; height: 54px; border-bottom: 1px solid #10233a; }
.dvd footer { margin-top: 26px; padding-top: 10px; border-top: 1px solid #c9d3dd; font-size: 10.5px; color: #5b6b7d; text-align: center; }
@media (max-width: 640px) { .dvd { padding: 24px 18px; border-radius: 10px; } .dvd-h { flex-direction: column; gap: 10px; } .dvd-t { text-align: left; } .dvd-t p { margin-left: 0; } .dvd td.p { width: auto; } .dvd-tot div { grid-template-columns: 1fr auto auto; } .dvd dl { grid-template-columns: 1fr; } }
@media print {
  @page { margin: 13mm 12mm; }
  :root, html[data-theme] { color-scheme: light !important; background: #fff !important; } /* sinon les marges s'impriment en sombre */
  body { background: #fff !important; color: #10233a; }
  .dvd-bar, .dv-bar { display: none !important; }
  .page.dvd-page { max-width: none; padding: 0; margin: 0; }
  .dvd { box-shadow: none; border-radius: 0; padding: 0; font-size: 11.5pt; }
  .main, .view, #app { margin: 0 !important; padding: 0 !important; background: #fff !important; }
}

a.chip { text-decoration: none; }
.dv-ap { margin: 2px 0 0; text-align: center; }

/* ====================================================================================================================
   DEVIS, deuxième version — un parcours en étapes, des objectifs, des cartes, le schéma de l'installation
   ==================================================================================================================== */
.vd-ico { width: 20px; height: 20px; flex: none; }
.vd-steps { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 -2px; scrollbar-width: none; }
.vd-steps::-webkit-scrollbar { display: none; }
.vd-steps button { display: inline-flex; align-items: center; gap: 9px; flex: none; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid var(--line2); background: var(--hover); color: var(--sec); font-size: 14px; font-weight: 500; white-space: nowrap; }
.vd-steps button i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface3, rgba(255,255,255,.1)); font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--text); }
.vd-steps button.on { background: var(--white-btn); color: var(--white-btn-text); border-color: var(--white-btn); font-weight: 600; }
.vd-steps button.on i { background: var(--gold); color: #0b1b2c; }
.dv-sh { margin: 6px 2px 16px; }
.dv-sh h1 { margin: 0; font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.dv-sh p { margin: 8px 0 0; color: var(--sec); font-size: 15.5px; line-height: 1.5; max-width: 66ch; }
.dv-nav { display: flex; justify-content: space-between; gap: 10px; margin: 22px 0 6px; }
.dv-nav .btn { min-height: 50px; padding: 0 20px; } .dv-nav .btn .ico { width: 17px; height: 17px; }
.dv-famille { margin-top: 26px; } .dv-famille:first-of-type { margin-top: 4px; }
.dv-fh { display: flex; align-items: center; gap: 10px; padding-top: 0; }
.dv-fico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(63, 162, 236, .16); color: var(--sky); flex: none; }
html[data-theme="light"] .dv-fico { color: #1D6DB5; }
.dv-famille .dv-fi { margin: 6px 0 12px 46px; }
/* les objectifs : de grandes cartes, une idée chacune */
.vd-objs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.vd-obj { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 14px; align-items: start; text-align: left; padding: 18px 18px 16px; border-radius: 20px; border: 1.5px solid var(--line2); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015)), var(--surface); color: var(--text); transition: border-color 140ms, transform 140ms var(--ease); }
.vd-obj:hover { transform: translateY(-2px); border-color: var(--sky); }
.vd-obj-ico { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: rgba(63, 162, 236, .16); color: var(--sky); } .vd-obj-ico .vd-ico { width: 24px; height: 24px; }
.vd-obj-t { font-size: 17.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.vd-obj-p { color: var(--sec); font-size: 14px; line-height: 1.45; }
.vd-obj-l { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.vd-obj-l i { font-style: normal; font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px dashed var(--line2); color: var(--mute); }
.vd-obj-l i.on { border-style: solid; border-color: rgba(95, 211, 154, .5); color: var(--text); background: rgba(95, 211, 154, .10); }
.vd-obj-b { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 7px; justify-self: start; margin-top: 12px; padding: 8px 15px; border-radius: 999px; background: var(--hover2, rgba(255,255,255,.08)); font-size: 13.5px; font-weight: 600; } .vd-obj-b .vd-ico { width: 16px; height: 16px; }
.vd-obj.tout { border-color: #5FD39A; background: linear-gradient(180deg, rgba(95, 211, 154, .14), rgba(95, 211, 154, .04)), var(--surface); }
.vd-obj.tout .vd-obj-b { background: #5FD39A; color: #06281a; } .vd-obj.tout .vd-obj-ico { background: #5FD39A; color: #06281a; }
.vd-obj.partie { border-color: var(--gold); } .vd-obj.partie .vd-obj-b { background: var(--gold); color: #2a1d00; }
/* une prestation = une carte : on voit ce que c'est, un exemple, ce qui va avec */
.vd-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.vd-card { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 12px; padding: 15px 16px 14px 14px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color 140ms, background 140ms; }
.vd-card:hover { border-color: var(--line2); }
.vd-card.fixe { cursor: default; }
.vd-tog { grid-row: span 3; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line2); background: transparent; color: var(--sec); flex: none; }
.vd-card.on { border-color: #5FD39A; background: linear-gradient(180deg, rgba(95, 211, 154, .12), rgba(95, 211, 154, .03)), var(--surface); }
.vd-card.on .vd-tog { background: #5FD39A; border-color: #5FD39A; color: #06281a; }
.vd-tog[disabled] { opacity: 1; cursor: default; }
.vd-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-right: 4px; }
.vd-top h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.005em; line-height: 1.3; }
.vd-tag { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line2); color: var(--sec); white-space: nowrap; }
.vd-tag.violet { border-color: rgba(159, 211, 245, .55); color: var(--sky); } .vd-tag.amber { border-color: rgba(255, 159, 69, .6); color: #FF9F45; }
html[data-theme="light"] .vd-tag.violet { color: #1D6DB5; border-color: #9cc4e8; } html[data-theme="light"] .vd-tag.amber { color: #a85b00; }
.vd-desc { margin: 4px 0 0; color: var(--sec); font-size: 14px; line-height: 1.5; }
.vd-ex { margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--hover); font-size: 13.5px; line-height: 1.45; color: var(--text); }
.vd-ex b { font-weight: 600; color: var(--gold); margin-right: 3px; } html[data-theme="light"] .vd-ex b { color: #a86a00; }
.vd-lien { display: flex; align-items: flex-start; gap: 7px; margin: 7px 0 0; font-size: 12.5px; color: var(--mute); line-height: 1.4; } .vd-lien .vd-ico { width: 14px; height: 14px; margin-top: 2px; }
.vd-prix { grid-column: 2; margin-top: 10px; font-size: 13px; font-weight: 500; color: var(--sec); font-variant-numeric: tabular-nums; } .vd-card.on .vd-prix { color: var(--text); }
.vd-card .dv-extra { cursor: default; }
.vd-more { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 9px 16px; border-radius: 999px; border: 1px dashed var(--line2); color: var(--sec); font-size: 13.5px; font-weight: 500; } .vd-more .vd-ico { width: 15px; height: 15px; }
.vd-more:hover { color: var(--text); border-style: solid; }
/* le schéma « l'installation » */
.vd-plan { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.vd-hub { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(63, 162, 236, .30), rgba(29, 109, 181, .16)); border: 1px solid rgba(159, 211, 245, .35); }
.vd-hub .vmark { width: 36px; height: 36px; border-radius: 11px; } .vd-hub b { display: block; font-size: 15px; line-height: 1.25; } .vd-hub span { font-size: 12px; color: var(--sec); }
.vd-zone { position: relative; padding: 2px 0 2px 16px; border-left: 2px solid var(--line2); margin-left: 17px; }
.vd-zone h4 { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; font-size: 12px; font-weight: 500; color: var(--mute); } .vd-zone h4 .vd-ico { width: 14px; height: 14px; }
.vd-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.vd-chip { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--hover); border: 1px solid var(--line); line-height: 1.3; }
.vd-chip.p { background: rgba(255, 209, 102, .14); border-color: rgba(255, 209, 102, .40); } .vd-chip.c { background: rgba(63, 162, 236, .16); border-color: rgba(159, 211, 245, .40); }
.vd-vide { margin: 0; font-size: 12.5px; color: var(--mute); }
@media (min-width: 760px) { .vd-objs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .vd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* « Ce qu'on vend » : des fiches lisibles, aérées, une par prestation */
.vx-find { margin: 18px 0 6px; max-width: 520px; position: relative; } .vx-find .ico-wrap { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--mute); display: grid; } .vx-find .ico-wrap .ico { width: 18px; height: 18px; } .vx-find .input { padding-left: 44px; border-radius: 999px; min-height: 50px; }
.vx-cat { margin-top: 34px; } .vx-cat .dv-fh .meta { margin-left: 2px; }
.vx-pcs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.vx-pc { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left; padding: 18px 18px 14px; border-radius: 18px; border: 1px solid var(--line2); background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)), var(--surface); color: var(--text); transition: transform 140ms var(--ease), border-color 140ms; }
.vx-pc:hover { transform: translateY(-2px); border-color: var(--sky); }
.vx-pct { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; } .vx-pct b { font-size: 16.5px; font-weight: 600; letter-spacing: -.005em; }
.vx-pcd { color: var(--sec); font-size: 14.5px; line-height: 1.55; }
.vx-pce { font-size: 13.5px; line-height: 1.5; padding: 9px 12px; border-radius: 12px; background: var(--hover); border-left: 3px solid var(--gold); }
.vx-pcm { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--sky); } .vx-pcm .ico { width: 14px; height: 14px; } html[data-theme="light"] .vx-pcm { color: #1D6DB5; }
.vx-fiche { display: flex; flex-direction: column; gap: 18px; padding-bottom: 6px; }
.vx-fp { display: flex; flex-wrap: wrap; gap: 6px; }
.vx-fb h4 { margin: 0 0 5px; font-size: 12.5px; font-weight: 500; color: var(--mute); }
.vx-fb p { margin: 0; font-size: 15px; line-height: 1.6; max-width: 68ch; } .vx-fb p.big { font-size: 17px; line-height: 1.5; }
.vx-fb .vx-ex { padding: 12px 14px; border-radius: 14px; background: var(--hover); border-left: 3px solid var(--gold); }
@media (min-width: 900px) { .vx-pcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .vx-pcs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ====================================================================================================================
   LE SCHÉMA (v1.7) — la scène 3D : elle reste collée sous la barre du haut pendant qu'on défile les chapitres
   ==================================================================================================================== */
.view .page.s3-page { max-width: none; }
.view.s3-host { padding-bottom: 0; }
.s3 { position: relative; margin: -10px -16px 0; }
.s3-stage { position: sticky; top: calc(var(--top-h) + var(--sat)); height: calc(100dvh - var(--top-h) - var(--sat)); min-height: 420px; overflow: hidden; --bas: calc(var(--tab-h) + var(--sab) + 12px); }
.s3-stage:fullscreen { background: radial-gradient(1100px 700px at 12% -8%, rgba(63, 162, 236, .45), transparent 62%), var(--bg); --bas: 20px; }
.s3-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.s3-stage canvas.tient { cursor: grabbing; }
/* la légende du chapitre */
.s3-cap { position: absolute; left: 14px; right: 14px; bottom: var(--bas); padding: 14px 16px 14px; max-width: 430px; max-height: 46%; overflow: auto; -webkit-backdrop-filter: var(--verre); backdrop-filter: var(--verre); }
.s3-cap .s3-n { font-size: 12px; color: var(--mute); margin-bottom: 4px; } .s3-cap .s3-n b { color: var(--gold); font-weight: 700; font-size: 14px; }
.s3-cap h2 { margin: 0 0 6px; font-size: 19px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.s3-cap h3 { margin: 14px 0 6px; font-size: 12px; font-weight: 600; color: var(--mute); }
.s3-cap p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--sec); }
.s3-k { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.s3-cap.min { display: none; }
.s3-leg span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--sec); margin-right: 6px; }
.s3-leg i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1.6px solid transparent; background: var(--blue); }
.s3-leg i.e2 { border-color: var(--amber); background: transparent; } .s3-leg i.e3 { border: 1.6px dashed var(--violet); background: transparent; }
.s3-leg i.l1, .s3-leg i.l2 { width: 18px; height: 0; border: 0; border-top: 2px dashed var(--gold); border-radius: 0; background: none; } .s3-leg i.l2 { border-top: 2px solid var(--sky); }
.s3-ol { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .s3-ol .btn { height: auto; min-height: 30px; padding: 5px 11px; text-align: left; white-space: normal; line-height: 1.25; font-size: 12.5px; font-weight: 500; }
.s3-ol .btn i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 7px; flex: none; }
.s3-nav { display: flex; gap: 8px; margin-top: 12px; } .s3-nav .btn svg { width: 15px; height: 15px; }
@media (max-width: 899px) { .s3-cap .s3-oh, .s3-cap .s3-objs { display: none; } } /* sur téléphone, les objectifs sont dans « Options » */
/* le fil d'Ariane, les options, la recherche */
.s3-fil { position: absolute; left: 12px; top: 34px; right: 110px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12.5px; color: var(--sec); pointer-events: none; }
.s3-fil > * { pointer-events: auto; } .s3-fil i { font-style: normal; color: var(--mute); }
.s3-fil button { all: unset; cursor: pointer; color: var(--sec); padding: 3px 0; border-bottom: 1px solid var(--line2); } .s3-fil button:hover { color: var(--text); border-color: var(--text); } .s3-fil span { color: var(--text); font-weight: 600; }
.s3-fil button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.s3-opt { position: absolute; top: 28px; right: 10px; z-index: 4; -webkit-backdrop-filter: var(--verre); backdrop-filter: var(--verre); }
.s3-tools { position: absolute; top: 68px; right: 10px; left: 10px; z-index: 4; display: none; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r19); background: var(--solid); border: 1px solid var(--line2); box-shadow: var(--shadow); max-height: 70%; overflow: auto; }
.s3-tools.open { display: flex; }
.s3-tools .input { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 999px; width: 100%; min-width: 0; }
.s3-btns { display: flex; flex-wrap: wrap; gap: 6px; } .s3-btns .btn.ico { min-width: 36px; padding: 0 10px; font-size: 17px; line-height: 1; } .s3-btns .btn.off { opacity: .55; } .s3-btns .btn[aria-pressed="true"]#s3Joue { background: var(--gold); color: #1c1400; border-color: transparent; }
.s3-find { position: relative; }
.s3-res { position: absolute; left: 0; right: 0; top: 42px; z-index: 6; padding: 6px; display: flex; flex-direction: column; gap: 2px; background: var(--solid); max-height: 320px; overflow: auto; }
.s3-res[hidden] { display: none; } .s3-res p { margin: 8px 10px; font-size: 13px; color: var(--mute); }
.s3-res button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; } .s3-res button:hover, .s3-res button:focus-visible { background: var(--hover2); }
.s3-res button i { width: 10px; height: 10px; border-radius: 50%; flex: none; } .s3-res b { display: block; font-size: 13.5px; font-weight: 600; } .s3-res small { font-size: 11.5px; color: var(--mute); }
/* les chapitres, la bulle, l'aide du départ */
.s3-rail { position: absolute; left: 10px; top: 8px; display: flex; flex-direction: row; gap: 2px; }
.s3-rail button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 7px 4px; }
.s3-rail button i { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); display: block; transition: transform .2s, background .2s; }
.s3-rail button.on i { background: var(--gold); transform: scale(1.5); } .s3-rail button:hover i { background: var(--sky); }
.s3-rail button span { display: none; } .s3-rail button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.s3-tip { position: absolute; z-index: 5; max-width: 280px; padding: 10px 12px; pointer-events: none; background: var(--solid); border-radius: 14px; }
.s3-tip[hidden] { display: none; } .s3-tip b { display: block; font-size: 13.5px; font-weight: 600; } .s3-tip small { display: block; font-size: 11.5px; color: var(--mute); margin-top: 1px; }
.s3-tip p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--sec); } .s3-tip em { display: block; margin-top: 6px; font-style: normal; font-size: 11.5px; color: var(--sky); }
.s3-hint { position: absolute; left: 0; right: 0; top: 66px; margin: 0; text-align: center; font-size: 12px; color: var(--mute); pointer-events: none; transition: opacity .4s; } .s3-hint.off { opacity: 0; }
/* la fiche d'une prestation */
.s3-panel { position: absolute; left: 10px; right: 10px; bottom: var(--bas); max-height: 52%; overflow: auto; padding: 14px 16px 16px; z-index: 3; -webkit-backdrop-filter: var(--verre); backdrop-filter: var(--verre); }
.s3-panel[hidden] { display: none; }
.s3-panel header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; } .s3-pp { display: flex; flex-wrap: wrap; gap: 6px; }
.s3-panel h3 { margin: 10px 0 2px; font-size: 19px; line-height: 1.22; font-weight: 700; letter-spacing: -.015em; }
.s3-panel section { margin-top: 14px; padding: 2px 0 2px 12px; border-left: 2px solid var(--line2); transition: border-color .3s; } .s3-panel section.flash { border-left-color: var(--gold); }
.s3-panel h4 { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--mute); }
.s3-panel p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--sec); } .s3-panel p.big { font-size: 15px; color: var(--text); } .s3-panel p.ex { color: var(--text); } .s3-panel p.mut { color: var(--mute); font-size: 12.5px; margin-top: 6px; }
.s3-v { display: flex; flex-wrap: wrap; gap: 6px; } .s3-v .btn { height: auto; min-height: 30px; padding: 5px 11px; white-space: normal; text-align: left; line-height: 1.25; } .s3-v .btn svg { width: 14px; height: 14px; flex: none; }
.s3-steps { pointer-events: none; }
html[data-theme="light"] .s3-cap .s3-n b { color: var(--blue); } html[data-theme="light"] .s3-rail button.on i { background: var(--blue); } html[data-theme="light"] .s3-tip em { color: var(--blue); }
html[data-theme="light"] .s3-stage:fullscreen { background: var(--bg); }
@media (min-width: 900px) {
  .s3 { margin: -20px -32px 0; }
  .s3-stage { top: var(--top-h); height: calc(100dvh - var(--top-h)); --bas: 24px; }
  .s3-stage:fullscreen { --bas: 24px; }
  .s3-cap { left: 28px; bottom: var(--bas); right: auto; width: 400px; max-height: 62%; padding: 18px 20px; } .s3-cap h2 { font-size: 22px; }
  .s3-cap.min { display: block; width: auto; max-width: 400px; } .s3-cap.min p, .s3-cap.min .s3-k, .s3-cap.min h3, .s3-cap.min .s3-ol { display: none; } .s3-cap.min h2 { font-size: 17px; margin: 0; }
  .s3-fil { left: 28px; top: 20px; right: auto; max-width: 30%; font-size: 13px; }
  .s3-opt { display: none; }
  .s3-tools { display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-end; align-items: center; left: auto; top: 14px; right: 24px; max-width: calc(100% - 330px); padding: 0; gap: 6px 8px; background: none; border: 0; box-shadow: none; overflow: visible; max-height: none; }
  .s3-tools .input { width: auto; height: 34px; -webkit-backdrop-filter: var(--verre); backdrop-filter: var(--verre); } .s3-find .input { width: 200px; } .s3-tools select.input { max-width: 178px; text-overflow: ellipsis; }
  .s3-btns .btn { -webkit-backdrop-filter: var(--verre); backdrop-filter: var(--verre); }
  .s3-panel { left: auto; right: 24px; top: 104px; bottom: 24px; width: 360px; max-height: none; padding: 18px 20px 22px; }
  .s3-rail { left: auto; right: 14px; top: 54%; transform: translateY(-50%); flex-direction: column; gap: 0; align-items: flex-end; }
  .s3-stage:has(.s3-panel:not([hidden])) .s3-rail { display: none; }
  .s3-rail button { position: relative; padding: 6px 4px; }
  .s3-rail button span { display: block; position: absolute; right: 22px; top: 50%; transform: translate(6px, -50%); font-size: 11.5px; color: var(--sec); background: var(--solid); border: 1px solid var(--line2); border-radius: 999px; padding: 3px 10px; opacity: 0; transition: opacity .2s, transform .2s; white-space: nowrap; pointer-events: none; }
  .s3-rail:hover button span, .s3-rail button:focus-visible span { opacity: 1; transform: translate(0, -50%); } .s3-rail button.on span { color: var(--text); border-color: var(--gold); }
  .s3-hint { top: auto; bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) { .s3-rail button i, .s3-hint { transition: none; } }

/* ====================================================================================================================
   v1.8 — « Ce qu'on vend » en sous-menu, le calendrier, la lecture d'un fichier de prospects
   ==================================================================================================================== */
/* Ce qu'on vend : la recherche et le sous-menu restent collés en haut ; un seul groupe à la fois, en lignes courtes */
.of-top { position: sticky; top: calc(var(--top-h) + var(--sat)); z-index: 5; margin: -10px -16px 12px; padding: 10px 16px 8px; background: var(--top-bg); -webkit-backdrop-filter: var(--verre); backdrop-filter: var(--verre); border-bottom: 1px solid var(--line); }
.of-top .vx-find { margin: 0 0 8px; }
.of-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.of-tabs::-webkit-scrollbar { display: none; }
.of-tabs button { all: unset; cursor: pointer; flex: none; scroll-snap-align: center; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); font-size: 14px; font-weight: 500; color: var(--sec); white-space: nowrap; background: var(--hover); }
.of-tabs button span { font-size: 11.5px; color: var(--mute); font-weight: 500; }
.of-tabs button.on { background: var(--white-btn); color: var(--white-btn-text); border-color: transparent; font-weight: 600; } .of-tabs button.on span { color: inherit; opacity: .6; }
.of-tabs button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.of-info { margin: 4px 2px 12px; font-size: 13.5px; line-height: 1.5; color: var(--sec); }
.of-fam { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 14px; } .of-fam h2 { margin: 0 0 3px; font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; } .of-fam p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--sec); }
.of-pp { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.of-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.of-row { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; min-height: 58px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)), var(--surface); }
.of-row:hover, .of-row:focus-visible { border-color: var(--sky); } .of-row:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.of-e { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--green); } .of-e.reconstruire { background: var(--amber); } .of-e.etude { background: transparent; border: 2px dashed var(--violet); box-sizing: border-box; }
.of-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; } .of-m b { font-size: 15.5px; font-weight: 600; line-height: 1.25; }
.of-m small { font-size: 13px; line-height: 1.4; color: var(--sec); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .of-m em { font-style: normal; color: var(--mute); }
.of-row > .ico, .of-row > svg { flex: none; width: 16px; height: 16px; color: var(--mute); } .of-row .pill { flex: none; }
.of-liens { margin-top: 22px; }
.of-gs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.of-g { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 10px 12px; min-height: 60px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)), var(--surface); }
.of-g:hover, .of-g:focus-visible { border-color: var(--sky); } .of-g:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.of-g .of-m small { -webkit-line-clamp: 1; } .of-g > svg, .of-g > .ico { flex: none; width: 16px; height: 16px; color: var(--mute); } .of-g .dv-fico svg { width: 20px; height: 20px; }
.of-n { flex: none; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--hover2); font-size: 12.5px; font-weight: 600; display: grid; place-items: center; }
html[data-theme="light"] .of-g { background: var(--surface); }
@media (min-width: 900px) { .of-gs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
html[data-theme="light"] .of-row { background: var(--surface); }
@media (max-width: 899px) { .of-row .pill { display: none; } } /* sur téléphone, le rond de couleur suffit */
@media (min-width: 900px) { .of-top { top: var(--top-h); margin: -20px -32px 16px; padding: 14px 32px 10px; } .of-tabs { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; } .of-top .vx-find { max-width: 460px; } .of-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.vx-dh { display: flex; gap: 6px; } .vx-dh .input { min-width: 0; } .vx-dh input[type="time"] { flex: 0 0 104px; }

/* le calendrier */
.cl-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cl-nav { display: flex; align-items: center; gap: 6px; } .cl-nav h2 { margin: 0 4px; min-width: 150px; text-align: center; font-size: 19px; font-weight: 700; letter-spacing: -.015em; text-transform: capitalize; }
.cl-qui { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 2px 16px; } .cl-qui::-webkit-scrollbar { display: none; }
.cl-qui .chip { flex: none; } .cl-qui .chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; } .cl-qui .chip span { font-size: 11.5px; opacity: .65; margin-left: 2px; }
.cl-tete { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 4px; } .cl-tete span { text-align: center; font-size: 11.5px; color: var(--mute); }
.cl-cases { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cl-j { position: relative; min-height: 54px; padding: 6px 4px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--hover); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cl-j.hors { opacity: .42; } .cl-j.choisi { border-color: var(--sky); background: var(--on-row); } .cl-j.vise { border-color: var(--gold); }
.cl-j:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.cl-n { font-size: 13px; font-weight: 600; width: 24px; height: 24px; line-height: 24px; text-align: center; border-radius: 50%; } .cl-j.auj .cl-n { background: var(--blue); color: #fff; }
.cl-j.retard .cl-n { box-shadow: 0 0 0 2px var(--red); }
.cl-ps { display: none; } .cl-pts { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; } .cl-pts i { width: 7px; height: 7px; border-radius: 50%; display: block; } .cl-pts i.fait { opacity: .35; }
.cl-jour { margin-top: 14px; padding: 14px 16px 16px; } .cl-jour header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; } .cl-jour h3, .cl-jr h3, .cl-sd h3 { margin: 0; font-size: 16px; font-weight: 600; }
.cl-jour h3::first-letter, .cl-jr h3::first-letter { text-transform: uppercase; }
.cl-list { display: flex; flex-direction: column; gap: 6px; }
.cl-t { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--hover); cursor: pointer; }
.cl-t:hover, .cl-t:focus-visible { border-color: var(--sky); } .cl-t > i { flex: none; width: 4px; align-self: stretch; border-radius: 2px; }
.cl-t b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; } .cl-t small { font-size: 12.5px; color: var(--mute); } .cl-t time { color: var(--sky); font-weight: 600; }
.cl-t.fait b { text-decoration: line-through; color: var(--mute); font-weight: 500; } .cl-t.retard small { color: var(--red); }
.cl-ck { all: unset; cursor: pointer; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; box-sizing: border-box; } .cl-ck svg { width: 14px; height: 14px; } .cl-t.fait .cl-ck { background: var(--green); border-color: var(--green); color: #06281a; }
.cl-ck:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.cl-jr, .cl-sd { margin-top: 18px; } .cl-jr h3, .cl-sd h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; } .cl-jr h3 small, .cl-sd h3 small { font-size: 12px; color: var(--mute); font-weight: 500; } .cl-jr.retard h3 { color: var(--red); } .cl-jr h3 .btn { margin-left: auto; }
html[data-theme="light"] .cl-t time { color: var(--blue); }
@media (min-width: 900px) {
  .cl-qui { margin: 0 0 14px; padding: 0; flex-wrap: wrap; overflow: visible; }
  .cl-grille { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
  .cl-j { min-height: 104px; align-items: stretch; padding: 6px; } .cl-n { align-self: flex-start; }
  .cl-pts { display: none; } .cl-ps { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .cl-p { display: block; font-size: 11.5px; line-height: 1.3; padding: 3px 6px 3px 8px; border-radius: 6px; background: color-mix(in srgb, var(--c) 20%, transparent); border-left: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: grab; }
  .cl-p.fait { opacity: .45; text-decoration: line-through; } .cl-p time { font-weight: 600; margin-right: 4px; } .cl-plus { font-size: 11px; color: var(--mute); padding-left: 8px; }
  .cl-jour { margin-top: 0; position: sticky; top: calc(var(--top-h) + 20px); }
}

/* la lecture d'un fichier de prospects */
.pi-wait { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 26px 8px 18px; } .pi-wait p { margin: 0; }
.pi-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--blue); animation: pi-tourne .9s linear infinite; } @keyframes pi-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pi-spin { animation: none; border-top-color: var(--line2); border-right-color: var(--blue); } }
.pi-c { margin: 0 0 8px; font-size: 16px; line-height: 1.45; } .pi-pp { display: flex; flex-wrap: wrap; gap: 6px; }
.pi-h { margin: 20px 0 8px; font-size: 14px; font-weight: 600; } .pi-h small { font-weight: 400; color: var(--mute); margin-left: 6px; }
.pi-qs { display: flex; flex-direction: column; gap: 8px; }
.pi-q { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--gold); background: color-mix(in srgb, var(--gold) 10%, transparent); } .pi-q > svg, .pi-q > .ico { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--gold); }
.pi-q p { margin: 0; font-size: 14px; line-height: 1.5; } .pi-qa { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; } .pi-qa .input { flex: 1 1 180px; min-width: 0; height: 36px; }
.pi-rows { display: flex; flex-direction: column; gap: 6px; }
.pi-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--hover); } .pi-row.warn { border-color: color-mix(in srgb, var(--gold) 55%, transparent); } .pi-row.off { opacity: .45; }
.pi-ck { padding-top: 2px; } .pi-ck input { width: 20px; height: 20px; accent-color: var(--blue); }
.pi-main { flex: 1; min-width: 0; } .pi-t { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .pi-t b { font-size: 15px; font-weight: 600; }
.pi-s { font-size: 13px; line-height: 1.45; color: var(--sec); margin-top: 2px; overflow-wrap: anywhere; }
.pi-m { display: flex; gap: 6px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; color: var(--gold); margin-top: 6px; } .pi-m svg, .pi-m .ico { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.pi-form { margin-top: 12px; display: flex; flex-direction: column; gap: 10px; } .pi-row > .btn { flex: none; }
.pi-foot { position: sticky; bottom: -1px; margin: 14px -4px 0; padding: 12px 4px 4px; background: linear-gradient(180deg, transparent, var(--solid) 28%); display: flex; flex-direction: column; gap: 8px; } .pi-foot span { font-size: 12.5px; color: var(--mute); }
html[data-theme="light"] .pi-m { color: var(--amber); } html[data-theme="light"] .pi-q > svg { color: var(--amber); }
