/* Site of TechSane: Montserrat, navy + teal of the logo, blueprint grid, theme of the system */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/montserrat-v26-latin-regular.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/montserrat-v26-latin-500.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-v26-latin-600.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/montserrat-v26-latin-700.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url(../fonts/montserrat-v26-latin-800.woff2) format('woff2'); }

:root {
	--navy: #1b2a3a;
	--teal: #0fa3a0;
	--teal-2: #0b8784;
	--teal-soft: #e3f5f4;
	--teal-ink: #086b68;
	--glow: #2fd3c9;
	--bg: #ffffff;
	--bg-tint: #f4f7f9;
	--ink: #18202b;
	--ink-2: #536070;
	--line: #e2e8ee;
	--card: #ffffff;
	--dark: #0b121b;
	--dark-2: #121c28;
	--on-dark: #eef3f7;
	--on-dark-2: #a4b2c0;
	--grid: rgba(27, 42, 58, .06);
	--radius: 16px;
	--shadow: 0 1px 2px rgba(24, 32, 43, .05), 0 10px 30px -14px rgba(24, 32, 43, .2);
	/* Catalogue search field, the bright entry point of the dark banner */
	--search-bg: #ffffff;
	--search-ink: #18202b;
	--search-ink-2: #536070;
	--search-line: transparent;
	--topbar-h: 68px;
	/* Logo pieces before / after the transformation */
	--old-a: #5e5e5f; --old-b: #d4021d; --new-a: #1b2a3a; --new-b: #0fa3a0;
	--th-sales: #2b6cb0; --th-purchasing: #b7791f; --th-logistics: #2f855a; --th-ecommerce: #c53030; --th-mail: #6b46c1; --th-team: #0fa3a0; --th-safety: #4a5568;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--teal: #2fd3c9;
		--teal-2: #5fe0d8;
		--teal-soft: #0f2d33;
		--teal-ink: #5fe0d8;
		--bg: #0b121b;
		--bg-tint: #0f1823;
		--ink: #eef3f7;
		--ink-2: #a4b2c0;
		--line: #1f2b39;
		--card: #111b26;
		--dark: #070c12;
		--dark-2: #0d1520;
		--grid: rgba(238, 243, 247, .045);
		--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 30px -14px rgba(0, 0, 0, .7);
		--search-bg: #16222f;
		--search-ink: #eef3f7;
		--search-ink-2: #a4b2c0;
		--search-line: rgba(47, 211, 201, .45);
		--old-a: #8e8e90; --new-a: #e3ebf2; --new-b: #2fd3c9;
		--th-sales: #63a4ff; --th-purchasing: #f2b84b; --th-logistics: #5fd08f; --th-ecommerce: #ff7a7a; --th-mail: #a98bff; --th-team: #2fd3c9; --th-safety: #a7b3c2;
		color-scheme: dark;
	}
}
.on-dark { display: none; }
@media (prefers-color-scheme: dark) { .on-light { display: none; } .on-dark { display: block; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 'Montserrat', system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.center { text-align: center; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.li-icon { width: 1.05em; height: 1.05em; flex: none; color: var(--teal); margin-top: .3em; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; }

/* Blueprint grid: technical drawing of the plumbing world, circuit board of the IT one */
.grid-bg { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%); }
.grid-bg.is-dark { --grid: rgba(238, 243, 247, .05); }

/* ------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .75em 1.3em; border-radius: 999px; font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 10px 22px -12px rgba(27, 42, 58, .8); }
.btn-primary:hover { background: #0e9a97; box-shadow: 0 14px 28px -12px rgba(15, 163, 160, .8); }
@media (prefers-color-scheme: dark) { .btn-primary { background: var(--teal); color: #071016; } .btn-primary:hover { background: #5fe0d8; } }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-light { background: #fff; color: var(--navy); }
/* Secondary call to action that still has to be seen (online demo): tinted, not an outline */
.btn-try { background: var(--teal-soft); color: var(--teal-ink); border-color: color-mix(in srgb, var(--teal) 45%, transparent); }
.btn-try:hover { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-big { padding: .95em 1.55em; font-size: 1rem; }
.btn-sm { padding: .5em .95em; font-size: .82rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------ top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 20px; height: var(--topbar-h); }
.brand img { width: 168px; height: auto; }
@media (max-width: 400px) { .brand img { width: 140px; } }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { white-space: nowrap; text-decoration: none; font-size: .88rem; font-weight: 600; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--bg-tint); }
.lang-pick { position: relative; }
.lang-pick summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: .8rem; font-weight: 700; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); }
.lang-pick summary::-webkit-details-marker { display: none; }
.lang-pick summary:hover { background: var(--bg-tint); color: var(--ink); }
.lang-globe { width: 18px; height: 18px; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px; min-width: 170px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.lang-menu a { display: flex; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: .88rem; }
.lang-menu a:hover, .lang-menu a[aria-current] { background: var(--bg-tint); }
.lang-menu b { width: 24px; color: var(--teal); }
.menu-btn { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.menu-btn .icon { width: 26px; height: 26px; }
@media (max-width: 980px) {
	.nav { position: fixed; inset: var(--topbar-h) 0 auto 0; flex-direction: column; background: var(--bg); padding: 10px 16px 18px; display: none; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
	.nav.is-open { display: flex; }
	.nav a { font-size: 1rem; padding: 12px; }
	.lang-pick { margin-left: auto; }
	.menu-btn { display: block; }
}

/* ------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); text-align: center; border-bottom: 1px solid var(--teal); background: radial-gradient(60% 50% at 50% 0%, var(--teal-soft), transparent 70%); }
.net-bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
	-webkit-mask-image: radial-gradient(ellipse 36% 42% at 50% 56%, rgba(0, 0, 0, .22), #000 100%);
	mask-image: radial-gradient(ellipse 36% 42% at 50% 56%, rgba(0, 0, 0, .22), #000 100%); }
.hero-in { position: relative; display: grid; justify-items: center; }
.hero-logo { position: relative; width: min(760px, 100%); margin-bottom: clamp(28px, 4vw, 48px); }
.logo-anim { width: 100%; height: auto; overflow: visible; }
.logo-anim .pc { transform-box: fill-box; transform-origin: 50% 50%; }
.logo-anim .a { fill: var(--old-a); stroke: var(--old-a); }
.logo-anim .b { fill: var(--old-b); stroke: var(--old-b); }
.logo-anim path { stroke-width: .35; stroke-linejoin: round; }
.logo-anim .sub { font: 500 10.62px 'Montserrat', sans-serif; fill: var(--old-a); }
.logo-anim .scan { fill: url(#scanGrad); opacity: 0; }
/* Final state without script: TechSane right away */
.logo-anim.is-final .a { fill: var(--new-a); stroke: var(--new-a); }
.logo-anim.is-final .sub { fill: var(--new-a); }
.logo-anim.is-final .b { fill: var(--new-b); stroke: var(--new-b); }
.replay { position: absolute; right: 0; bottom: -34px; display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; font: inherit; font-size: .78rem; font-weight: 600; color: var(--ink-2); cursor: pointer; padding: 6px 8px; border-radius: 8px; opacity: .8; }
.replay:hover { color: var(--teal); opacity: 1; }
.kicker a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.kicker a:hover { text-decoration-color: currentColor; }
/* THERSANE in its logo colours (THER grey, SANE red) as a reminder of the parent brand */
.th-brand span:first-child { color: var(--old-a); }
.th-brand span:last-child { color: var(--old-b); }
/* Kicker holding a link: plain text flow, the flex gap would add a space before the link */
.kicker:has(a) { display: block; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.hero h1 { max-width: 20ch; }
.hero h1 em { font-style: normal; color: var(--teal); }
/* Paragraphs keep a readable measure (about 64 characters), without a lonely last word */
.lead { font-size: clamp(1rem, 1.35vw, 1.15rem); color: var(--ink-2); max-width: 64ch; margin-top: 16px; text-wrap: pretty; }
.hero .lead { margin-inline: auto; }
.hero .actions { margin-top: 30px; }
.stats { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 44px; }
.stats li { display: grid; gap: 2px; }
.stats b { font-size: 1.9rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.stats span { font-size: .82rem; color: var(--ink-2); }

/* ------------------------------------------------ sections */
.section { position: relative; padding: clamp(64px, 8vw, 110px) 0; }
.section-tint { background: var(--bg-tint); }
.section-dark { background: var(--dark); color: var(--on-dark); overflow: hidden; }
.section-dark .kicker { color: var(--glow); }
.section-dark .lead { color: var(--on-dark-2); }
/* Section heads: the titles use the width they need and balance their lines when they wrap; only the lead text is
   held to a reading measure */
.head { max-width: 1000px; margin-bottom: clamp(32px, 4vw, 52px); }
.head h2, .head h3 { text-wrap: balance; }
.prose p { text-wrap: pretty; }
/* Revealed on scroll only when scripts run (class js set in the head) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Where the name comes from */
.name-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.name-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: grid; gap: 14px; height: 100%; }
.name-card img { width: min(320px, 100%); }
.name-card.is-old img { filter: saturate(.85); }
.name-parts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1.05rem; color: var(--ink-2); }
.name-parts b { color: var(--ink); font-weight: 800; }
.name-card.is-old .name-parts b { color: #d4021d; }
.name-card.is-new .name-parts b { color: var(--teal); }
.name-parts i { font-style: normal; color: var(--ink-2); opacity: .6; }
.name-card > p:last-child { font-size: .92rem; color: var(--ink-2); }
.name-arrow { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; }
@media (max-width: 760px) { .name-pair { grid-template-columns: 1fr; } .name-arrow { justify-self: center; transform: rotate(90deg); } }

/* Featured modules */
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .feat { grid-template-columns: 1fr; } }
.feat-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.feat-label { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--teal); }
.feat-label .li-icon { margin: 0; }
.feat-card h3 { font-size: 1.45rem; }
.feat-card > p { color: var(--ink-2); }
.feat-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .95rem; }
.feat-card li { display: flex; gap: 10px; }
.feat-shot { margin: 8px -40px -40px 0; border-radius: 12px 0 0 0; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
/* PrestaSync: two systems and the flows between them */
.sync { margin-top: auto; padding-top: 10px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.sync-node { display: grid; justify-items: center; gap: 2px; padding: 16px 14px; border-radius: 14px; background: var(--bg-tint); border: 1px solid var(--line); min-width: 104px; }
.sync-node b { font-size: .95rem; }
.sync-node span { font-size: .72rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .1em; }
.sync-node.is-erp { background: var(--teal-soft); border-color: color-mix(in srgb, var(--teal) 40%, transparent); }
.sync-flows { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* Catalogue */
.cat-tools { display: grid; gap: 12px; margin-bottom: 26px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: .85rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filter span { font-size: .72rem; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--bg-tint); color: var(--ink-2); }
.filter:hover { border-color: var(--teal); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter[aria-pressed="true"] span { background: rgba(255, 255, 255, .15); color: #fff; }
@media (prefers-color-scheme: dark) { .filter[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #071016; } .filter[aria-pressed="true"] span { background: rgba(0, 0, 0, .15); color: #071016; } }
.cat-search { margin-top: 28px; max-width: 640px; }
.search { position: relative; display: block; }
.search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--search-ink-2); pointer-events: none; }
.search input { width: 100%; height: 56px; font: inherit; font-size: 1.02rem; padding: 0 52px 0 52px; border-radius: 999px; border: 1px solid var(--search-line); background: var(--search-bg); color: var(--search-ink); box-shadow: 0 12px 34px -12px rgba(0, 0, 0, .55); }
.search input::placeholder { color: var(--search-ink-2); opacity: 1; }
.search input:focus { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--glow) 55%, transparent), 0 12px 34px -12px rgba(0, 0, 0, .55); }
.search-key { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); min-width: 24px; padding: 2px 7px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--search-ink-2) 45%, transparent); font-family: inherit; font-size: .78rem; font-weight: 600; line-height: 1.3; text-align: center; color: var(--search-ink-2); pointer-events: none; }
.search input:focus ~ .search-key, .search input:not(:placeholder-shown) ~ .search-key { display: none; }
@media (hover: none) { .search-key { display: none; } .search input { padding-right: 20px; } }
@media (max-width: 640px) { .search input { height: 52px; font-size: 1rem; } .search input::placeholder { font-size: .9rem; } }
.cat-section { padding-top: clamp(28px, 4vw, 44px); }
.filter:disabled { opacity: .45; cursor: default; }
.filter:disabled:hover { border-color: var(--line); color: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn-link { font: inherit; font-weight: 600; color: var(--teal-ink); background: none; border: 0; padding: 10px 4px; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.mods { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.mod { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, box-shadow .2s, transform .2s; }
.mod:hover { border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-2px); }
.mod[hidden] { display: none; }
.mod:target { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 25%, transparent); }
.mod-head { display: flex; gap: 14px; align-items: flex-start; }
.mod-icon { --c: var(--th-team); flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.mod-icon .icon { width: 24px; height: 24px; }
.mod-icon.is-sales { --c: var(--th-sales); } .mod-icon.is-purchasing { --c: var(--th-purchasing); } .mod-icon.is-logistics { --c: var(--th-logistics); } .mod-icon.is-ecommerce { --c: var(--th-ecommerce); } .mod-icon.is-mail { --c: var(--th-mail); } .mod-icon.is-team { --c: var(--th-team); } .mod-icon.is-safety { --c: var(--th-safety); }
.mod h3 { font-size: 1.08rem; }
.mod-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--bg-tint); color: var(--ink-2); border: 1px solid var(--line); }
.tag.is-free { background: var(--teal-soft); color: var(--teal-2); border-color: transparent; }
.tag.is-soon { background: transparent; border-style: dashed; }
.mod-pitch { font-weight: 600; font-size: .95rem; }
.mod-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .86rem; color: var(--ink-2); }
.mod-points li { display: flex; gap: 8px; }
.mod-points .li-icon { width: .95em; height: .95em; }
.mod-actions { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.mods-empty { text-align: center; color: var(--ink-2); padding: 30px 0; }

/* Services */
.svc-grid { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; position: relative; }
.svc { padding: 24px; border-radius: var(--radius); background: var(--dark-2); border: 1px solid rgba(255, 255, 255, .07); display: grid; gap: 8px; align-content: start; }
.svc-icon { width: 30px; height: 30px; color: var(--glow); }
.svc p { color: var(--on-dark-2); font-size: .92rem; }
.svc p a { color: var(--glow); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.svc p a:hover { color: var(--on-dark, #fff); }
.section-dark .btn-primary { background: var(--glow); color: #071016; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.about-points li { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.about-icon { width: 28px; height: 28px; flex: none; color: var(--teal); }
.about-points p { color: var(--ink-2); font-size: .93rem; margin-top: 4px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-list { display: grid; gap: 10px; }
.qa { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 700; }
.qa summary::-webkit-details-marker { display: none; }
.qa-chev { width: 20px; height: 20px; flex: none; transition: transform .2s; color: var(--teal); }
.qa[open] .qa-chev { transform: rotate(90deg); }
.qa-a { padding: 0 20px 18px; color: var(--ink-2); }
.qa-a a { color: var(--teal); }

/* Final call */
.final { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); padding: clamp(64px, 8vw, 100px) 0; text-align: center; }
.final-in { position: relative; display: grid; justify-items: center; }
.final .lead { color: var(--on-dark-2); }
.final .actions { margin-top: 28px; }
.final .btn-primary { background: var(--glow); color: #071016; }

/* ------------------------------------------------ footer */
.footer { background: var(--dark); color: var(--on-dark-2); border-top: 1px solid rgba(255, 255, 255, .06); padding: 36px 0; font-size: .86rem; }
.footer-in { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: center; justify-content: space-between; }
.footer-brand { display: grid; gap: 10px; }
.footer-brand img { width: 190px; }
.footer-links a { color: var(--on-dark); text-decoration: none; }
.footer-links a:hover { color: var(--glow); }
.langs { display: flex; gap: 2px; }
.langs a { text-decoration: none; font-size: .72rem; font-weight: 700; padding: 5px 6px; border-radius: 6px; color: var(--on-dark-2); }
.langs a[aria-current] { color: #fff; box-shadow: inset 0 -2px 0 var(--glow); }

/* ------------------------------------------------ inner pages */
.subhero { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); padding: clamp(48px, 7vw, 90px) 0; }
.subhero-in { position: relative; }
.subhero .kicker { color: var(--glow); }
.subhero .lead { color: var(--on-dark-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-side { display: grid; gap: 16px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; }
.contact-card h2 { font-size: 1.15rem; }
.contact-card p { color: var(--ink-2); font-size: .93rem; }
.card-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-soft); color: var(--teal); }
.phone-big { font-size: 1.7rem; font-weight: 800; text-decoration: none; color: var(--ink); letter-spacing: -.01em; }
.phone-big:hover { color: var(--teal); }
.contact-hours { display: flex; gap: 8px; font-size: .85rem !important; }
.contact-main h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.form { margin-top: 26px; display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; }
.field.is-wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea { font: inherit; font-size: .95rem; font-weight: 400; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 25%, transparent); }
.req-star { color: #d4021d; margin-left: 3px; }
.needs { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; margin: 0; }
.needs legend { font-size: .86rem; font-weight: 600; padding: 0 6px; }
.needs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 8px 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { margin-top: .3em; accent-color: var(--teal); width: 17px; height: 17px; flex: none; }
.consent a { color: var(--teal); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form-req { font-size: .8rem; color: var(--ink-2); }
.form-status { font-size: .9rem; min-height: 1.4em; }
.form-status[data-kind="error"] { color: #d4021d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-done[hidden] { display: none; }
.form-done { margin-top: 26px; padding: 30px; border-radius: var(--radius); background: var(--teal-soft); display: grid; gap: 10px; justify-items: start; }
.done-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; }
.legal { max-width: 820px; display: grid; gap: 34px; }
.legal h2 { font-size: 1.35rem; margin-bottom: 10px; }
.legal p { color: var(--ink-2); margin-bottom: 10px; }
.legal a { color: var(--teal); }

@media (max-width: 640px) {
	.sync { grid-template-columns: 1fr; justify-items: stretch; }
		.feat-shot { margin: 8px -22px -22px 0; }
}

/* The THERSANE logo is drawn for light backgrounds: light plate under it in dark mode */
@media (prefers-color-scheme: dark) { .name-card.is-old img { background: #f4f7f9; padding: 12px 14px; border-radius: 10px; filter: none; } }
@media (max-width: 640px) {
	.stats { gap: 10px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
	.stats b { font-size: 1.35rem; }
	.stats span { font-size: .72rem; line-height: 1.35; }
	.replay { position: static; margin: 8px auto 0; }
	.hero-logo { display: grid; }
}

/* ------------------------------------------------ IT department first: pillars, challenges, steering */
.pillars { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: min(760px, 100%); }
.pillars li { display: grid; justify-items: center; gap: 4px; padding: 18px 12px; border-radius: var(--radius); background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid var(--line); }
.pillar-icon { width: 28px; height: 28px; color: var(--teal); margin-bottom: 4px; }
.pillars b { font-size: 1.05rem; }
.pillars span { font-size: .82rem; color: var(--ink-2); line-height: 1.4; }
@media (max-width: 640px) { .pillars { gap: 8px; } .pillars li { padding: 14px 6px; } .pillars span { font-size: .72rem; } }
.chal-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.chal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start; }
.chal-icon { width: 30px; height: 30px; color: var(--teal); }
.chal p { color: var(--ink-2); font-size: .93rem; }
.svc-lead { position: relative; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 28px; align-items: center; padding: clamp(24px, 3vw, 36px); margin-bottom: 16px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--glow) 16%, var(--dark-2)), var(--dark-2) 60%); border: 1px solid color-mix(in srgb, var(--glow) 35%, transparent); }
.svc-lead h3 { font-size: 1.5rem; margin: 10px 0 8px; }
.svc-lead p { color: var(--on-dark-2); }
.svc-hub { margin: -24px 0 40px; background: var(--dark-2); border-style: dashed; }
.svc-lead-icon { width: 38px; height: 38px; color: var(--glow); }
.svc-lead ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.svc-lead li { display: flex; gap: 10px; font-weight: 600; font-size: .95rem; }
.svc-lead .li-icon { color: var(--glow); }
@media (max-width: 800px) { .svc-lead { grid-template-columns: 1fr; } }
.cat-title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: clamp(48px, 6vw, 72px) 0 20px; }
.section-tint .mod { background: var(--card); }

/* ------------------------------------------------ catalogue and module pages */
.see-all { margin-top: 36px; }
.mod h3 a { text-decoration: none; }
.mod h3 a:hover { color: var(--teal); }
/* Imported content of the module pages */
.prose { max-width: 760px; color: var(--ink-2); font-size: 1rem; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6em; }
.prose h4 { font-size: 1.02rem; margin-top: 1.3em; }
.prose > :first-child { margin-top: 0; }
.prose b { color: var(--ink); }
.prose a:not(.btn) { color: var(--teal); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--teal); }
.prose code { font-size: .88em; background: var(--bg-tint); padding: 1px 5px; border-radius: 5px; }
/* Code to copy (documentation): dark block, copy button in the corner */
.code { position: relative; margin: 14px 0 18px; border-radius: 12px; background: var(--dark-2); border: 1px solid color-mix(in srgb, var(--on-dark) 10%, transparent); }
.code pre { margin: 0; padding: 16px 110px 16px 18px; overflow-x: auto; }
.code pre code { display: block; padding: 0; background: none; color: var(--on-dark); font: 500 .86rem/1.65 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; white-space: pre; }
.code-copy { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--on-dark) 22%, transparent); background: color-mix(in srgb, var(--on-dark) 6%, transparent); color: var(--on-dark); font: 600 .78rem/1 inherit; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.code-copy:hover, .code-copy:focus-visible { border-color: var(--glow); color: var(--glow); }
.code-copy.is-done { border-color: var(--glow); background: color-mix(in srgb, var(--glow) 16%, transparent); color: var(--glow); }
.code-copy .btn-icon { width: 15px; height: 15px; }
.prose blockquote { margin: 1.4em 0; padding: 18px 22px; border-left: 4px solid var(--teal); background: var(--bg-tint); border-radius: 0 12px 12px 0; font-style: italic; }
.prose blockquote footer { margin-top: 10px; font-style: normal; font-size: .88rem; }
.shot { margin: 1.4em 0; }
.shot img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.shot.is-logo img { width: 120px; border: 0; box-shadow: none; background: none; }
.shot figcaption { font-size: .82rem; color: var(--ink-2); margin-top: 8px; text-align: center; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; margin: 1.4em 0; }
.shots .shot { margin: 0; }
.shots img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.table { overflow-x: auto; }
.table table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.table th, .table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.install-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .install-grid { grid-template-columns: 1fr; } }
.install-grid h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 16px; }
.install-steps { padding-left: 1.3em; display: grid; gap: 10px; color: var(--ink-2); }
.install-steps li::marker { color: var(--teal); font-weight: 800; }
.mod-install .side-card h2 { font-size: 1.05rem; text-transform: none; letter-spacing: -.01em; color: var(--ink); }

/* ------------------------------------------------ module page (sales page of one module) */
.mh { position: relative; overflow: hidden; padding: clamp(24px, 3vw, 36px) 0 clamp(36px, 4vw, 52px); background: radial-gradient(70% 90% at 85% 10%, var(--teal-soft), transparent 65%), var(--bg); }
.mh-in { position: relative; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 12fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 960px) { .mh-in { grid-template-columns: 1fr; } }
.crumbs { position: relative; display: flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--ink-2); margin-bottom: 22px; }
.crumbs a { color: var(--teal); text-decoration: none; font-weight: 600; }
.crumb-chev { width: 14px; height: 14px; }
.mh-id { display: flex; gap: 18px; align-items: center; }
.mh-logo { width: 72px; height: 72px; object-fit: contain; flex: none; padding: 8px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mod-icon.is-big { width: 72px; height: 72px; border-radius: 20px; }
.mod-icon.is-big .icon { width: 38px; height: 38px; }
.mh h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.mh-pitch { font-weight: 600; color: var(--teal); margin-top: 4px; }
.mh-tagline { margin-top: 22px; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
.mh-lead { margin-top: 14px; color: var(--ink-2); font-size: 1.05rem; max-width: 60ch; }
.mh-lead b { color: var(--ink); }
.benefits { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.benefits li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: .95rem; }
.benefit-icon { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--teal); color: #fff; stroke-width: 2.6; }
@media (prefers-color-scheme: dark) { .benefit-icon { color: #071016; } }
.mh-help { margin-top: 14px; font-size: .88rem; }
.mh-help a { color: var(--ink-2); }
.mh-help a:hover { color: var(--teal); }
/* Screenshot in a browser window */
.browser { border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(24, 32, 43, .05), 0 30px 60px -28px rgba(24, 32, 43, .45); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--bg-tint); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.browser-bar span { margin-left: 10px; font-size: .7rem; font-weight: 600; color: var(--ink-2); }
.browser img { width: 100%; display: block; background: #fff; }
.mh-visual { position: relative; }
.mh-visual .browser { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; transition: transform .5s; }
.mh-visual:hover .browser { transform: none; }
@media (max-width: 960px) { .mh-visual .browser { transform: none; } }
.zoom { display: block; cursor: zoom-in; }
/* Quote in place of the hero picture (page-overrides.json heroQuote): no frame, the text sits on the page like a pull
   quote, a big typographic quotation mark in light grey behind its start */
.mh-quote { position: relative; margin: 0; display: grid; align-content: center; gap: 26px; padding: 40px 0 40px clamp(20px, 3vw, 44px); min-height: 100%; }
.mh-quote > :not(.mh-quote-mark) { position: relative; }
.mh-visual:has(> .mh-quote) { align-self: center; }
.mh-quote-mark { position: absolute; top: -.18em; left: -.06em; font: 400 clamp(11rem, 18vw, 16rem)/1 Georgia, 'Times New Roman', serif; color: color-mix(in srgb, var(--ink) 8%, transparent); pointer-events: none; user-select: none; }
.mh-quote blockquote { margin: 0; }
.mh-quote blockquote p { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2.1rem); line-height: 1.25; font-weight: 700; color: var(--ink); letter-spacing: -.01em; text-wrap: balance; }
.mh-quote figcaption { display: flex; align-items: center; gap: 14px; }
.mh-quote figcaption > img, .mh-quote-initials { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
/* A logo as avatar (svg): centred in the circle, sized so that its corners stay inside it (diagonal < diameter) */
.mh-quote-logo { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.mh-quote-logo img { width: 62%; height: auto; }
.mh-quote-initials { display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; letter-spacing: .04em; }
.mh-quote figcaption b { display: block; color: var(--ink); }
.mh-quote figcaption small { display: block; font-size: .85rem; color: var(--ink-2); }
@media (max-width: 760px) { .mh-quote { padding: 28px 0 8px; } .mh-quote-mark { font-size: 9rem; } }
.mh-tile { position: relative; aspect-ratio: 16 / 11; border-radius: 24px; overflow: hidden; display: grid; place-items: center; --c: var(--th-team); background: color-mix(in srgb, var(--c) 10%, var(--card)); border: 1px solid var(--line); }
.mh-tile.is-sales { --c: var(--th-sales); } .mh-tile.is-purchasing { --c: var(--th-purchasing); } .mh-tile.is-logistics { --c: var(--th-logistics); } .mh-tile.is-ecommerce { --c: var(--th-ecommerce); } .mh-tile.is-mail { --c: var(--th-mail); } .mh-tile.is-safety { --c: var(--th-safety); }
.mh-tile-icon { position: relative; width: 38%; height: 38%; color: var(--c); stroke-width: 1.2; }
/* Facts: what must be known before buying */
.facts { position: relative; margin: clamp(32px, 4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.facts > div { padding: 16px 20px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; }
.facts dt { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.facts dd { margin: 4px 0 0; font-weight: 700; font-size: .95rem; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div { border-left: 0; border-top: 1px solid var(--line); } .facts > div:nth-child(-n+2) { border-top: 0; } .facts > div:nth-child(even) { border-left: 1px solid var(--line); } }
/* Getting started gauges under the facts (popover: .mx-pop, site.js) */
.effort { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 14px; padding: 12px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.effort-title { display: grid; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.effort-title span { font-size: .74rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.effort-list { list-style: none; margin: 0 0 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.effort-item { display: grid; grid-template-columns: auto auto; grid-template-areas: "name gauge" "level level"; align-items: center; gap: 2px 12px; padding: 8px 14px; border: 1px solid transparent; border-radius: 12px; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; transition: background .2s, border-color .2s; }
.effort-item:hover, .effort-item[aria-expanded="true"] { background: var(--bg-tint); border-color: var(--line); }
.effort-item:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.effort-name { grid-area: name; font-size: .86rem; font-weight: 700; }
.effort-level { grid-area: level; font-size: .78rem; color: var(--ink-2); }
.effort-gauge { grid-area: gauge; display: inline-flex; gap: 3px; }
.effort-gauge i { width: 14px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink-2) 22%, transparent); }
.effort-gauge i.is-on { background: var(--teal); }
.effort .mx-pop { width: min(360px, calc(100vw - 24px)); }
.effort-note { padding-top: 6px; border-top: 1px solid var(--line); }
.effort-help { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: .82rem; font-weight: 700; color: var(--teal-ink); text-decoration: none; }
.effort-help:hover { text-decoration: underline; }
.effort-help .btn-icon { width: 16px; height: 16px; }
@media (max-width: 760px) { .effort-list { margin-left: 0; } .effort-item { padding: 6px 8px; } }
.facts-note { position: relative; display: flex; gap: 10px; margin-top: 14px; font-size: .9rem; color: var(--ink-2); }
.facts-note a { color: var(--teal); }
/* Sticky sub navigation with the main action always at hand */
.subnav { position: sticky; top: var(--topbar-h); z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.subnav-in { display: flex; align-items: center; gap: 18px; min-height: 56px; }
.subnav-name { display: flex; align-items: center; gap: 10px; font-weight: 800; white-space: nowrap; }
.subnav-logo { width: 28px; height: 28px; object-fit: contain; }
.mod-icon.is-tiny { width: 30px; height: 30px; border-radius: 8px; }
.mod-icon.is-tiny .icon { width: 17px; height: 17px; }
.subnav ul { list-style: none; padding: 0; margin: 0 auto 0 12px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.subnav a:not(.btn) { display: block; white-space: nowrap; text-decoration: none; font-size: .86rem; font-weight: 600; color: var(--ink-2); padding: 16px 10px; border-bottom: 2px solid transparent; }
.subnav a:not(.btn):hover, .subnav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--teal); }
@media (max-width: 760px) { .subnav-name { display: none; } .subnav ul { margin-left: 0; } .subnav .btn { display: none; } }
/* Features: alternating rows, cards, plain text */
.features .head { margin-bottom: 28px; }
.overview { margin-bottom: 28px; }
.toc { margin: 8px 0 clamp(40px, 5vw, 64px); padding: 20px 22px; border-radius: var(--radius); background: var(--bg-tint); border: 1px solid var(--line); }
.toc p { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--teal); margin-bottom: 12px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; text-decoration: none; font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.toc a:hover { border-color: var(--teal); color: var(--teal); }
.fsecs { display: grid; gap: clamp(64px, 8vw, 112px); }
.fsec h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 16px; }
.fsec.is-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.fsec.is-row.is-flip .fsec-text { order: 2; }
@media (max-width: 900px) { .fsec.is-row { grid-template-columns: 1fr; } .fsec.is-row.is-flip .fsec-text { order: 0; } }
.fsec .prose { max-width: 62ch; }
.fsec.is-text { max-width: 820px; }
.fsec-head { max-width: 760px; margin-bottom: 22px; }
.fsec-head p { color: var(--ink-2); }
.fcards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.fcard { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink-2); font-size: .93rem; display: grid; gap: 8px; align-content: start; }
.fcard h3 { color: var(--ink); font-size: 1.02rem; padding-left: 14px; border-left: 3px solid var(--teal); }
.fcard ul { padding-left: 1.1em; margin: 0; }
.fcard-check { width: 22px; height: 22px; color: var(--teal); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.thumbs.is-wide { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-bottom: 28px; }
.thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 10px; border: 1px solid var(--line); background: #fff; transition: transform .2s, box-shadow .2s; }
.thumb:hover img { transform: translateY(-2px); box-shadow: var(--shadow); }
.thumb.is-more { display: none; }
.fsec.is-faq .faq-list { max-width: 860px; }
/* Testimonials */
.quotes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 18px; position: relative; }
.quote { padding: 28px; border-radius: 20px; background: var(--dark-2); border: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 14px; align-content: start; }
.quote-mark { width: 34px; height: 34px; color: var(--glow); }
.quote blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; color: var(--on-dark); }
.quote-by { display: grid; font-size: .88rem; color: var(--on-dark-2); }
.quote-by b { color: var(--on-dark); }
.install-grid .side-card .btn { justify-self: start; margin-top: 6px; }
/* Lightbox */
.lightbox { width: min(1400px, 96vw); max-height: 94vh; padding: 0; border: 0; border-radius: 14px; background: transparent; overflow: visible; }
/* A modal is open (site.js openModal()): the page under it does not scroll, its scrollbar width is kept */
html.is-modal-open { overflow: hidden; padding-right: var(--scrollbar-w, 0px); }
.lightbox { overscroll-behavior: contain; }
.lightbox::backdrop { background: rgba(7, 12, 18, .86); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; display: grid; gap: 10px; justify-items: center; }
.lightbox img { max-width: 100%; max-height: 84vh; width: auto; border-radius: 12px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: #e3ebf2; font-size: .9rem; }
.lb-x, .lb-nav { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.lb-x:hover, .lb-nav:hover { background: var(--teal); }
.lb-x { top: 18px; right: 18px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-nav.is-prev { left: 18px; } .lb-nav.is-next { right: 18px; }
.lb-nav[hidden] { display: none; }
.fsec-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.fsec-kicker b { font-weight: 700; }
.fsec .prose h3 { font-size: 1.1rem; margin-top: 1.5em; }
.fsec .prose h4 { font-size: 1rem; }
.fcard h4 { font-size: .95rem; color: var(--ink); }

/* Official marks of the modules */
.mod-logo { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); padding: 5px; }
.mod-logo img { width: 100%; height: 100%; object-fit: contain; }
.mod-logo.is-big { width: 76px; height: 76px; border-radius: 20px; padding: 9px; box-shadow: var(--shadow); }
.mod-logo.is-tiny { width: 30px; height: 30px; border-radius: 8px; padding: 3px; }
/* Buying intent: what the button does, where it leads */
.buy-hint { margin-top: 10px; font-size: .82rem; color: var(--ink-2); }
.mh-cover img { width: 100%; border-radius: 20px; box-shadow: 0 30px 60px -28px rgba(24, 32, 43, .45); background: #fff; }
.mh-cutout img { width: 100%; filter: drop-shadow(0 24px 40px rgba(24, 32, 43, .3)); }
/* Header with the scene of the old page: picture on the right, text on a light veil on the left. The scenes are light
   pictures: the header keeps light colours in dark mode too. */
.mh.has-scene { --ink: #18202b; --ink-2: #4a5666; --line: #dfe5eb; --card: #ffffff; --bg-tint: #f4f7f9; color: var(--ink); background: #f4f6f8; }
.mh-scene { position: absolute; inset: 0 0 64px 0; background-repeat: no-repeat; background-position: right bottom; background-size: auto 100%; }
.mh-scene::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .82) 34%, rgba(255, 255, 255, 0) 58%), linear-gradient(0deg, #f4f6f8 0%, rgba(244, 246, 248, 0) 18%); }
.mh.has-scene .mh-in { min-height: clamp(420px, 40vw, 560px); }
.mh.has-scene .facts { background: rgba(255, 255, 255, .94); }
.mh.has-scene .btn-primary { background: var(--navy); color: #fff; }
.mh.has-scene .crumbs a, .mh.has-scene .mh-pitch { color: #0b8784; }
@media (max-width: 960px) {
	.mh-scene { bottom: 0; background-position: center bottom; background-size: 150% auto; }
	.mh-scene::after { background: linear-gradient(180deg, rgba(255, 255, 255, .97) 0%, rgba(255, 255, 255, .92) 58%, rgba(255, 255, 255, 0) 82%); }
	.mh.has-scene .mh-in { min-height: 0; padding-bottom: 52vw; }
}

/* PrestaShop <-> Dolibarr: real logos in the nodes, a bigger version in the header of the PrestaSync page */
.sync-node img { height: 34px; width: auto; max-width: 110px; object-fit: contain; }
.sync-node { background: #fff; }
.sync-node.is-erp { background: #fff; border-color: color-mix(in srgb, var(--teal) 45%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 12%, transparent); }
.sync-node span { color: #536070; }
.mh-sync { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px) clamp(18px, 3vw, 36px); border-radius: 24px; background: linear-gradient(135deg, var(--card), var(--teal-soft)); border: 1px solid var(--line); box-shadow: 0 2px 4px rgba(24, 32, 43, .05), 0 30px 60px -28px rgba(24, 32, 43, .35); }
.sync.is-big { position: relative; margin: 0; padding: 0; gap: 18px; }
.sync.is-big .sync-node { min-width: 150px; padding: 26px 18px; gap: 10px; border-radius: 18px; }
.sync.is-big .sync-node img { height: 64px; max-width: 140px; }
.sync.is-big .sync-flows { gap: 16px; }
@media (max-width: 640px) { .sync.is-big .sync-node { min-width: 0; } .sync.is-big .sync-node img { height: 44px; } }
/* The PrestaShop logo is square (puffin over the name), the Dolibarr one wide: same visual weight */
.sync-node img[src$="prestashop.svg"] { height: 50px; }
.sync.is-big .sync-node img[src$="prestashop.svg"] { height: 92px; }
@media (max-width: 640px) { .sync.is-big .sync-node img[src$="prestashop.svg"] { height: 62px; } }
.sync-node img[src$="dolibarr.svg"] { height: auto; width: 100%; max-width: 104px; }
.sync.is-big .sync-node img[src$="dolibarr.svg"] { max-width: 150px; }

/* Flows: the label sits above its line, the line stays free so the transfer is seen; dots travel towards the
   destination (arrow at the end), both ways for statuses */
.sync-flows { gap: 10px; }
.flow, .feat-card .flow { display: grid; gap: 3px; }
.flow-label { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: .7rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; letter-spacing: .01em; }
.flow-dir { width: 13px; height: 13px; color: var(--teal); stroke-width: 2.4; }
.flow.is-to-shop .flow-dir { transform: scaleX(-1); }
.flow-line { position: relative; display: block; height: 10px; }
.flow-line::before { content: ''; position: absolute; left: 0; right: 8px; top: 4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--teal) 25%, var(--line)), var(--teal)); }
.flow-line::after { content: ''; position: absolute; right: 0; top: 1px; border: 4px solid transparent; border-left: 8px solid var(--teal); border-right: 0; }
.flow.is-to-shop .flow-line::before { left: 8px; right: 0; background: linear-gradient(270deg, color-mix(in srgb, var(--teal) 25%, var(--line)), var(--teal)); }
.flow.is-to-shop .flow-line::after { right: auto; left: 0; border-left: 0; border-right: 8px solid var(--teal); }
.flow.is-both .flow-line::before { left: 8px; right: 8px; background: var(--teal); opacity: .55; }
.flow-line i { position: absolute; top: 1px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--glow); animation: flow-go 2.6s linear infinite; animation-delay: calc(var(--i) * -.45s); }
.flow-line i + i { animation-delay: calc(var(--i) * -.45s - 1.3s); }
.flow.is-to-shop .flow-line i { animation-name: flow-back; }
.flow.is-both .flow-line i + i { animation-name: flow-back; animation-delay: calc(var(--i) * -.45s - 1.3s); }
@keyframes flow-go { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 14px); opacity: 0; } }
@keyframes flow-back { 0% { left: calc(100% - 8px); opacity: 0; } 12% { opacity: 1; } 85% { opacity: 1; } 100% { left: 6px; opacity: 0; } }
.sync.is-big .sync-flows { gap: 14px; }
.sync.is-big .flow-label { font-size: .78rem; }
.sync.is-big .flow-line i { width: 10px; height: 10px; top: 0; }
@media (prefers-reduced-motion: reduce) { .flow-line i { display: none; } }
/* Narrow: the two systems stacked, each flow a row with its direction */
@media (max-width: 640px) {
	.sync-flows { gap: 8px; }
	.flow-line { display: none; }
	.flow-label { justify-content: flex-start; padding: 6px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: .78rem; }
	.flow-dir { transform: rotate(90deg); }
	.flow.is-to-shop .flow-dir { transform: rotate(-90deg); }
	.flow.is-both .flow-dir { transform: rotate(90deg); }
}
/* Statuses go both ways: second arrow head on the left */
.flow-line b { position: absolute; left: 0; top: 1px; border: 4px solid transparent; border-right: 8px solid var(--teal); border-left: 0; }

/* Balanced sections of the module pages */
.fsec.is-row { align-items: start; }
.fsec.is-row .fsec-visual { position: sticky; top: calc(var(--topbar-h) + 76px); }
.fsec.is-split, .fsec.is-steps { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px clamp(28px, 4vw, 64px); align-items: start; }
.fsec-side h2 { margin-bottom: 0; }
.fsec.is-split .prose, .fsec.is-steps .prose { max-width: none; }
.prose ul.is-cols { columns: 2; column-gap: 36px; }
.prose ul.is-cols li { break-inside: avoid; }
@media (max-width: 900px) { .fsec.is-split, .fsec.is-steps { grid-template-columns: 1fr; } .prose ul.is-cols { columns: 1; } }
.steps-gallery { grid-column: 1 / -1; list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; counter-reset: step; }
.steps-gallery li { position: relative; display: grid; gap: 8px; align-content: start; }
.steps-gallery .browser img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.steps-gallery p { font-size: .85rem; color: var(--ink-2); }
.step-n { position: absolute; z-index: 1; top: -12px; left: -12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font-weight: 800; font-size: .85rem; box-shadow: 0 6px 14px -6px rgba(15, 163, 160, .8); }
@media (prefers-color-scheme: dark) { .step-n { color: #071016; } }

/* Documentation pages: table of contents on the left, steps on the right */
.doc-hero { position: relative; overflow: hidden; padding: clamp(24px, 3vw, 36px) 0 clamp(28px, 3vw, 40px); background: radial-gradient(70% 90% at 85% 10%, var(--teal-soft), transparent 65%), var(--bg); border-bottom: 1px solid var(--line); }
.doc-hero-in { position: relative; }
.doc-hero h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.doc-hero .kicker { margin-bottom: 4px; }
.doc-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 960px) { .doc-grid { grid-template-columns: 1fr; } .doc-side { position: static !important; } }
.doc-side { position: sticky; top: calc(var(--topbar-h) + 20px); display: grid; gap: 16px; max-height: calc(100vh - var(--topbar-h) - 40px); overflow: auto; }
.doc-toc p { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--teal); margin-bottom: 10px; }
.doc-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: toc; border-left: 2px solid var(--line); }
.doc-toc li { counter-increment: toc; }
.doc-toc a { display: block; padding: 7px 12px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; font-size: .88rem; color: var(--ink-2); line-height: 1.35; }
.doc-toc a::before { content: counter(toc) '. '; font-weight: 700; color: var(--teal); }
.doc-toc a:hover, .doc-toc a[aria-current="true"] { color: var(--ink); border-left-color: var(--teal); background: var(--bg-tint); }
.doc-side .side-card { gap: 10px; }
.doc-back { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--ink-2); text-decoration: none; }
.doc-back:hover { color: var(--teal); }
.doc-main.fsecs { gap: clamp(48px, 6vw, 80px); }
.doc-main .fsec.is-split, .doc-main .fsec.is-steps { grid-template-columns: 1fr; }
.doc-main .fsec.is-article { margin-inline: 0; max-width: none; }
.doc-main .fsec.is-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .doc-main .fsec.is-row { grid-template-columns: 1fr; } .doc-main .fsec.is-row.is-flip .fsec-text { order: 0; } }
.doc-main .fsec h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.subnav a.is-out { display: inline-flex; align-items: center; gap: 6px; color: var(--teal); }
.doc-link { margin-top: 18px; }

/* Documentation: compact title bar that stays on top, aligned with the table of contents */
:root:has(.doc-bar) { --doc-bar-h: 72px; scroll-padding-top: calc(var(--topbar-h) + var(--doc-bar-h) + 16px); }
/* Compact version of the header: shown once the big header has left the screen */
.doc-bar { position: fixed; left: 0; right: 0; top: var(--topbar-h); z-index: 40; transform: translateY(-110%); opacity: 0; visibility: hidden; transition: transform .25s ease, opacity .25s ease, visibility 0s .25s; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.doc-bar-in { display: flex; align-items: center; gap: 14px; min-height: var(--doc-bar-h); padding: 10px 0; }
.doc-bar.is-shown { transform: none; opacity: 1; visibility: visible; transition: transform .25s ease, opacity .25s ease; }
.doc-bar-title { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.15; color: var(--ink); }
.doc-bar p + p { font-size: .85rem; color: var(--ink-2); margin-top: 2px; }
.doc-bar .mod-logo, .doc-bar .mod-icon { width: 44px; height: 44px; }
.doc-body { padding-top: clamp(28px, 3.5vw, 44px); }
.doc-side { top: calc(var(--topbar-h) + var(--doc-bar-h) + 20px); max-height: calc(100vh - var(--topbar-h) - var(--doc-bar-h) - 40px); }
@media (max-width: 640px) { :root:has(.doc-bar) { --doc-bar-h: 60px; } .doc-bar p + p { display: none; } }
/* Actions under the table of contents: the purchase, then the links clearly apart */
.doc-actions { display: grid; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.doc-actions .btn { justify-self: start; }
.doc-links { list-style: none; padding: 0; margin: 0; display: grid; }
.doc-links a { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: .88rem; color: var(--ink-2); text-decoration: none; }
.doc-links li + li a { border-top: 1px dashed var(--line); }
.doc-links a:hover { color: var(--teal); }

/* Name commonly used, second store */
.mh-aka { font-size: .88rem; font-weight: 600; color: var(--ink-2); margin-top: 2px; }
.buy-alt { margin-top: 6px; font-size: .85rem; }
.buy-alt a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); min-height: 32px; }
.buy-alt a:hover { color: var(--teal); }
/* Video: poster hosted here, YouTube player loaded on click only */
.video-sec { padding-bottom: 0; }
.head.is-center { margin-inline: auto; text-align: center; }
.yt { position: relative; max-width: 980px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 2px 4px rgba(24, 32, 43, .05), 0 40px 80px -36px rgba(24, 32, 43, .55); }
.yt-play { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: none; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, filter .4s; }
.yt-play:hover img { transform: scale(1.02); filter: brightness(.9); }
.yt-btn { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; box-shadow: 0 0 0 10px color-mix(in srgb, var(--teal) 25%, transparent), 0 20px 40px -12px rgba(0, 0, 0, .6); transition: transform .2s; }
.yt-play:hover .yt-btn, .yt-play:focus-visible .yt-btn { transform: scale(1.08); }
.yt-icon { width: 34px; height: 34px; margin-left: 4px; fill: currentColor; stroke: none; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-note { text-align: center; font-size: .8rem; color: var(--ink-2); margin-top: 12px; }
/* Long text without picture: one reading column in the middle */
.fsec.is-article { max-width: 780px; margin-inline: auto; width: 100%; }
.fsec.is-article .prose { max-width: none; }
.fsec.is-cards .fcards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.reviews-more { position: relative; margin: -20px 0 26px; }

/* Illustrations (mascot) beside the text */
.fsec-visual.is-illu { display: grid; place-items: center; }
.illu { width: min(100%, 420px); height: auto; filter: drop-shadow(0 24px 30px rgba(24, 32, 43, .14)); }
.fsec-side .illu { width: min(100%, 300px); margin-top: 22px; }
/* Recent screenshots */
.screens-sec { padding-bottom: 0; }
.screens { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 24px; }
.screens li { display: grid; gap: 10px; }
.screens .browser img { aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
.screens p { font-size: .88rem; font-weight: 600; color: var(--ink-2); text-align: center; }
/* Synchronisation matrix */
.matrix { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.matrix table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; min-width: 620px; }
.matrix th, .matrix td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }
.matrix tbody th { text-align: left; font-weight: 700; color: var(--ink); }
.matrix tbody tr:nth-child(even) { background: color-mix(in srgb, var(--bg-tint) 70%, transparent); }
.mx-group { background: var(--bg-tint); border-left: 1px solid var(--line); }
.mx-flow { display: inline-flex; align-items: center; gap: 10px; }
.mx-flow img { height: 26px; width: auto; max-width: 90px; }
.mx-flow img[src$="prestashop.svg"] { height: 38px; }
.mx-arrow { width: 20px; height: 20px; color: var(--teal); stroke-width: 2.4; }
.mx-act { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); background: var(--bg-tint); }
.mx-act:nth-child(odd) { border-left: 1px solid var(--line); }
.matrix td:nth-child(even) { border-left: 1px solid var(--line); }
.mk { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; }
.mk .icon { width: 15px; height: 15px; stroke-width: 2.6; }
.mk.is-yes { background: var(--teal); color: #fff; }
.mk.is-part { background: color-mix(in srgb, #d69e2e 18%, transparent); color: #b7791f; }
.mk.is-no { background: var(--bg-tint); color: color-mix(in srgb, var(--ink-2) 70%, transparent); }
.mk.is-none { color: var(--ink-2); }
.matrix td small { display: block; margin-top: 4px; font-size: .72rem; color: var(--ink-2); line-height: 1.3; }
@media (prefers-color-scheme: dark) { .mk.is-yes { color: #071016; } .mk.is-part { color: #f2b84b; } }
.mx-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; font-size: .82rem; color: var(--ink-2); }
.mx-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.mx-legend .mk { width: 20px; height: 20px; }
.mx-legend .mk .icon { width: 12px; height: 12px; }
/* Marks that explain themselves (popover, site.js) */
.mk.mx-tip { border: 0; padding: 0; font: inherit; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.mk.mx-tip:hover, .mk.mx-tip[aria-expanded="true"] { transform: scale(1.12); box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 18%, transparent); }
.mk.is-yes.mx-tip:hover, .mk.is-yes.mx-tip[aria-expanded="true"] { box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 25%, transparent); }
.mk.mx-tip:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.mx-pop { position: fixed; z-index: 60; width: min(300px, calc(100vw - 24px)); display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 16px 40px -14px rgba(24, 32, 43, .35); text-align: left; font-size: .84rem; line-height: 1.45; color: var(--ink); animation: mx-pop .16s ease-out; }
.mx-pop[hidden] { display: none; }
.mx-pop::after { content: ""; position: absolute; left: calc(var(--arrow, 50%) - 7px); bottom: -7px; width: 12px; height: 12px; background: var(--card); border: solid var(--line); border-width: 0 1px 1px 0; transform: rotate(45deg); }
.mx-pop.is-below::after { bottom: auto; top: -7px; border-width: 1px 0 0 1px; }
@keyframes mx-pop { from { opacity: 0; transform: translateY(4px); } }
.mx-pop-head { font-size: .74rem; color: var(--ink-2); }
.mx-pop-head b { color: var(--ink); }
.mx-pop-status { justify-self: start; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.mx-pop-status.is-yes { background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal-ink); }
.mx-pop-status.is-part { background: color-mix(in srgb, #d69e2e 16%, transparent); color: #9c6614; }
.mx-pop-status.is-no { background: var(--bg-tint); color: var(--ink-2); }
.mx-pop-text { color: var(--ink-2); }
.mx-hint { margin-left: auto; color: var(--ink-2); }
.mx-hint .li-icon { width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px; }
@media (prefers-color-scheme: dark) { .mx-pop-status.is-part { color: #f2b84b; } }
.fsec.is-table { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
/* Final call with a picture */
.final-illu { width: 150px; height: auto; margin-bottom: 18px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .4)); }
.matrix table { table-layout: fixed; }
.matrix thead tr:first-child th.mx-corner, .matrix tbody th { width: 24%; }
/* PrestaShop <-> Dolibarr flows as a band of the features (when the header shows a scene) */
.flows-band { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px clamp(28px, 4vw, 64px); align-items: center; margin-bottom: clamp(64px, 8vw, 104px); }
.flows-band h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
@media (max-width: 900px) { .flows-band { grid-template-columns: 1fr; } }

/* Scenes: the picture starts under the end of the text column, very faint there (a soft hint, text stays readable),
   then reaches full opacity a little after the text, with an eased ramp so no edge is seen. --d = distance from the
   left edge of the picture to the end of the text column (left column of .mh-in, 11 of 23 parts of the wrap) */
.mh-scene { --w: min(1200px, 100vw - 32px); --d: calc(var(--w) * .2); bottom: 0; left: calc((100vw - var(--w)) / 2 + var(--w) * .27); background-size: cover; background-position: right center;
	-webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .05) calc(var(--d) * .45), rgba(0, 0, 0, .14) var(--d), rgba(0, 0, 0, .4) calc(var(--d) + 70px), rgba(0, 0, 0, .78) calc(var(--d) + 150px), #000 calc(var(--d) + 230px));
	mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .05) calc(var(--d) * .45), rgba(0, 0, 0, .14) var(--d), rgba(0, 0, 0, .4) calc(var(--d) + 70px), rgba(0, 0, 0, .78) calc(var(--d) + 150px), #000 calc(var(--d) + 230px)); }
.mh-scene::after { background: none; }
/* Narrow: the scene becomes a picture between the text and the facts */
@media (max-width: 960px) {
	.mh.has-scene { display: flex; flex-direction: column; }
	.mh.has-scene .mh-in { order: 1; min-height: 0; padding-bottom: 0; }
	.mh-scene { position: relative; order: 2; inset: auto; left: auto; width: 100%; height: 52vw; margin-top: 18px; background-size: cover; background-position: right center; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%); mask-image: linear-gradient(90deg, transparent 0, #000 18%); }
	.mh.has-scene > .wrap:last-child { order: 3; }
}
/* Plain background of the header behind a live animation: full width, no subject, the animation stands out */
.mh-backdrop { position: absolute; inset: 0; background: center / cover no-repeat; }
.mh-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 70%, transparent) 0%, transparent 55%); }
.mh.has-backdrop .mh-sync { background: color-mix(in srgb, var(--card) 82%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
/* Dark mode: the light backdrop is dimmed so the light text stays readable, its colours still show through */
@media (prefers-color-scheme: dark) {
	.mh-backdrop::after { background: linear-gradient(90deg, rgba(11, 18, 27, .94) 0%, rgba(11, 18, 27, .86) 45%, rgba(11, 18, 27, .72) 100%); }
}

/* Header hierarchy: name, one value sentence, short text, benefits, actions on one line, one quiet line under */
.mh-value { margin-top: 18px; font-size: clamp(1.15rem, 1.9vw, 1.4rem); font-weight: 700; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); max-width: 30ch; }
.mh-aka { margin-top: 4px; }
.mh .mh-lead { margin-top: 12px; font-size: 1rem; }
.mh .benefits { margin: 20px 0 26px; }
.mh .actions { align-items: center; }
.mh-help { margin-top: 14px; font-size: .84rem; color: var(--ink-2); }
.mh-help a { color: var(--ink-2); }
/* Live header (animation): the panel fills the height of its column, bigger nodes and flows */
.mh.is-live .mh-in { align-items: stretch; }
.mh.is-live .mh-visual { display: flex; }
.mh.is-live .mh-sync { flex: 1; display: grid; align-content: center; padding: clamp(28px, 3.4vw, 48px) clamp(20px, 2.6vw, 36px); }
.mh.is-live .sync.is-big { gap: 22px; }
.mh.is-live .sync.is-big .sync-node { min-width: 170px; padding: 34px 20px; }
.mh.is-live .sync.is-big .sync-node img[src$="prestashop.svg"] { height: 110px; }
.mh.is-live .sync.is-big .sync-node img[src$="dolibarr.svg"] { max-width: 160px; }
.mh.is-live .sync.is-big .sync-flows { gap: 22px; }
.mh.is-live .sync.is-big .flow-label { font-size: .86rem; }
@media (max-width: 960px) { .mh.is-live .sync.is-big .sync-node { min-width: 0; padding: 22px 14px; } .mh.is-live .sync.is-big .sync-node img[src$="prestashop.svg"] { height: 70px; } }
.mh.is-live .sync.is-big { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); }
.mh.is-live .sync.is-big .sync-node { min-width: 0; padding: 30px 14px; }
.mh.is-live .sync.is-big .sync-node img[src$="dolibarr.svg"] { width: 100%; max-width: 150px; }
.mh.is-live .sync.is-big .flow-label { white-space: normal; text-align: center; line-height: 1.25; }
.mh-help a { white-space: nowrap; }
@media (max-width: 640px) { .mh.is-live .sync.is-big { grid-template-columns: 1fr; } }
/* Languages as flags */
.flags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 3px; }
.flags img { width: 26px; height: auto; border-radius: 4px; box-shadow: 0 0 0 1px rgba(24, 32, 43, .12); }
.flags abbr { font-size: .78rem; text-decoration: none; padding: 1px 5px; border-radius: 4px; background: var(--bg-tint); }
/* Tooltip of the flags: on hover, keyboard focus and tap (tabindex) */
.flag { position: relative; display: inline-flex; border-radius: 4px; outline-offset: 2px; cursor: default; }
.flag::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); padding: 5px 9px; border-radius: 7px; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: 0; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s, transform .15s; z-index: 5; }
.flag::before { content: ''; position: absolute; left: 50%; bottom: calc(100% + 3px); transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--navy); border-bottom: 0; opacity: 0; transition: opacity .15s; z-index: 5; }
.flag:hover::after, .flag:focus-visible::after, .flag:focus::after { opacity: 1; transform: translate(-50%, 0); }
.flag:hover::before, .flag:focus-visible::before, .flag:focus::before { opacity: 1; }
@media (prefers-color-scheme: dark) { .flag::after { background: #e3ebf2; color: #0b121b; } .flag::before { border-top-color: #e3ebf2; } }
.facts { overflow: visible; }
.facts > div:first-child { border-radius: var(--radius) 0 0 var(--radius); }
/* Audit fixes */
@media (prefers-color-scheme: dark) { .mx-flow img { background: #fff; border-radius: 6px; padding: 3px 6px; box-sizing: content-box; } }
@media (max-width: 640px) { .yt-btn { width: 60px; height: 60px; margin: -30px 0 0 -30px; } .yt-icon { width: 24px; height: 24px; } }
.screens li[hidden] { display: none; }
/* Long text with a picture: opening beside the picture, the rest on two columns */
.fsec.is-long { display: grid; gap: clamp(20px, 3vw, 36px); }
.fsec-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.fsec.is-long.is-flip .fsec-top .fsec-text { order: 2; }
.fsec.is-long .fsec-visual { position: static; }
.prose.is-lead { font-size: 1.05rem; }
.prose.is-cols2 { max-width: none; columns: 2; column-gap: clamp(28px, 4vw, 56px); padding-top: clamp(18px, 2.4vw, 28px); border-top: 1px solid var(--line); }
/* Paragraphs may go on in the next column (balanced columns), never fewer than 2 lines on each side; headings,
   lists and pictures stay whole, a heading never ends a column */
.prose.is-cols2 { column-fill: balance; orphans: 2; widows: 2; }
.prose.is-cols2 > :is(ul, ol, figure, blockquote, .shots, .table, .matrix) { break-inside: avoid; }
.prose.is-cols2 > :is(h3, h4) { break-after: avoid; break-inside: avoid; }
.prose.is-cols2 > p + p { margin-top: 1em; }
.prose.is-cols2 > :first-child { margin-top: 0; }
@media (max-width: 900px) { .fsec-top { grid-template-columns: 1fr; } .fsec.is-long.is-flip .fsec-top .fsec-text { order: 0; } .prose.is-cols2 { columns: 1; } }
/* Rows: the picture keeps the height of the text in view while reading, centred when the text is short */
.fsec.is-row { align-items: center; }

/* Installation: head with the actions, steps as cards, notes, why the Dolistore as a quiet strip */
.inst-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; margin-bottom: 28px; }
.inst-head h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.inst-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.inst-steps li { position: relative; display: grid; gap: 12px; align-content: start; padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.inst-steps p { font-size: .93rem; color: var(--ink-2); }
.inst-steps b { color: var(--ink); }
.inst-steps code { font-size: .85em; background: var(--bg-tint); padding: 1px 5px; border-radius: 5px; word-break: break-all; }
.inst-n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; font-weight: 800; }
@media (prefers-color-scheme: dark) { .inst-n { color: #071016; } }
.inst-notes { display: grid; gap: 8px; margin-top: 18px; }
.inst-notes .facts-note { margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--card); border: 1px dashed color-mix(in srgb, var(--teal) 45%, var(--line)); color: var(--ink); }
/* Offer of a setup session with a technician (page-overrides.json setupService) */
.setup-service { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 26px; margin-top: 26px; padding: 26px 28px; border-radius: var(--radius); background: var(--card); border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--line)); box-shadow: var(--shadow); }
.setup-service .kicker { margin-bottom: 4px; }
.setup-service h3 { font-size: 1.2rem; }
.setup-service p:not(.kicker) { margin-top: 6px; color: var(--ink-2); font-size: .93rem; max-width: 70ch; }
.setup-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--teal-soft); color: var(--teal-ink); align-self: start; }
.setup-mark .icon { width: 28px; height: 28px; }
.setup-points { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .88rem; color: var(--ink); }
.setup-points li { display: inline-flex; align-items: center; gap: 6px; }
.setup-points .benefit-icon { width: 20px; height: 20px; padding: 3px; }
@media (max-width: 860px) { .setup-service { grid-template-columns: 1fr; padding: 22px 20px; } .setup-mark { display: none; } .setup-service .btn { justify-self: start; } }
.inst-why { display: flex; gap: 16px; align-items: center; margin-top: 26px; padding: 16px 20px; border-radius: var(--radius); background: color-mix(in srgb, var(--card) 60%, transparent); border: 1px solid var(--line); }
.inst-why img { flex: none; width: 40px; height: 40px; }
.inst-why h3 { font-size: .95rem; }
.inst-why p { font-size: .88rem; color: var(--ink-2); margin-top: 2px; }
.inst-steps code { word-break: normal; white-space: nowrap; font-size: .8em; }
/* Anchors of the module pages land under the menu AND the sticky sub navigation */
:root:has(.subnav) { scroll-padding-top: calc(var(--topbar-h) + 56px + 16px); }

/* Testimonials */
.reviews-head { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; margin-bottom: 32px; }
.reviews-head .head { margin-bottom: 0; }
.rating-card { display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; min-height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: var(--on-dark); text-decoration: none; font-size: .9rem; transition: background .2s, border-color .2s; }
.rating-card:hover { background: rgba(255, 255, 255, .1); border-color: var(--glow); }
.rating-card b { font-size: 1.2rem; }
.rating-card span { color: var(--on-dark-2); }
.rating-go { width: 16px; height: 16px; color: var(--glow); }
.stars { position: relative; display: inline-block; font-size: 1.25rem; letter-spacing: 2px; line-height: 1; color: rgba(255, 255, 255, .2); }
.stars span { position: absolute; inset: 0; width: var(--v); overflow: hidden; white-space: nowrap; color: #f2b84b; }
.js .reviews [data-reveal] .stars span, .js .rating-card .stars span { animation: stars-in 1s ease-out .2s both; }
@keyframes stars-in { from { width: 0; } }
.quote { position: relative; transition: transform .25s, border-color .25s; }
.quote:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--glow) 45%, transparent); }
.q-who { display: flex; align-items: center; gap: 14px; }
.q-who p { display: grid; font-size: .88rem; color: var(--on-dark-2); line-height: 1.35; }
.q-who b { color: var(--on-dark); font-size: .98rem; }
.q-logo { flex: none; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .1); }
.q-logo.is-initials { display: grid; place-items: center; background: var(--teal); color: #071016; font-weight: 800; }
.quote .quote-mark { position: absolute; top: 22px; right: 22px; width: 30px; height: 30px; opacity: .5; }
.quote blockquote { display: grid; gap: 10px; }
.q-pull { font-size: 1.08rem; font-weight: 700; line-height: 1.45; color: var(--on-dark); }
.q-rest { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; color: var(--on-dark-2); font-size: .94rem; }
.q-rest.is-open { display: block; }
.q-toggle { justify-self: start; background: none; border: 0; padding: 6px 0; min-height: 36px; font: inherit; font-size: .85rem; font-weight: 700; color: var(--glow); cursor: pointer; }
.q-toggle:hover { text-decoration: underline; }
.editor-word { position: relative; display: flex; gap: 22px; align-items: flex-start; margin: 22px 0 0; padding: clamp(22px, 3vw, 32px); border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--glow) 14%, var(--dark-2)), var(--dark-2) 60%); border: 1px solid color-mix(in srgb, var(--glow) 30%, transparent); }
.editor-word .q-logo { width: 64px; height: 64px; border-radius: 16px; object-fit: contain; padding: 6px; }
.editor-word .kicker { margin-bottom: 8px; }
.editor-word blockquote { margin: 0; display: grid; gap: 10px; color: var(--on-dark-2); font-size: .95rem; }
.editor-word figcaption { margin-top: 12px; font-size: .88rem; color: var(--on-dark-2); }
.editor-word figcaption b { color: var(--on-dark); }
@media (max-width: 640px) { .editor-word { flex-direction: column; } }
.reviews .quotes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.reviews .quotes { align-items: start; }
/* Short verified reviews of the store: a row of compact cards, scrollable on small screens */
.store-reviews { position: relative; list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sr { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; color: var(--on-dark); }
.sr-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sr .stars { font-size: 1rem; }
.sr-ok { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 600; color: #7ee2b8; white-space: nowrap; }
.sr-ok-icon { width: 14px; height: 14px; }
.sr-by { font-size: .8rem; color: var(--on-dark-2); }
.sr-by b { color: var(--on-dark); }
@media (max-width: 1000px) { .store-reviews { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .sr { flex: 0 0 min(80%, 300px); scroll-snap-align: start; } }
/* Grey row of stars underneath, the gold one cut at the rating on top */
.stars::before { content: '★★★★★'; }
.stars span { top: 0; left: 0; bottom: auto; right: auto; }

/* Our role: understand, explain, let the customer decide (3 steps joined by a line, like a small circuit) */
.head.is-center { text-align: center; margin-inline: auto; }
.head.is-center h2 { text-wrap: balance; }
.head.is-center .lead { margin-inline: auto; }
.role-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; counter-reset: none; }
.role-steps::before { content: ''; position: absolute; top: 22px; left: 16%; right: 16%; border-top: 2px dashed color-mix(in srgb, var(--teal) 40%, transparent); }
.role-steps li { position: relative; display: grid; align-content: start; justify-items: center; text-align: center; gap: 8px; padding: 0 12px; }
.role-n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--bg); border: 2px solid var(--teal); color: var(--teal); font-weight: 800; font-size: 1.1rem; position: relative; }
.role-icon { width: 30px; height: 30px; color: var(--teal); margin-top: 10px; }
.role-steps h3 { font-size: 1.15rem; }
.role-steps p { color: var(--ink-2); font-size: .95rem; max-width: 34ch; }
.role-note { display: flex; align-items: center; justify-content: center; gap: 12px; width: fit-content; max-width: 100%; margin: 44px auto 0; padding: 16px 24px; border-radius: 999px; background: var(--teal-soft); color: var(--ink); font-weight: 600; text-align: left; }
.role-note-icon { width: 24px; height: 24px; flex: none; color: var(--teal); }
@media (max-width: 760px) {
	.role-steps { grid-template-columns: 1fr; gap: 28px; }
	.role-steps::before { top: 23px; bottom: 23px; left: 50%; right: auto; border-top: 0; border-left: 2px dashed color-mix(in srgb, var(--teal) 40%, transparent); }
	.role-steps li { background: var(--bg); padding: 8px 0; }
	.role-note { border-radius: 18px; }
}

/* Cards of a section: 3 per row, and a last row never left with one lonely card (the remaining cards share the
   row); 2 per row on medium screens */
.fsec.is-cards .fcards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fsec.is-cards .fcard { grid-column: span 2; }
.fsec.is-cards .fcard:last-child:nth-child(3n + 1) { grid-column: span 6; }
.fsec.is-cards .fcard:nth-last-child(2):nth-child(3n + 1), .fsec.is-cards .fcard:last-child:nth-child(3n + 2) { grid-column: span 3; }
@media (max-width: 900px) {
	.fsec.is-cards .fcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fsec.is-cards .fcard, .fsec.is-cards .fcard:nth-last-child(2):nth-child(3n + 1), .fsec.is-cards .fcard:last-child:nth-child(3n + 2) { grid-column: auto; }
	.fsec.is-cards .fcard:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .fsec.is-cards .fcards { grid-template-columns: 1fr; } }

/* Card section with an illustration: introduction and picture side by side, cards below */
.fsec.is-cards.has-illu .fsec-top { margin-bottom: 22px; }
.fsec.is-cards.has-illu .fsec-head { margin-bottom: 0; max-width: none; }
.fsec.is-cards.has-illu .illu { max-height: 340px; width: auto; max-width: 100%; }

/* ---- FacturZen animated timeline (assets/js/fz-timeline.js, prototype lab/facturzen-timeline.html) ---- */
.fz { --amber: #d98a0b; --amber-soft: #fdf3e1; --red: #c8463d; --red-soft: #fbe9e7; --green: #2f9e44; --green-soft: #e6f6ea; --blue: #2f6fdb; --blue-soft: #e7effc; --weekend: #f1f3f6; --day: 30px; }
@media (prefers-color-scheme: dark) { .fz { --amber-soft: #2e2410; --red-soft: #31181a; --green-soft: #12291a; --blue-soft: #121f36; --weekend: #0e1620; } }
/* Widget */
.fz { width: min(860px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 2px 4px rgba(24, 32, 43, .05), 0 30px 60px -30px rgba(24, 32, 43, .35); overflow: hidden; }
.fz .fz-head { display: flex; align-items: center; gap: 16px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.fz .cal { width: 84px; flex: none; border-radius: 14px; overflow: hidden; text-align: center; background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 14px -8px rgba(24, 32, 43, .35); }
.fz .cal-m { background: var(--teal); color: #fff; font-size: .64rem; white-space: nowrap; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 0; }
.fz .cal.is-off .cal-m { background: #8a95a3; }
.fz .cal-d { font-size: 1.9rem; font-weight: 700; line-height: 1.1; padding-top: 4px; }
.fz .cal-w { font-size: .68rem; color: var(--ink-2); padding-bottom: 6px; text-transform: capitalize; }
.fz .cal-d.is-flip { animation: fz-flip .22s ease-out; }
@keyframes fz-flip { from { transform: translateY(-40%); opacity: 0; } to { transform: none; opacity: 1; } }
.fz .fz-title { flex: 1; min-width: 0; }
.fz .fz-title b { display: block; font-size: 1.05rem; }
.fz .fz-title span { color: var(--ink-2); font-size: .85rem; }
.fz .pause { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; }
.fz .pause:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.fz .pause svg { width: 20px; height: 20px; }

/* Lanes: invoice on the left, its days on the right */
.fz .lanes { position: relative; }
.fz .lane { display: grid; grid-template-columns: 190px minmax(0, 1fr); border-bottom: 1px solid var(--line); height: 92px; }
.fz .lane-info { padding: 14px 14px 12px 20px; display: grid; align-content: center; gap: 2px; border-right: 1px solid var(--line); background: var(--card); position: relative; z-index: 2; transition: opacity .4s; }
.fz .lane-info .ref { font-size: .72rem; color: var(--ink-2); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz .lane-info { min-width: 0; overflow: hidden; }
.fz .lane-info .who { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fz .lane-info .amt { font-size: .82rem; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.fz .state { display: inline-block; font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.fz .state.is-late { background: var(--amber-soft); color: var(--amber); }
.fz .state.is-hard { background: var(--red-soft); color: var(--red); }
.fz .state.is-paid { background: var(--green-soft); color: var(--green); }
.fz .lane-info.is-swap > * { animation: fz-swap .5s ease-out; }
@keyframes fz-swap { from { opacity: 0; transform: translateY(6px); } }
.fz .lane-track { position: relative; overflow: hidden; }
.fz .strip { position: absolute; inset: 0; will-change: transform; }
.fz .day { position: absolute; top: 0; bottom: 0; width: var(--day); border-left: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.fz .day.is-off { background: var(--weekend); }
.fz .day.is-first::after { content: attr(data-m); position: absolute; bottom: 4px; left: 4px; font-size: .62rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; white-space: nowrap; }
.fz .span { position: absolute; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; background: color-mix(in srgb, var(--teal) 35%, transparent); }
.fz .ev { position: absolute; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -2px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--c, var(--teal)); color: var(--c, var(--teal)); transition: transform .3s, background .3s, color .3s; z-index: 1; }
.fz .ev svg { width: 18px; height: 18px; }
.fz .ev.is-done { background: var(--c, var(--teal)); color: #fff; }
.fz .ev.is-now { animation: fz-pop .6s ease-out; }
@keyframes fz-pop { 0% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in srgb, var(--c, var(--teal)) 50%, transparent); } 40% { transform: scale(1.35); } 100% { transform: scale(1); box-shadow: 0 0 0 14px transparent; } }
.fz .ev .moved { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: .6rem; font-weight: 700; white-space: nowrap; color: var(--ink-2); background: var(--card); border: 1px dashed var(--line); border-radius: 6px; padding: 0 5px; }
.fz .ev.k-issue { --c: var(--navy); } .fz .ev.k-mail { --c: var(--blue); } .fz .ev.k-sepa { --c: var(--teal); } .fz .ev.k-rem { --c: var(--amber); }
.fz .ev.k-hard { --c: var(--red); } .fz .ev.k-call { --c: #7b4bd1; } .fz .ev.k-paid { --c: var(--green); }
@media (prefers-color-scheme: dark) { .fz .ev.k-issue { --c: #9fb3c8; } }
/* Today: fixed line, the days slide under it */
.fz .today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--teal); z-index: 3; pointer-events: none; }
.fz .today::before { content: 'Aujourd’hui'; position: absolute; top: -1px; left: 6px; font-size: .62rem; font-weight: 700; color: var(--teal); background: var(--card); padding: 0 4px; border-radius: 4px; text-transform: uppercase; letter-spacing: .06em; }
.fz .past { position: absolute; top: 0; bottom: 0; left: 190px; background: linear-gradient(90deg, var(--card) 0%, color-mix(in srgb, var(--card) 40%, transparent) 100%); z-index: 2; pointer-events: none; }

/* Feed of what FacturZen just did */
.fz .feed { list-style: none; margin: 0; padding: 12px 20px 16px; display: grid; gap: 8px; min-height: 152px; align-content: start; }
.fz .feed li { display: flex; gap: 10px; align-items: center; font-size: .86rem; animation: fz-in .4s ease-out; }
.fz .feed li:nth-child(n+2) { opacity: .65; }
.fz .feed li:nth-child(n+3) { opacity: .4; }
.fz .feed .ic { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.fz .feed .ic svg { width: 16px; height: 16px; }
.fz .feed time { color: var(--ink-2); font-size: .75rem; margin-left: auto; white-space: nowrap; padding-left: 10px; }
@keyframes fz-in { from { transform: translateY(-8px); opacity: 0; } }
.fz .feed .k-issue { --c: var(--navy); } .fz .feed .k-mail { --c: var(--blue); } .fz .feed .k-sepa { --c: var(--teal); } .fz .feed .k-rem { --c: var(--amber); }
.fz .feed .k-hard { --c: var(--red); } .fz .feed .k-call { --c: #7b4bd1; } .fz .feed .k-paid { --c: var(--green); }
@media (prefers-color-scheme: dark) { .fz .feed .k-issue { --c: #9fb3c8; } }

/* Phone: each invoice on one line above its own timeline */
@media (max-width: 620px) {
	.fz .fz-head { flex-wrap: wrap; }
	.fz .fz-title span { display: none; }
	.fz .lane { grid-template-columns: 1fr; grid-template-rows: auto 58px; height: auto; }
	.fz .lane-info { border-right: 0; padding: 8px 14px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; position: relative; z-index: 4; }
	.fz .lane-info .ref { display: none; }
	.fz .lane-info .who { font-size: .85rem; }
	.fz .past { left: 0; }
	.fz .feed { padding-inline: 14px; min-height: 190px; }
	.fz .feed time { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fz .cal-d.is-flip, .fz .ev.is-now, .fz .feed li { animation: none; } }

/* FacturZen timeline band of the module page */
.fz-band { display: grid; gap: 22px; justify-items: center; margin: 8px 0 56px; }
.fz-band .head { text-align: center; margin: 0 auto; }
.fz-band .head .lead { margin-inline: auto; }
.fz .today::before { content: attr(data-label); }

/* Videos of the module pages: never wider than their column, framed like the screenshots */
.shot video { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #000; }
/* Step galleries: whole screenshots (no crop), 3 per row, a last row never left with one picture */
.steps-gallery { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.steps-gallery li { grid-column: span 2; }
.steps-gallery li:last-child:nth-child(3n + 1) { grid-column: 2 / span 4; }
.steps-gallery li:nth-last-child(2):nth-child(3n + 1), .steps-gallery li:last-child:nth-child(3n + 2) { grid-column: span 3; }
.steps-gallery .browser img { aspect-ratio: auto; object-fit: contain; background: #fff; }
/* A portrait page (PDF) in the frame of the screenshots: its top, the whole page in the zoom */
.steps-gallery .browser .is-portrait img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
@media (max-width: 900px) {
	.steps-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.steps-gallery li, .steps-gallery li:nth-last-child(2):nth-child(3n + 1), .steps-gallery li:last-child:nth-child(3n + 2), .steps-gallery li:last-child:nth-child(3n + 1) { grid-column: auto; }
	.steps-gallery li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .steps-gallery { grid-template-columns: 1fr; } }

/* From the module to the core of Dolibarr */
.core-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; background: #fdf3e1; color: #9a5d00; vertical-align: middle; margin-right: 4px; }
.core-tag.is-merged { background: var(--teal-soft); color: var(--teal-2); }
@media (prefers-color-scheme: dark) { .core-tag { background: #2e2410; color: #f2b84b; } .core-tag.is-merged { color: var(--teal); } }
.prose p > .core-tag:first-child { display: flex; width: fit-content; margin-bottom: 8px; }
.core-sec { background: var(--bg-tint); }
.core-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(28px, 5vw, 64px); align-items: start; }
.core-in .head { margin-bottom: 0; grid-row: span 2; }
.core-in .head .btn { margin-top: 22px; }
.core-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.core-list::before { content: ''; position: absolute; left: 21px; top: 30px; bottom: 30px; border-left: 2px dashed color-mix(in srgb, var(--teal) 45%, transparent); }
.core-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 14px 0; position: relative; }
.core-dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 2px solid var(--teal); color: var(--teal); }
.core-item.is-progress .core-dot { border-color: #d98a0b; color: #d98a0b; border-style: dashed; }
.core-icon { width: 22px; height: 22px; }
.core-item h3 { font-size: 1.1rem; margin: 8px 0 4px; }
.core-item p { color: var(--ink-2); }
.core-note { grid-column: 2; margin: 0; padding: 14px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); font-size: .93rem; }
@media (max-width: 900px) { .core-in { grid-template-columns: 1fr; } .core-in .head { grid-row: auto; } .core-note { grid-column: auto; } }

/* Reminder of the online demo after the features */
.try-band { padding: 0 0 clamp(48px, 7vw, 80px); }
.try-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 28px; padding: 28px 32px; border-radius: var(--radius); background: var(--teal-soft); border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent); }
.try-in h2 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
.try-in p:not(.kicker) { color: var(--ink-2); margin-top: 6px; max-width: 60ch; }
.try-in .kicker { margin-bottom: 6px; color: var(--teal-ink); }
.try-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--card); color: var(--teal-ink); }
.try-mark svg { width: 26px; height: 26px; }
@media (max-width: 760px) { .try-in { grid-template-columns: 1fr; padding: 24px 20px; } .try-mark { display: none; } .try-in .btn { justify-self: start; } }
/* Choice of the store, for a module sold on two stores */
.stores { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 28px 0 0; }
.store-card { display: grid; grid-template-rows: auto 1fr auto; gap: 16px; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.store-id { display: flex; align-items: center; gap: 14px; }
.store-id img { flex: none; width: 44px; height: 44px; object-fit: contain; }
.store-id h3 { font-size: 1.1rem; }
.store-id p { font-size: .84rem; color: var(--ink-2); margin-top: 2px; }
.store-text { color: var(--ink-2); font-size: .95rem; }
.store-card .btn { justify-self: start; }

/* ---------- Magic section (page-overrides.json magicSection): full width, dark, a golden flow drawn by a wand
   (assets/js/magic-flow.js); prototype in lab/magic-wave.html ---------- */
.fsec.is-magic { --gold: #f2c45a; --gold-light: #ffe8a8; --gold-deep: #b9862c; --magic-bg: #0d0b08; --magic-bg-2: #1a1409; position: relative; isolation: isolate; overflow: hidden;
	margin-inline: calc(50% - 50vw); padding: clamp(80px, 9vw, 130px) calc(50vw - 50%);
	/* Golden night (bokeh light top right) under a veil that keeps the text readable; --magic-veil tunes it */
	--magic-veil: .15;
	background:
		linear-gradient(90deg, rgba(13, 11, 8, var(--magic-veil)), rgba(13, 11, 8, 0) 70%),
		radial-gradient(50% 60% at 5% 80%, color-mix(in srgb, var(--gold-deep) 8%, transparent), transparent 70%),
		url('../img/magic/golden-night.webp') right top / cover no-repeat,
		linear-gradient(180deg, var(--magic-bg), var(--magic-bg-2));
	color: #f5efe2; }
.fsec.is-magic > :not(.magic, .magic-wand) { position: relative; z-index: 2; }
.is-magic .fsec-head h2 { color: #fff7e6; }
.is-magic .fsec-head .prose p { color: #cfc4ad; }
/* Cards 1 and 2: frosted glass, the flow passes blurred behind them */
.is-magic .fcard { background: color-mix(in srgb, #fff 7%, transparent); border: 1px solid color-mix(in srgb, var(--gold-light) 16%, transparent); box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.is-magic .fcard h3 { color: #fff7e6; border-left-color: var(--gold) !important; }
.is-magic .fcard h3::before { background: var(--gold) !important; }
.is-magic .fcard p { color: #d8cfbd; }
.is-magic .fcard em { color: var(--gold-light); }

.magic { position: absolute; inset: 0; z-index: 1; pointer-events: none; contain: strict; }
/* Off screen: the twinkling stops (magic-flow.js) */
.is-magic.is-off .spark, .is-magic.is-off .dust, .is-magic.is-off .wand-star { animation-play-state: paused; }
.magic svg.flow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
/* Wand 4: big, tilted, tip towards the top left */
.magic-wand { position: absolute; transform-origin: 7.3% 7.3%; will-change: left, top, transform; width: clamp(200px, 24vw, 380px); aspect-ratio: 1; z-index: 1; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .55)); }
.magic-wand svg { width: 100%; height: 100%; overflow: visible; display: block; }
.wand-star { transform-box: fill-box; transform-origin: center; animation: star-breathe 3s ease-in-out infinite; }
@keyframes star-breathe { 50% { transform: scale(.82) rotate(12deg); opacity: .8; } }
.magic-wand.is-hit .wand-star { animation: star-hit .9s cubic-bezier(.2, 1.6, .4, 1), star-breathe 3s ease-in-out .9s infinite; }
@keyframes star-hit { 0% { transform: scale(1); } 35% { transform: scale(1.9) rotate(40deg); } 100% { transform: scale(1); } }

/* Sparkles */
.spark { position: absolute; z-index: 1; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); color: var(--c); }
.spark svg { width: 100%; height: 100%; display: block; }
.spark.is-fly { animation: fly var(--d) ease-out forwards; }
@keyframes fly {
	0% { opacity: 0; transform: scale(.2); }
	25% { opacity: 1; transform: scale(1.1) rotate(25deg); }
	100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3) rotate(80deg); }
}
/* Trail stars that stay and twinkle */
.spark.is-stay { opacity: 0; animation: appear .6s ease-out var(--in) forwards, twinkle var(--d) ease-in-out calc(var(--in) + .6s) infinite; }
@keyframes appear { to { opacity: var(--o); } }
@keyframes twinkle { 0%, 100% { opacity: var(--o); transform: scale(1) rotate(0); } 50% { opacity: .15; transform: scale(.45) rotate(35deg); } }
.dust { position: absolute; z-index: 1; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: radial-gradient(circle, var(--gold-light) 22%, transparent 70%); opacity: 0; animation: appear .8s ease-out var(--in) forwards, twinkle var(--d) ease-in-out calc(var(--in) + .8s) infinite; }

@media (prefers-reduced-motion: reduce) {
	.spark, .dust, .wand-star { animation: none !important; opacity: var(--o, .9) !important; }
}
@media (max-width: 760px) {
	/* Tall narrow section: the bokeh stays in the top right corner instead of being blown up behind the text */
	.fsec.is-magic { --magic-veil: .35; background-size: auto, auto, 820px auto, auto; }
	.magic-wand { width: 130px; opacity: .7; }
}

/* ---------- Cinema room: playing a video of our own turns the page into a cinema room (assets/js/cinema.js,
   prototype in lab/cinema.html) ---------- */
:root { --cine-ease: cubic-bezier(.65, 0, .25, 1); --cine-velvet-1: #2a0407; --cine-velvet-2: #5a0b13; --cine-velvet-3: #8e1a24; --cine-gold: #c9973a; --cine-screen: 130, 110, 255; }

/* The room takes the colour of the film (cinema.js samples the frames): every light of the room uses currentColor */
.cine-room { color: rgb(var(--cine-screen)); transition: color .45s linear; }

/* Room lights: the whole page goes dark */
.cine-dim { position: fixed; inset: 0; z-index: 1000; background: #050305; opacity: 0; pointer-events: none; transition: opacity .9s var(--cine-ease); }
.cine-on .cine-dim { opacity: calc(.965 - var(--cine-exit-p, 0) * .45); pointer-events: auto; cursor: pointer; transition-duration: .9s, .15s; }

/* The screen: the video itself, lifted above the room and moved to the middle */
.yt.cine-screen { z-index: 1003; transition: transform 1s var(--cine-ease), border-radius .8s, box-shadow 1s; will-change: transform; }
.cine-on .yt.cine-screen { border-radius: 3px; box-shadow: 0 0 0 9px #060505, 0 0 0 10px rgba(255, 255, 255, .06), 0 0 140px 30px rgba(var(--cine-screen), .2); }

/* Light of the screen on the room, softly flickering like a film */
.cine-glow { position: fixed; inset: 0; z-index: 1001; pointer-events: none; opacity: 0; transition: opacity 1.2s .5s;
	background: radial-gradient(42% 46% at 50% var(--cine-y, 44%), color-mix(in srgb, currentColor 26%, transparent), transparent 70%); }
.cine-on .cine-glow { opacity: 1; animation: cine-flicker 5s ease-in-out 1.6s infinite; }
@keyframes cine-flicker { 0%, 100% { filter: brightness(1); } 30% { filter: brightness(1.18); } 55% { filter: brightness(.9); } 80% { filter: brightness(1.08); } }

/* Projector beam, from behind the audience to the screen, with dust in it */
.cine-beam { position: fixed; inset: 0; z-index: 1002; pointer-events: none; opacity: 0; transition: opacity 1.4s 1s; mix-blend-mode: screen; }
.cine-on .cine-beam { opacity: 1; }
.cine-beam svg { width: 100%; height: 100%; display: block; }
.cine-dust { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: rgba(255, 250, 235, .55); animation: cine-dust var(--d) linear var(--delay) infinite; }
@keyframes cine-dust { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .6; } 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; } }

/* Velvet curtains on both sides, sliding in */
.cine-curtain { position: fixed; top: 0; bottom: 0; z-index: 1004; width: var(--cine-cw, 22vw); pointer-events: none; transition: transform 1.1s var(--cine-ease) .25s;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 25%, transparent 65%, rgba(0, 0, 0, .85)),
		repeating-linear-gradient(90deg, var(--cine-velvet-1) 0, var(--cine-velvet-2) 14px, var(--cine-velvet-3) 24px, var(--cine-velvet-2) 34px, var(--cine-velvet-1) 48px); }
.cine-curtain::after { content: ""; position: absolute; inset: 0; }
.cine-curtain.is-left { left: 0; transform: translateX(-102%); }
.cine-curtain.is-right { right: 0; transform: translateX(102%); }
/* The edge facing the screen catches its light */
.cine-curtain.is-left::after { background: linear-gradient(90deg, rgba(0, 0, 0, .6), transparent 45%, color-mix(in srgb, currentColor 16%, transparent) 92%, rgba(0, 0, 0, .55)); }
.cine-curtain.is-right::after { background: linear-gradient(270deg, rgba(0, 0, 0, .6), transparent 45%, color-mix(in srgb, currentColor 16%, transparent) 92%, rgba(0, 0, 0, .55)); }
.cine-on .cine-curtain { transform: none; }
/* Valance on top with a gold fringe */
.cine-valance { position: fixed; left: 0; right: 0; top: 0; z-index: 1005; height: 9vh; min-height: 56px; pointer-events: none; transform: translateY(-110%); transition: transform 1s var(--cine-ease) .15s;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, .6), transparent 70%),
		repeating-linear-gradient(90deg, var(--cine-velvet-1) 0, var(--cine-velvet-2) 22px, var(--cine-velvet-3) 34px, var(--cine-velvet-2) 46px, var(--cine-velvet-1) 64px);
	-webkit-mask: radial-gradient(32px 18px at 32px 100%, transparent 98%, #000) 0 0 / 64px 100%;
	mask: radial-gradient(32px 18px at 32px 100%, transparent 98%, #000) 0 0 / 64px 100%; }
.cine-valance::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 3px; background: linear-gradient(90deg, #6b4a12, var(--cine-gold), #ffe3a0, var(--cine-gold), #6b4a12); opacity: .85; }
.cine-on .cine-valance { transform: none; }

/* Rows of seats in the foreground, lit from the screen on their top edge */
.cine-seats { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1006; height: 26vh; pointer-events: none; transform: translateY(105%); transition: transform 1.1s var(--cine-ease) .35s; }
.cine-seats svg { width: 100%; height: 100%; display: block; }
.cine-on .cine-seats { transform: none; }

/* Way out */
.cine-exit { position: fixed; top: calc(9vh + 18px); right: 22px; z-index: 1010; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(10, 8, 10, .55); color: #f3ece0; font: 600 .85rem/1 Montserrat, system-ui, sans-serif; cursor: pointer; opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .4s, border-color .2s; pointer-events: none; backdrop-filter: blur(6px); }
.cine-exit svg { width: 18px; height: 18px; }
.cine-exit:hover, .cine-exit:focus-visible { border-color: var(--cine-gold); color: #ffe3a0; }
.cine-on .cine-exit { opacity: 1; transform: none; transition-delay: 1.2s; pointer-events: auto; }
html.cine-lock { overflow: hidden; }
/* Leaving the room: the sticky menus come back above the screen that is still going back to its place */
html.cine-leaving .topbar, html.cine-leaving .subnav { z-index: 1005; }

/* Way out by scrolling: hint above the seats, with the gauge that fills while the visitor scrolls */
.cine-hint { position: fixed; left: 50%; bottom: 7vh; z-index: 1010; transform: translate(-50%, 8px); display: grid; justify-items: center; gap: 8px; padding: 9px 18px 11px; border-radius: 14px; background: rgba(10, 8, 10, .6); color: #f3ece0; font: 500 .82rem/1.3 Montserrat, system-ui, sans-serif; opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s; backdrop-filter: blur(6px); }
.cine-hint i { width: 160px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--cine-gold) calc(var(--cine-exit-p, 0) * 100%), rgba(255, 255, 255, .18) 0); }
/* Always there while the room is open: the visitor watches the film, and finds the way out when he needs it */
.cine-on .cine-hint { opacity: 1; transform: translate(-50%, 0); transition-delay: 1.2s; }
html:not(.cine-on) .cine-hint { transition-duration: .3s; transition-delay: 0s; }
/* The curtains start closing in with the gauge */
.cine-on .cine-curtain.is-left { transform: translateX(calc(var(--cine-exit-p, 0) * -40%)); }
.cine-on .cine-curtain.is-right { transform: translateX(calc(var(--cine-exit-p, 0) * 40%)); }

@media (prefers-reduced-motion: reduce) {
	.cine-dim, .yt.cine-screen, .cine-curtain, .cine-valance, .cine-seats, .cine-beam, .cine-glow { transition-duration: .01s !important; transition-delay: 0s !important; }
	.cine-glow, .cine-dust { animation: none !important; }
}
@media (max-width: 760px) {
	.cine-curtain { --cine-cw: 9vw; }
	.cine-seats { height: 18vh; }
	.cine-exit { top: calc(9vh + 12px); right: 12px; }
	.cine-hint { bottom: 4vh; width: max-content; max-width: 90vw; text-align: center; }
}

/* Leaving is quicker than entering, without the staggered delays: the room must not linger while the page scrolls */
html:not(.cine-on) .cine-dim, html:not(.cine-on) .cine-glow, html:not(.cine-on) .cine-beam, html:not(.cine-on) .cine-curtain, html:not(.cine-on) .cine-valance, html:not(.cine-on) .cine-seats, html:not(.cine-on) .cine-exit { transition-duration: .5s; transition-delay: 0s; }

/* ---------- Our video player (in place of YouTube) ---------- */
.vp { position: absolute; inset: 0; background: #000; color: #fff; }
.vp video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
.vp-big { position: absolute; inset: 0; border: 0; padding: 0; background: rgba(0, 0, 0, .15); cursor: pointer; opacity: 1; transition: opacity .3s; }
.vp:not(.is-paused) .vp-big { opacity: 0; pointer-events: none; }
.vp-big .yt-btn svg { width: 34px; height: 34px; margin-left: 4px; }
.vp-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 34px 14px 12px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72)); font: 600 .8rem/1 Montserrat, system-ui, sans-serif; transition: opacity .35s; }
.vp.is-idle:not(.is-paused) .vp-bar { opacity: 0; }
.vp.is-idle:not(.is-paused) { cursor: none; }
.vp-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: background .2s; }
.vp-btn:hover, .vp-btn:focus-visible { background: rgba(255, 255, 255, .16); }
.vp-btn svg { width: 22px; height: 22px; }
.vp-time { white-space: nowrap; font-variant-numeric: tabular-nums; opacity: .9; }
.vp-time b { font-weight: 700; }
.vp-seek { flex: 1; min-width: 60px; height: 22px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.vp-seek::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--teal) var(--p, 0%), rgba(255, 255, 255, .28) 0); }
.vp-seek::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--teal) var(--p, 0%), rgba(255, 255, 255, .28) 0); }
.vp-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 45%, transparent); transition: transform .15s; }
.vp-seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.vp-seek:hover::-webkit-slider-thumb { transform: scale(1.2); }
.vp-seek:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; border-radius: 4px; }
.vp:fullscreen { border-radius: 0; }
@media (max-width: 560px) { .vp-bar { gap: 4px; padding: 26px 8px 6px; } .vp-time span { display: none; } }

/* ConversionView reproduced on fictitious quote cards (modules.js widget 'quotes'), Dolibarr like */
.cv-demo { margin: 34px 0 clamp(48px, 6vw, 72px); }
.cv-demo .head h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.cv-demo .head .lead { font-size: .95rem; }
.cv-hint { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin: -10px 0 0; font-size: .82rem; color: var(--ink-2); }
.cv-hint .li-icon { width: 15px; height: 15px; }
.cv-quotes { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 18px; }
.cv-quote { display: grid; align-content: start; gap: 12px; padding: 0 0 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; font-size: .86rem; }
.cv-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--bg-tint); border-bottom: 1px solid var(--line); }
.cv-head b { font-size: .95rem; color: var(--ink); }
.cv-status { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--ink-2) 14%, transparent); color: var(--ink-2); }
.cv-fields { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; padding: 0 16px; }
.cv-fields dt { color: var(--ink-2); }
.cv-fields dd { margin: 0; color: var(--ink); font-weight: 600; }
.cv-field { margin: 4px 16px 0; padding-top: 10px; border-top: 1px dashed var(--line); font-weight: 700; color: var(--ink); }
.cv-table { width: calc(100% - 32px); margin: 0 16px; border-collapse: collapse; }
.cv-table th, .cv-table td { padding: 7px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.cv-table thead th { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); background: var(--bg-tint); }
.cv-table tbody th { text-align: right; font-weight: 600; color: var(--ink); white-space: nowrap; }
.cv-rate { padding: 2px 4px; border: 0; background: none; font: inherit; font-variant-numeric: tabular-nums; color: var(--ink); cursor: pointer; text-decoration: underline dotted color-mix(in srgb, var(--ink-2) 60%, transparent); text-underline-offset: 3px; border-radius: 4px; }
.cv-rate:hover, .cv-rate[aria-expanded="true"] { background: var(--teal-soft); color: var(--teal-ink); }
.cv-rate:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.cv-pop { width: auto; white-space: nowrap; }
.cv-story { display: flex; gap: 8px; margin: 2px 16px 0; color: var(--ink-2); font-size: .84rem; line-height: 1.45; }
.cv-story .li-icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--teal); }
/* The invisible loss: highlighted as an alert */
.cv-story.is-alert { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, #d69e2e 13%, transparent); border: 1px solid color-mix(in srgb, #d69e2e 35%, transparent); color: var(--ink); }
.cv-story.is-alert .li-icon { color: #b7791f; }
.cv-quote:has(.is-alert) { border-color: color-mix(in srgb, #d69e2e 45%, var(--line)); }

/* ---------- Animated editor of Creative Templates (page-overrides editorFilm, assets/js/ct-editor.js,
   markup build/widgets/ct-editor-stage.html, prototype lab/ct-editor.html).
   Colours copied from the module editor (css/editor.css, dark theme). The stage is drawn at 960 x 600
   and scaled to its container, so every size below is in stage pixels. */
.ce { --ce-topbar: #1e1f22; --ce-bg: #323339; --ce-bg-dark: #2c2d32; --ce-raised: #36373e; --ce-hover: #393a41; --ce-border: #43444b;
	--ce-text: #dbdee1; --ce-strong: #fff; --ce-muted: #949ba4; --ce-accent: #d278c9; --ce-accent-deep: #8e3785; --ce-ok: #9be89b;
	--ce-doc-accent: #313338;
	position: relative; }
.ce-fit { position: relative; width: 100%; aspect-ratio: 960 / 600; overflow: hidden; border-radius: 14px; background: var(--ce-topbar);
	box-shadow: 0 2px 4px rgba(24, 32, 43, .08), 0 34px 70px -30px rgba(10, 12, 20, .7); }
.ce-stage { position: absolute; left: 0; top: 0; width: 960px; height: 600px; transform-origin: 0 0; transform: scale(var(--ce-s, .6));
	display: grid; grid-template: 48px 1fr / 186px 1fr 206px; color: var(--ce-text); font: 500 14px/1.35 system-ui, -apple-system, "Segoe UI", sans-serif; user-select: none; }

/* ---------- Top bar ---------- */
.ce-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: var(--ce-topbar); border-bottom: 1px solid #000; }
.ce-logo { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, var(--ce-accent), var(--ce-accent-deep)); display: grid; place-items: center; color: #fff; font: 800 13px/1 system-ui, sans-serif; }
.ce-name { font-weight: 650; color: var(--ce-strong); }
.ce-name small { display: block; font-size: 11.5px; font-weight: 500; color: var(--ce-muted); }
.ce-icons { display: flex; gap: 4px; margin-left: 8px; }
.ce-icons i { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: var(--ce-muted); }
.ce-icons svg { width: 17px; height: 17px; }
.ce-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ce-muted); }
.ce-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ce-ok); transition: background .3s; }
.ce.is-dirty .ce-status::before { background: #ffd479; }
.ce-status .is-dirty, .ce.is-dirty .ce-status .is-saved { display: none; }
.ce.is-dirty .ce-status .is-dirty { display: inline; }
.ce-spacer { flex: 1; }
.ce-switch { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ce-text); }
.ce-switch b { position: relative; width: 34px; height: 19px; border-radius: 19px; background: var(--ce-border); transition: background .3s; }
.ce-switch b::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: transform .3s; }
.ce.is-data .ce-switch b { background: var(--ce-accent-deep); }
.ce.is-data .ce-switch b::after { transform: translateX(15px); }
.ce-pdf { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 8px; background: var(--ce-accent-deep); color: #fff; font-weight: 650; font-size: 13.5px; transition: transform .15s, filter .15s; }
.ce-pdf svg { width: 17px; height: 17px; }

/* ---------- Left panel: blocks by category (labels of the module) ---------- */
.ce-blocks { background: var(--ce-bg-dark); border-right: 1px solid var(--ce-border); padding: 12px 10px; overflow: hidden; }
.ce-search { height: 30px; border-radius: 7px; background: var(--ce-raised); border: 1px solid var(--ce-border); color: var(--ce-muted); font-size: 12.5px; display: flex; align-items: center; padding: 0 10px; margin-bottom: 12px; }
.ce-cat { margin: 12px 2px 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ce-muted); }
.ce-tile { white-space: nowrap; display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 9px; margin-bottom: 5px; border-radius: 8px; background: var(--ce-raised); border: 1px solid transparent; font-size: 13.5px; transition: background .2s, border-color .2s, opacity .2s; }
.ce-tile svg { width: 18px; height: 18px; color: var(--ce-accent); flex: none; }
.ce-tile.is-held { border-color: var(--ce-accent); background: var(--ce-hover); }
.ce-ghost { position: absolute; left: 0; top: 0; z-index: 40; width: 150px; pointer-events: none; margin: 0; box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .6); border-color: var(--ce-accent); opacity: .95; rotate: -3deg; }

/* ---------- Canvas: the A4 page, scrolled by the script when it grows ---------- */
.ce-canvas { position: relative; overflow: hidden; background: var(--ce-bg); }
.ce-scroll { position: absolute; left: 0; right: 0; top: 0; padding: 22px 0 40px; transition: transform .7s cubic-bezier(.45, 0, .2, 1); }
.ce-page { --ce-doc-size: 26px; position: relative; width: 470px; min-height: 665px; margin: 0 auto; padding: 34px 36px; background: #fff; color: #313338; border-radius: 2px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
	font: 400 12.5px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; transition: transform .8s cubic-bezier(.45, 0, .2, 1), box-shadow .8s; }
.ce-empty { margin-top: 18px; height: 70px; border: 2px dashed #c9ccd3; border-radius: 6px; display: grid; place-items: center; color: #8a8f99; font-size: 12.5px; transition: opacity .3s; }
.ce-page.has-blocks .ce-empty { opacity: 0; height: 0; margin: 0; border-width: 0; overflow: hidden; }

/* A block grows from nothing when it is dropped (grid rows 0fr -> 1fr) */
.ce-blk { position: relative; display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s cubic-bezier(.3, 0, .2, 1), opacity .35s .1s, margin .45s; }
.ce-blk > div { min-height: 0; overflow: hidden; }
.ce-blk.is-in { grid-template-rows: 1fr; opacity: 1; margin-top: 28px; }
.ce-blk.is-in:first-of-type { margin-top: 0; }
/* Selection, as in the editor: accent outline and the block name on a tab */
.ce-blk::before { content: attr(data-name); position: absolute; left: -2px; top: -19px; z-index: 2; padding: 2px 7px; border-radius: 4px 4px 0 0; background: var(--ce-accent-deep); color: #fff; font: 600 10.5px/1.3 system-ui, sans-serif; opacity: 0; transition: opacity .2s; }
.ce-blk::after { content: ""; position: absolute; inset: -5px -6px; border: 2px solid var(--ce-accent); border-radius: 3px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.ce-blk.is-sel::before, .ce-blk.is-sel::after { opacity: 1; }
/* Insertion line shown while dragging */
.ce-drop { position: absolute; left: 30px; right: 30px; height: 3px; border-radius: 3px; background: var(--ce-accent); box-shadow: 0 0 0 4px rgba(210, 120, 201, .25); opacity: 0; transform: scaleX(.4); transition: opacity .2s, transform .25s; pointer-events: none; }
.ce-drop.is-on { opacity: 1; transform: none; }

/* Document content */
.ce-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #eceef1; }
.ce-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; color: #222; }
.ce-brand i { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(from 200deg, #f2a33a, #e4572e, #f2a33a); }
.ce-brand small { display: block; font-weight: 500; font-size: 10.5px; color: #7a7f88; }
.ce-head address { font-style: normal; font-size: 10.5px; color: #7a7f88; text-align: right; }
.ce-title h1 { margin: 0; font: 800 var(--ce-doc-size)/1.1 system-ui, sans-serif; color: var(--ce-doc-accent); letter-spacing: -.01em; transition: color .5s, font-size .5s; min-height: 1.1em; }
.ce-title h1 .ce-caret { display: inline-block; width: 2px; height: .9em; margin-left: 2px; vertical-align: -.1em; background: var(--ce-accent-deep); animation: ce-caret 1s steps(1) infinite; }
@keyframes ce-caret { 50% { opacity: 0; } }
.ce-title p { margin: 6px 0 0; display: flex; gap: 8px; align-items: center; color: #555; }
.ce-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ce-cols h4 { margin: 0 0 4px; font: 700 9.5px/1.2 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #8a8f99; }
.ce-box { padding: 9px 11px; border-radius: 5px; background: #f6f7f9; }
.ce-box p { margin: 0; display: grid; gap: 3px; justify-items: start; }
/* Field pills (« Client »…) that show the real value when the data switch is on */
.ce-pill { display: inline-block; padding: 0 7px; border-radius: 10px; background: #f6e3f3; color: #8e3785; font-size: 11px; font-weight: 600; line-height: 18px; transition: background .3s, color .3s, padding .3s; }
.ce-pill.is-val { background: transparent; color: #313338; padding: 0; font-size: 12.5px; font-weight: 400; }
.ce-pill.is-val.is-strong { font-weight: 700; }
.ce-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.ce-table th { background: var(--ce-doc-accent); color: #fff; font-weight: 650; text-align: left; padding: 6px 8px; transition: background .5s; }
.ce-table td { padding: 6px 8px; border-bottom: 1px solid #eceef1; }
.ce-table .n { text-align: right; white-space: nowrap; }
.ce-table tbody tr { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.ce-blk.is-in .ce-table tbody tr { opacity: 1; transform: none; }
.ce-blk.is-in .ce-table tbody tr:nth-child(2) { transition-delay: .15s; }
.ce-blk.is-in .ce-table tbody tr:nth-child(3) { transition-delay: .3s; }
.ce-totals { width: 210px; margin-left: auto; font-size: 12px; }
.ce-totals p { display: flex; justify-content: space-between; margin: 0; padding: 4px 8px; }
.ce-totals p:last-child { margin-top: 4px; border-top: 2px solid var(--ce-doc-accent); font-weight: 800; font-size: 13.5px; transition: border-color .5s; }

/* ---------- Right panel: settings of the selected block ---------- */
.ce-insp { background: var(--ce-bg-dark); border-left: 1px solid var(--ce-border); overflow: hidden; }
.ce-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--ce-border); }
.ce-tabs span { padding: 12px 0 10px; text-align: center; font-size: 13px; color: var(--ce-muted); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.ce-tabs span.is-on { color: var(--ce-strong); border-color: var(--ce-accent); }
.ce-pane { display: none; padding: 14px 13px; animation: ce-pane .3s; }
.ce-pane.is-on { display: block; }
@keyframes ce-pane { from { opacity: 0; transform: translateX(8px); } }
.ce-none { padding: 40px 18px; text-align: center; color: var(--ce-muted); font-size: 13px; }
.ce-field { margin-bottom: 14px; }
.ce-field > span { display: block; margin-bottom: 6px; font-size: 12px; color: var(--ce-muted); }
.ce-input { min-height: 30px; padding: 5px 9px; border-radius: 6px; background: var(--ce-raised); border: 1px solid var(--ce-border); color: var(--ce-strong); font-size: 13px; }
.ce-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ce-seg i { font-style: normal; text-align: center; padding: 5px 0; border-radius: 6px; background: var(--ce-raised); font-size: 12.5px; }
.ce-seg i.is-on { background: var(--ce-accent-deep); color: #fff; }
.ce-swatches { display: flex; gap: 8px; }
.ce-swatches i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; outline: 1px solid rgba(255, 255, 255, .15); transition: border-color .2s, transform .2s; }
.ce-swatches i.is-on { border-color: #fff; transform: scale(1.1); }
.ce-range { position: relative; height: 22px; display: flex; align-items: center; gap: 10px; }
.ce-range b { position: relative; flex: 1; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ce-accent) var(--p, 30%), var(--ce-border) 0); transition: background .6s; }
.ce-range b::after { content: ""; position: absolute; top: 50%; left: var(--p, 30%); width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; transition: left .6s; }
.ce-range output { width: 38px; text-align: right; font-size: 12.5px; color: var(--ce-strong); font-variant-numeric: tabular-nums; }
.ce-list { display: grid; gap: 5px; }
.ce-list i { font-style: normal; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 9px; border-radius: 6px; background: var(--ce-raised); font-size: 12.5px; }
.ce-list i::before { content: "⠿"; color: var(--ce-muted); font-size: 12px; }
.ce-add { margin-top: 6px; padding: 6px 0; border: 1px dashed var(--ce-border); border-radius: 6px; text-align: center; font-size: 12px; color: var(--ce-muted); }
.ce-check { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; font-size: 13px; }
.ce-check::before { content: "✓"; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 4px; background: var(--ce-accent-deep); color: #fff; font-size: 11px; font-weight: 800; }

/* ---------- PDF preview: the editor steps back, the page comes forward clean ---------- */
.ce-blocks, .ce-insp, .ce-top > :not(.ce-pdf) { transition: opacity .6s; }
.ce.is-pdf .ce-blocks, .ce.is-pdf .ce-insp, .ce.is-pdf .ce-top > :not(.ce-pdf) { opacity: .25; }
.ce.is-pdf .ce-page { transform: translateY(-6px) scale(1.04); box-shadow: 0 30px 60px rgba(0, 0, 0, .55); }
.ce.is-pdf .ce-blk::before, .ce.is-pdf .ce-blk::after { opacity: 0; }
.ce-toast { position: absolute; left: 50%; bottom: 26px; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 10px; background: #1e1f22; border: 1px solid var(--ce-border); color: var(--ce-strong); font-size: 13.5px; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .6);
	opacity: 0; transform: translate(-50%, 10px); transition: opacity .35s, transform .35s; }
.ce-toast svg { width: 18px; height: 18px; color: var(--ce-ok); }
.ce-toast small { color: var(--ce-muted); font-size: 12px; }
.ce.is-pdf .ce-toast { opacity: 1; transform: translate(-50%, 0); transition-delay: .5s; }

/* Fake pointer */
.ce-cursor { position: absolute; left: 0; top: 0; z-index: 50; width: 22px; height: 22px; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); transition: opacity .3s; }
.ce-cursor svg { width: 100%; height: 100%; display: block; transition: transform .15s; }
.ce-cursor.is-down svg { transform: scale(.85); }
.ce-click { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ce-accent); opacity: 0; }
.ce-cursor.is-click .ce-click { animation: ce-click .45s ease-out; }
@keyframes ce-click { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.4); } }

/* Whole stage fades between two loops */
.ce-stage { transition: opacity .5s; }
.ce.is-fading .ce-stage { opacity: 0; }

/* ---------- Under the stage: the steps (text version of the film) and pause ---------- */
.ce-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; padding: 0; list-style: none; font-size: .84rem; color: var(--ink-2); }
.ce-steps li { display: inline-flex; align-items: center; gap: 7px; transition: color .3s; }
.ce-steps li b { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; border: 1.5px solid var(--line); font-size: .72rem; transition: background .3s, border-color .3s, color .3s; }
.ce-steps li.is-on { color: var(--ink); font-weight: 600; }
.ce-steps li.is-on b { background: var(--teal); border-color: var(--teal); color: #fff; }
.ce-steps li.is-done b { border-color: var(--teal); color: var(--teal-ink); }
.ce-play { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer; }
.ce-play:hover, .ce-play:focus-visible { border-color: var(--teal); color: var(--teal-ink); }
.ce-play svg { width: 18px; height: 18px; }
.ce-play .is-play, .ce-play[aria-pressed="true"] .is-pause { display: none; }
.ce-play[aria-pressed="true"] .is-play { display: block; }

@media (prefers-reduced-motion: reduce) {
	.ce *, .ce *::before, .ce *::after { transition-duration: .01s !important; transition-delay: 0s !important; animation: none !important; }
	.ce-cursor, .ce-play { display: none; }
}

/* The section is a dark full-width band: contrast with the light page, room for the film */
.fsec.is-film { position: relative; isolation: isolate; overflow: hidden; margin-inline: calc(50% - 50vw); padding: clamp(70px, 8vw, 120px) 16px clamp(60px, 7vw, 100px);
	background: radial-gradient(60% 50% at 50% 100%, rgba(142, 55, 133, .28), transparent 70%), radial-gradient(40% 40% at 85% 10%, rgba(210, 120, 201, .12), transparent 70%), linear-gradient(180deg, #141518, #1c1d21);
	color: #dbdee1; }
.ce-band-in { max-width: 1160px; margin: 0 auto; }
.fsec.is-film .fsec-head { max-width: 760px; margin: 0 auto clamp(30px, 4vw, 48px); text-align: center; }
.fsec.is-film .fsec-head h2 { color: #fff; text-wrap: balance; }
.fsec.is-film h2 b { color: #e9a5e1; }
.fsec.is-film .prose p { color: #b5bac1; margin-inline: auto; }
.fsec.is-film .ce-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px 28px; margin: clamp(30px, 4vw, 44px) 0 0; padding: 0; list-style: none; }
.fsec.is-film .ce-points li { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .92rem; color: #b5bac1; }
.fsec.is-film .ce-points b { display: block; margin-bottom: 4px; color: #fff; font-size: 1rem; }
.fsec.is-film .ce-fit { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 120px -20px rgba(210, 120, 201, .25); }
.fsec.is-film .ce-steps { color: #949ba4; }
.fsec.is-film .ce-steps li.is-on { color: #fff; }
.fsec.is-film .ce-steps li b { border-color: rgba(255, 255, 255, .2); }
.fsec.is-film .ce-steps li.is-on b { background: #8e3785; border-color: #8e3785; }
.fsec.is-film .ce-steps li.is-done b { border-color: #d278c9; color: #e9a5e1; }
.fsec.is-film .ce-play { background: transparent; border-color: rgba(255, 255, 255, .2); color: #fff; }
.fsec.is-film .ce-play:hover, .fsec.is-film .ce-play:focus-visible { border-color: #d278c9; color: #e9a5e1; }
.fsec.is-film .prose b { color: #fff; }
.fsec.is-film .ce, .fsec.is-film .ce-points { max-width: 1040px; margin-inline: auto; }
.fsec.is-film .fsec-head .prose { margin-inline: auto; }
.fsec.is-film .ce-points p { margin: 0; color: inherit; }
.ce-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
/* Under the film: the steps and pause, then the note (simplified animation, link to the screenshots) on its own line */
.ce-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 18px; margin-top: 14px; }
.ce-note { grid-row: 2; grid-column: 1 / -1; display: flex; align-items: flex-start; gap: 7px; margin: 0; font-size: .82rem; color: var(--ink-2); }
.ce-note .li-icon { margin-top: .15em; }
.fsec.is-film .ce-note { color: #949ba4; }
.fsec.is-film .ce-note .li-icon { color: #d278c9; }
.fsec.is-film .ce-note a { color: #e9a5e1; text-underline-offset: 3px; }
.fsec.is-film .ce-note a:hover, .fsec.is-film .ce-note a:focus-visible { color: #fff; }
@media (max-width: 760px) { .ce-steps li:not(.is-on) { font-size: 0; gap: 0; } .ce-steps li:not(.is-on) b { font-size: .72rem; } }

/* ---------- BotShield in the page header (modules.js heroVisual 'login', assets/js/bs-login.js): a login form typed
   while the anti-robot check of the module runs, then verified and accepted ---------- */
.mh-login { position: relative; overflow: hidden; flex: 1; display: grid; place-items: center; min-height: 360px; padding: clamp(24px, 3vw, 44px); border-radius: 24px;
	background: linear-gradient(135deg, var(--card), color-mix(in srgb, var(--th-safety, var(--teal)) 12%, var(--card))); border: 1px solid var(--line);
	box-shadow: 0 2px 4px rgba(24, 32, 43, .05), 0 30px 60px -28px rgba(24, 32, 43, .35); }
.bl-card { position: relative; z-index: 1; display: grid; gap: 12px; width: min(100%, 340px); padding: 26px 24px 22px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(24, 32, 43, .45); transition: box-shadow .4s, border-color .4s, opacity .4s; }
.bl-title { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-weight: 700; color: var(--ink); }
.bl-title-icon { width: 20px; height: 20px; color: var(--teal-ink); }
.bl-field { position: relative; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-size: .95rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.bl-field.is-focus { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent); }
.bl-icon { width: 18px; height: 18px; flex: none; color: var(--ink-2); }
.bl-val:empty { display: none; }
.bl-val.is-pass { letter-spacing: .12em; }
.bl-val:not(:empty) + .bl-ph { display: none; }
.bl-ph { color: var(--ink-2); opacity: .75; }
.bl-field.is-focus .bl-val::after, .bl-field.is-focus .bl-val:empty + .bl-ph::before { content: ""; display: inline-block; width: 1.5px; height: 1.05em; margin-left: 1px; vertical-align: -.15em; background: var(--ink); animation: bl-caret 1s steps(1) infinite; }
.bl-field.is-focus .bl-val:empty + .bl-ph::before { margin: 0 1px 0 0; }
@keyframes bl-caret { 50% { opacity: 0; } }
/* The anti-robot widget, as the module shows it: box, spinner while the browser computes, then the check */
.bl-widget { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-tint, var(--bg)); font-size: .92rem; color: var(--ink); transition: border-color .3s, background .3s; }
.bl-box { position: relative; display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 6px; border: 2px solid var(--line); background: var(--card); transition: background .3s, border-color .3s; }
.bl-spin { position: absolute; inset: -2px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--teal) 25%, transparent); border-top-color: var(--teal); opacity: 0; }
.bl-check { width: 16px; height: 16px; color: #fff; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.mh-login.is-verifying .bl-box { border-color: transparent; background: transparent; }
.mh-login.is-verifying .bl-spin { opacity: 1; animation: bl-spin .8s linear infinite; }
.mh-login.is-verified .bl-box { border-color: var(--teal); background: var(--teal); }
.mh-login.is-verified .bl-check { opacity: 1; transform: none; }
.mh-login.is-verified .bl-widget { border-color: color-mix(in srgb, var(--teal) 45%, var(--line)); }
@keyframes bl-spin { to { transform: rotate(360deg); } }
.bl-btn { display: grid; place-items: center; height: 44px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700; font-size: .95rem; transition: transform .12s, filter .2s; }
.mh-login.is-pressed .bl-btn { transform: scale(.97); filter: brightness(1.2); }
.bl-ok { display: flex; align-items: center; justify-content: center; gap: 8px; height: 0; margin: -12px 0 0; overflow: hidden; color: var(--teal-ink); font-weight: 700; font-size: .92rem; opacity: 0; transition: height .35s, margin .35s, opacity .3s .1s; }
.bl-ok-icon { width: 20px; height: 20px; }
.mh-login.is-in .bl-ok { height: 24px; margin-top: 0; opacity: 1; }
.mh-login.is-in .bl-card { border-color: color-mix(in srgb, var(--teal) 50%, var(--line)); box-shadow: 0 24px 50px -24px rgba(24, 32, 43, .45), 0 0 0 4px color-mix(in srgb, var(--teal) 14%, transparent); }
.bl-cursor { position: absolute; left: 0; top: 0; z-index: 2; width: 22px; height: 22px; pointer-events: none; opacity: 0; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); transition: transform .8s cubic-bezier(.45, 0, .2, 1), opacity .3s; }
.bl-cursor svg { display: block; width: 100%; height: 100%; }
.mh-login.is-fading .bl-card { opacity: 0; transition: opacity .4s; }
@media (prefers-reduced-motion: reduce) { .mh-login *, .mh-login *::before, .mh-login *::after { animation: none !important; transition-duration: .01s !important; } .bl-cursor { display: none; } }

/* Notice of the module header (page-overrides notice): a better alternative to know about, one line, never an alarm */
.mh-notice { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 20px; padding: 12px 16px; border-radius: 12px; font-size: .9rem; color: var(--ink); background: color-mix(in srgb, var(--teal) 7%, var(--card)); border: 1px dashed color-mix(in srgb, var(--teal) 45%, var(--line)); }
.mh-notice .li-icon { flex: none; margin-top: 2px; color: var(--teal); }
.mh-notice a { color: var(--teal); font-weight: 600; }

/* Pieces to install together (page-overrides parts): numbered cards, in the order of installation */
.parts { counter-reset: none; }
.parts .store-id { position: relative; }
.part-n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: .85rem; font-weight: 700; color: var(--card); background: var(--teal); }

/* QuickMemo in the page header (heroVisual memo, qm-board.js): sticky notes on a Dolibarr card, colours of the
   module palette; the notes keep their pastel colour in dark mode, like in Dolibarr */
.mh-memo { position: relative; flex: 1; display: grid; gap: 14px; justify-items: center; align-content: center; }
.mh-memo > .grid-bg { display: none; }
.qm-stage { position: relative; z-index: 1; width: min(100%, 520px); aspect-ratio: 520 / 380; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(24, 32, 43, .45); overflow: hidden; user-select: none; touch-action: none; }
.qm-top { display: flex; align-items: center; justify-content: space-between; height: 38px; padding: 0 12px; background: #263c5c; color: #fff; font-size: .82rem; }
.qm-brand { font-weight: 700; letter-spacing: .02em; opacity: .9; }
.qm-top-r { display: flex; gap: 8px; align-items: center; }
.qm-add, .qm-arch { display: inline-flex; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 7px; background: rgba(255, 255, 255, .12); transition: background .2s, transform .15s; }
.qm-add.is-hot { background: #fff8a6; color: #263c5c; transform: scale(1.08); }
.qm-arch b { font-size: .78rem; min-width: 1ch; }
.qm-arch.is-bump { animation: qm-bump .5s; }
@keyframes qm-bump { 40% { transform: scale(1.25); background: rgba(255, 255, 255, .35); } }
.qm-i { width: 15px; height: 15px; flex: none; }
.qm-card { padding: 14px 16px; font-size: .8rem; color: var(--ink-2); }
.qm-ref { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--ink); font-size: .95rem; }
.qm-badge { margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: .7rem; font-weight: 700; color: #fff; background: #b8860b; }
.qm-soc { margin: 4px 0 10px; }
.qm-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; width: 46%; }
.qm-lines li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; background: color-mix(in srgb, var(--line) 45%, transparent); }
.qm-memo { position: absolute; z-index: 1; width: 44%; min-height: 34%; display: flex; flex-direction: column; border-radius: 4px 4px 14px 4px; background: var(--memo); color: #2b2b2b; font-size: .78rem; line-height: 1.35;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 12px 24px -10px rgba(0, 0, 0, .35); transition: background .35s, transform .7s cubic-bezier(.45, 0, .2, 1), opacity .45s, box-shadow .2s; }
.qm-memo[data-memo="a"] { left: 52%; top: 15%; transform: rotate(1.6deg); }
.qm-memo[data-memo="b"] { left: 30%; top: 50%; transform: rotate(-1.2deg) scale(.4); opacity: 0; }
.qm-memo.is-on { opacity: 1; transform: rotate(-1.2deg) scale(1); }
.qm-memo.is-drag { box-shadow: 0 2px 4px rgba(0, 0, 0, .15), 0 22px 40px -12px rgba(0, 0, 0, .45); transition: background .35s, opacity .45s; cursor: grabbing; z-index: 3; }
.qm-memo.is-gone { opacity: 0; transition: transform .7s cubic-bezier(.6, 0, .9, .4), opacity .7s; }
.qm-bar { display: flex; gap: 2px; justify-content: flex-end; padding: 4px 6px 0; cursor: grab; }
.qm-act { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: rgba(0, 0, 0, .45); cursor: pointer; }
.qm-act:hover, .qm-act.is-hot { background: rgba(0, 0, 0, .1); color: rgba(0, 0, 0, .8); }
.qm-act[aria-pressed="true"] { color: #0f7f7b; }
.qm-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--memo); border: 1.5px solid rgba(0, 0, 0, .35); }
.qm-palette { position: absolute; top: 28px; right: 8px; z-index: 2; display: none; gap: 5px; padding: 6px; border-radius: 8px; background: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.qm-memo.is-palette .qm-palette { display: flex; }
.qm-swatch { width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); background: var(--c); cursor: pointer; }
.qm-swatch.is-hot { outline: 2px solid #263c5c; outline-offset: 1px; }
.qm-body { flex: 1; padding: 2px 10px 4px; }
.qm-body p { margin: 0 0 3px; }
.qm-raw { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .74rem; white-space: pre-wrap; min-height: 2.6em; }
.qm-raw::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 1px; vertical-align: -2px; background: currentColor; animation: qm-caret 1s steps(1) infinite; }
@keyframes qm-caret { 50% { opacity: 0; } }
.qm-checks { list-style: none; margin: 4px 0 0; padding: 0; }
.qm-checks li { display: flex; align-items: center; gap: 6px; transition: opacity .3s; }
.qm-box { flex: none; display: grid; place-items: center; width: 14px; height: 14px; padding: 0; border-radius: 3px; border: 1.5px solid rgba(0, 0, 0, .5); background: rgba(255, 255, 255, .6); cursor: pointer; }
.qm-box[aria-pressed="true"] { background: #0f7f7b; border-color: #0f7f7b; }
.qm-box[aria-pressed="true"]::after { content: ""; width: 4px; height: 8px; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.qm-box[aria-pressed="true"] + span { text-decoration: line-through; opacity: .55; }
.qm-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 4px 10px 7px; font-size: .68rem; color: rgba(0, 0, 0, .55); }
.qm-shared { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 99px; background: rgba(15, 127, 123, .15); color: #0f6b67; font-weight: 600; }
.qm-shared .qm-i { width: 12px; height: 12px; }
.qm-shared.is-pop { animation: qm-bump .5s; }
.qm-cursor { position: absolute; left: 0; top: 0; z-index: 4; width: 20px; height: 20px; pointer-events: none; opacity: 0; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); transition: transform .7s cubic-bezier(.45, 0, .2, 1), opacity .3s; }
.qm-cursor svg { display: block; width: 100%; height: 100%; }
.qm-cursor.is-press svg { transform: scale(.85); }
.qm-steps { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: qm; }
.qm-steps li { counter-increment: qm; padding: 3px 10px; border-radius: 99px; font-size: .78rem; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s; }
.qm-steps li::before { content: counter(qm) " "; font-weight: 700; }
.qm-steps li.is-on { background: var(--teal); border-color: var(--teal); color: #fff; }
.mh-memo.is-fading .qm-memo[data-memo="b"], .mh-memo.is-fading .qm-memo[data-memo="a"] { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .mh-memo *, .mh-memo *::before, .mh-memo *::after { animation: none !important; transition-duration: .01s !important; } .qm-cursor { display: none; } }
@media (max-width: 560px) { .qm-memo { font-size: .7rem; width: 48%; } .qm-lines { width: 52%; } }
.qm-memo[data-memo="b"]:not(.is-on) { pointer-events: none; }
.qm-body.is-private { filter: blur(3px); }
.qm-shared[hidden], .qm-raw[hidden], .qm-md[hidden] { display: none; }
/* QuickMemo header: icons and editor of the module (eye/eye-off, file/copy for the share mode, colour square, model,
   trash = archive; vertical formatting toolbar while writing) */
.qm-act { color: #1f5f7a; }
.qm-act .is-on, .qm-act[aria-pressed="true"] .is-off { display: none; }
.qm-act[aria-pressed="true"] .is-on { display: block; }
.qm-act[aria-pressed="true"] { color: #0f7f7b; }
.qm-dot { border-radius: 2px; }
.qm-tools { position: absolute; z-index: 2; left: -24px; top: 8px; display: none; flex-direction: column; gap: 2px; padding: 4px 3px; border-radius: 6px 0 0 6px; background: var(--memo); box-shadow: -4px 6px 12px -8px rgba(0, 0, 0, .35); pointer-events: none; }
.qm-memo.is-edit .qm-tools { display: flex; }
.qm-tool { display: grid; place-items: center; width: 18px; height: 16px; border-radius: 3px; font-size: .64rem; line-height: 1; color: #1f5f7a; font-family: Georgia, serif; }
.qm-tool sub { font-size: .5rem; }
.qm-tool.is-hot { background: rgba(0, 0, 0, .12); }
.qm-tbox { width: 9px; height: 9px; border-radius: 2px; background: #1f5f7a; }
.qm-raw { font-family: inherit; font-size: .76rem; }
.qm-raw::after { content: none; }
.qm-raw.is-empty::before { content: attr(data-placeholder); color: rgba(0, 0, 0, .4); }
.qm-caret { display: inline-block; width: 1px; height: 1em; margin: 0 1px; vertical-align: -2px; background: currentColor; animation: qm-caret 1s steps(1) infinite; }
.qm-memo:not(.is-edit) .qm-caret { display: none; }
.qm-note { display: flex; gap: 8px; align-items: flex-start; max-width: 520px; margin: 0; font-size: .82rem; color: var(--ink-2); }
.qm-note .li-icon { flex: none; margin-top: 2px; }
.qm-note a { color: var(--teal); }
/* QuickMemo header, look of the real notes (screenshot of a Dolibarr page): straight, square corners, light shadow,
   actions shown on the active note only, author and date at the bottom right, task counter tab */
.qm-memo { border-radius: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 6px 14px -6px rgba(0, 0, 0, .3); }
.qm-memo[data-memo="a"] { transform: none; }
.qm-memo[data-memo="b"] { transform: scale(.4); }
.qm-memo.is-on { transform: none; }
.qm-bar { opacity: 0; transition: opacity .2s; }
.qm-memo:hover .qm-bar, .qm-memo.is-active .qm-bar, .qm-memo.is-edit .qm-bar, .qm-memo.is-palette .qm-bar, .qm-memo:focus-within .qm-bar { opacity: 1; }
.qm-foot { justify-content: flex-end; flex-wrap: wrap; }
.qm-who { font-size: .64rem; color: rgba(0, 0, 0, .6); }
.qm-who b { font-weight: 700; color: rgba(0, 0, 0, .7); }
.qm-count { position: absolute; left: 4px; top: -11px; padding: 1px 6px; border-radius: 8px 8px 0 0; font-size: .6rem; font-weight: 700; color: #444; background: var(--memo); box-shadow: 0 -1px 2px rgba(0, 0, 0, .08); }
.qm-count[hidden] { display: none; }
.qm-note a.zoom { display: inline; width: auto; position: static; cursor: zoom-in; text-decoration: underline; }
/* QuickMemo header, as in the module CSS (memo.css): formatting toolbar centred vertically on the left edge, revealed
   by a rotation; task badge grey until every task is ticked, then green */
.qm-memo { min-height: 46%; }
.qm-tools { display: flex; top: 50%; left: 4px; gap: 2px; padding: 4px; border-radius: 6px; opacity: 0; transform-origin: right center;
	transform: translateX(-100%) translateY(-50%) rotateY(-90deg); transition: transform .4s cubic-bezier(.175, .885, .32, 1.275), opacity .2s ease; }
.qm-memo.is-edit .qm-tools { display: flex; opacity: 1; transform: translateX(-100%) translateY(-50%) rotateY(0deg); }
.qm-tool { width: 16px; height: 14px; }
.qm-count { left: 6px; top: -7px; padding: 3px 8px 2px; border-radius: 20px; font-size: 10px; line-height: 10px; color: #666; background: #ededed; box-shadow: 1px 1px 1px rgba(0, 0, 0, .2); }
.qm-count.is-done { background: #00ac2d; color: #fff; }
