/* ==========================================================================
   numa.ma — feuille de style unique
   Maquette V2 (1440 / 390). Charte : navy #010066, violet #7E46FF, gris #CECECE.
   Typo : Plus Jakarta Sans (titres 600), DM Sans (texte).
   Ordre : tokens → base → composants → sections → pages → responsive.
   ========================================================================== */

/* ---------- Polices (variables, latin, auto-hébergées) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2-variations"), url("../fonts/plus-jakarta-sans-latin-wght.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-wght.woff2") format("woff2-variations"), url("../fonts/dm-sans-latin-wght.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --navy: #010066;
  --violet: #7E46FF;
  --violet-dark: #5A2FCC;
  --lavender: #F1EBFF;
  --lavender-bar: #C9B6FF;
  --grey: #CECECE;
  --ink: #1C1C3A;
  --text: #4A4A5E;
  --muted: #7A7A90;
  --muted-2: #5B5B70;
  --muted-3: #9A9AB0;
  --muted-4: #B5B5C3;
  --line: #ECECF2;
  --line-2: #DADAE6;
  --line-3: #F0F0F4;
  --panel: #F7F7FA;
  --cream: #F8F6F1;
  --green: #1E7F48;
  --green-dark: #0F5F32;
  --green-bg: #DDF3E6;
  --green-bg-2: #B9E6C9;
  --red: #B42323;
  --red-bg: #FBE0E0;
  --blue: #2B5FB0;
  --blue-bg: #DCE8FA;
  --amber: #9A5B00;
  --amber-bg: #FFF3E2;
  --white: #fff;

  --font-head: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-screen: 0 40px 90px -30px rgba(1, 0, 102, .22), 0 2px 6px rgba(1, 0, 102, .05);
  --shadow-card: 0 24px 60px -40px rgba(1, 0, 102, .25);

  --section: 160px;
  --section-md: 120px;
  --block-gap: 120px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--violet); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, .page-title, .hero-title { font-family: var(--font-head); font-weight: 600; letter-spacing: -.02em; color: var(--navy); margin: 0; text-wrap: pretty; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd, figure, blockquote { margin: 0; }
table { border-collapse: collapse; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lavender-bar); color: var(--navy); }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 16px; color: #fff; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.top-anchor { position: absolute; top: 0; left: 0; width: 0; height: 0; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: calc(1120px + var(--gutter) * 2); }
.container-text { max-width: calc(760px + var(--gutter) * 2); }

/* ---------- Typo ---------- */
.eyebrow { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--violet); }
/* Surtitre porteur du H1 (référencement) : même rendu que le <p class="eyebrow"> d'origine. */
h1.eyebrow { font-family: inherit; line-height: inherit; text-wrap: balance; }
.eyebrow a { color: inherit; }
.eyebrow-sm { letter-spacing: .08em; }
.lead { font-size: 18px; line-height: 1.6; color: var(--text); }
h1, .page-title { font-size: 56px; line-height: 1.1; }
h2 { font-size: 44px; line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.3; letter-spacing: -.015em; }
.section-title { font-size: 32px; line-height: 1.25; margin-bottom: 48px; }
.green { color: var(--green); }
.red { color: var(--red); }
b, strong { font-weight: 600; }

/* ---------- Boutons & liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1.2;
  padding: 12px 20px; border-radius: var(--radius);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: var(--white); color: var(--navy); border: 1px solid var(--grey); }
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-lg { font-size: 16px; padding: 16px 28px; }
.btn-block { display: flex; width: 100%; padding: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-login { font-size: 15px; font-weight: 500; }
.icon { flex: none; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease); }
.site-header.is-scrolled { background: rgba(255, 255, 255, .82); border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(1, 0, 102, .22); }
body.admin-bar .site-header { top: 32px; }
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; transition: height .25s var(--ease); }
.is-scrolled .header-inner { height: 62px; }
section[id], article[id], .legal-content h2[id] { scroll-margin-top: 88px; }
.brand img { height: 24px; width: auto; }
.nav-primary .menu { display: flex; gap: 40px; font-size: 15px; font-weight: 500; }
.nav-primary a { display: inline-block; padding: 6px 0; }
.nav-primary .is-active > a { color: var(--violet); }

/* Méga-menu Modules */
.menu-item-mega { position: static; }
.mega-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; font: inherit; color: inherit; transition: color .2s var(--ease); }
.mega-toggle .icon { transition: transform .2s var(--ease); color: var(--muted-3); }
.mega-toggle:hover, .menu-item-mega.is-open .mega-toggle { color: var(--violet); }
.menu-item-mega.is-open .mega-toggle .icon { transform: rotate(180deg); color: var(--violet); }
.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 40px 60px -40px rgba(1, 0, 102, .35); padding: 40px 0 44px; }
.menu-item-mega.is-open .mega { display: block; animation: mega-in .22s var(--ease); }
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }
.mega-intro { grid-column: 1 / span 3; display: flex; flex-direction: column; gap: 14px; padding-right: 24px; border-right: 1px solid var(--line); }
.mega-intro .eyebrow { margin-bottom: 4px; }
.mega-title { font-family: var(--font-head); font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -.015em; color: var(--navy); }
.mega-text { font-size: 14px; line-height: 1.55; color: var(--text); font-weight: 400; }
.mega-intro .link-arrow { display: inline-flex; align-self: flex-start; margin-top: auto; padding: 12px 0 0; font-size: 14px; color: var(--violet); }
.mega-intro .link-arrow:hover { color: var(--navy); }
.mega-grid { grid-column: 4 / span 9; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; padding-left: 8px; }
.mega-grid a { display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); color: var(--navy); transition: background-color .2s var(--ease); }
.mega-grid a:hover { background: var(--panel); color: var(--navy); }
.mega-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--lavender); color: var(--violet); display: inline-flex; align-items: center; justify-content: center; }
.mega-body { min-width: 0; }
.mega-grid b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.mega-grid small { display: block; font-size: 13px; line-height: 1.45; color: var(--muted-2); margin-top: 2px; font-weight: 400; }
.header-actions { display: flex; align-items: center; gap: 28px; }
.lang { display: inline-flex; gap: 2px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.lang a { padding: 4px 6px; border-radius: 4px; color: var(--muted); }
.lang a.is-active { color: var(--navy); background: var(--line); }
.nav-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.nav-toggle-bar { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav-mobile { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); overflow-y: auto; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0 28px; box-shadow: 0 24px 40px -30px rgba(1, 0, 102, .25); }
.nav-mobile[data-open] { display: block; }
.menu-mobile { display: flex; flex-direction: column; font-size: 20px; font-weight: 500; font-family: var(--font-head); }
.menu-mobile a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-3); }
.menu-mobile .is-active > a { color: var(--violet); }
.nav-mobile-actions { display: flex; flex-direction: column; gap: 16px; align-items: center; padding-top: 24px; }
.mobile-group summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-3); }
.mobile-group summary::-webkit-details-marker { display: none; }
.mobile-group summary .icon { color: var(--muted-3); transition: transform .2s var(--ease); }
.mobile-group[open] summary .icon { transform: rotate(180deg); color: var(--violet); }
.mobile-modules { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; padding: 8px 0 12px; border-bottom: 1px solid var(--line-3); }
.menu-mobile .mobile-modules a { display: flex; align-items: center; gap: 10px; padding: 9px 0; border: 0; font-family: var(--font-body); font-size: 15px; font-weight: 500; }
.mobile-modules .mega-icon { width: 30px; height: 30px; border-radius: 8px; }

/* ---------- Hero ---------- */
.hero { padding-top: 96px; overflow: hidden; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .eyebrow { margin-bottom: 28px; }
.hero-title { font-size: 64px; line-height: 1.08; margin-bottom: 28px; max-width: 900px; }
.hero-text { font-size: 20px; line-height: 1.6; color: var(--text); max-width: 720px; margin-bottom: 40px; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
.hero-screen { height: 620px; overflow: hidden; margin-top: 100px; }
.hero-screen .screen { height: 820px; }
.br-lg { display: inline; }

/* ---------- Écrans produit (illustrations HTML) ---------- */
.screen {
  background: var(--white); border: 1px solid var(--grey); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-screen); overflow: hidden;
  display: grid; grid-template-columns: 208px minmax(0, 1fr);
  font-size: 13px; line-height: 1.4; color: var(--ink); text-align: left;
  user-select: none;
}
.screen-cash { font-size: 12.5px; }
/* Barre compacte (icônes seules) : demandée par l'écran (screen-compact + is-compact)
   ou imposée par le bloc latéral étroit des pages module. Libellés et logo complet
   restent dans le HTML : seul le CSS choisit ce qui s'affiche. */
.screen-compact, .product-block-b .screen { grid-template-columns: 64px minmax(0, 1fr); }
.scr-side { background: var(--navy); padding: 22px 12px; display: flex; flex-direction: column; gap: 2px; color: rgba(255, 255, 255, .7); }
.scr-logo { height: 18px; width: auto; margin: 4px 10px 26px; align-self: flex-start; }
.scr-mark { display: none; width: 28px; height: 28px; margin-bottom: 22px; }
.scr-nav { display: flex; flex-direction: column; gap: 2px; }
.scr-nav li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.scr-nav li.is-active { background: var(--violet); color: #fff; }
.scr-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: #fff; line-height: 1.3; }
.scr-side.is-compact, .product-block-b .scr-side { padding: 22px 0; align-items: center; gap: 4px; }
.scr-side.is-compact .scr-logo, .product-block-b .scr-logo { display: none; }
.scr-side.is-compact .scr-mark, .product-block-b .scr-mark { display: block; }
.scr-side.is-compact .scr-nav, .product-block-b .scr-nav { gap: 4px; align-items: center; }
.scr-side.is-compact .scr-nav li, .product-block-b .scr-nav li { width: 36px; height: 36px; padding: 0; justify-content: center; }
.scr-side.is-compact .scr-nav li span, .product-block-b .scr-nav li span,
.scr-side.is-compact .scr-user-name, .product-block-b .scr-user-name { display: none; }
.scr-side.is-compact .scr-user, .product-block-b .scr-user { padding: 0; }
/* Dans le bloc latéral, l'en-tête ne garde que ses actions principales : les
   boutons secondaires débordaient et se faisaient couper. */
.product-block-b .scr-actions .scr-btn:not(.is-primary):not(.is-green) { display: none; }
.scr-user b { display: block; font-weight: 600; }
.scr-user small { display: block; font-size: 11px; color: rgba(255, 255, 255, .6); }
.scr-avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--violet); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 11px; }
.scr-mbar { display: none; background: var(--navy); padding: 14px 16px; align-items: center; justify-content: space-between; }
.scr-mbar img { height: 16px; width: auto; }
.scr-mbar .scr-avatar { width: 26px; height: 26px; font-size: 10px; }
.scr-main { display: flex; flex-direction: column; min-width: 0; }
.scr-top { height: 56px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 28px; }
.screen-cash .scr-top { padding: 0 24px; }
.scr-title { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--navy); }
.scr-crumb { color: var(--muted); white-space: nowrap; }
.scr-crumb i { font-style: normal; margin: 0 8px; }
.scr-crumb b { color: var(--navy); font-weight: 600; }
.scr-top-right { display: flex; align-items: center; gap: 12px; color: var(--muted-2); }
.scr-muted { color: var(--muted); }
.scr-seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; font-size: 12px; }
.scr-seg > * { padding: 5px 12px; font-style: normal; font-weight: 500; color: var(--muted-2); }
.scr-seg > b { background: var(--navy); color: #fff; }
.scr-actions { display: flex; gap: 8px; font-size: 12px; font-weight: 500; white-space: nowrap; flex: none; align-items: center; min-width: 0; }
.scr-btn { padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--navy); }
.scr-btn.is-green { color: var(--green); }
.scr-btn.is-primary { background: var(--violet); color: #fff; border-color: var(--violet); }
.scr-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; background: var(--panel); flex: 1; min-width: 0; }
.screen-cash .scr-body { padding: 20px 24px; gap: 16px; }
.screen-invoice .scr-body, .screen-hr .scr-body { gap: 16px; }
.scr-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.scr-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.scr-card-head b { font-weight: 600; color: var(--navy); }
.scr-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.scr-kpis-3 { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.scr-kpis small { display: block; color: var(--muted); margin-bottom: 8px; font-size: inherit; }
.scr-kpis b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 22px; letter-spacing: -.01em; color: var(--navy); line-height: 1.2; }
.scr-kpis b span { font-size: 12px; color: var(--muted); letter-spacing: 0; font-family: var(--font-body); }
.scr-kpis b.green { color: var(--green); }
.scr-kpis b.red { color: var(--red); }
.scr-kpis em { display: block; font-style: normal; color: var(--muted-2); margin-top: 6px; font-size: 12px; }
.scr-kpis .up { color: var(--green); font-weight: 500; }
.screen-cash .scr-kpis .scr-card { padding: 14px 16px; }
.screen-cash .scr-kpis b { font-size: 20px; }
.scr-kpis-inline .scr-card { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; }
.scr-kpis-inline span { color: var(--muted-2); }
.scr-kpis-inline b { font-size: 16px; }
.scr-row-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.scr-chart { padding: 20px 22px; }
.scr-chart .scr-card-head { margin-bottom: 20px; }
.scr-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-2); }
.scr-legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--navy); margin-left: 10px; }
.scr-legend i:first-child { margin-left: 0; }
.scr-legend .l-lav { background: var(--lavender-bar); }
.scr-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; align-items: end; height: 200px; border-bottom: 1px solid var(--line); padding: 0 8px; }
.scr-bars > span { display: flex; gap: 6px; align-items: end; justify-content: center; height: 100%; }
.scr-bars i { width: 26px; background: var(--navy); border-radius: 4px 4px 0 0; }
.scr-bars i.lav { background: var(--lavender-bar); }
.scr-axis { display: grid; grid-template-columns: repeat(6, 1fr); text-align: center; color: var(--muted); font-size: 12px; margin-top: 10px; }
.scr-due { padding: 20px 22px; }
.scr-due-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-3); }
.scr-due-row > span { min-width: 0; line-height: 1.35; }
.scr-due-row b { display: block; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-due-row .r { text-align: right; flex: none; }
.scr-due-row .r b { font-weight: 600; color: var(--navy); }
.scr-due-row small { font-size: 12px; color: var(--muted); }
.badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; line-height: 1.5; }
.badge-due { background: var(--lavender); color: var(--violet-dark); }
.badge-ok { background: var(--green-bg); color: var(--green); }
.badge-late { background: var(--red-bg); color: var(--red); }
.badge-wait { background: var(--amber-bg); color: var(--amber); }
.badge-neutral { background: #F3F3F7; color: var(--muted-2); }
.scr-goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 20px 22px; }
.scr-goals span { display: flex; justify-content: space-between; color: var(--muted-2); margin-bottom: 8px; }
.scr-goals span b { color: var(--navy); }
.scr-goals > div > i { display: block; height: 6px; background: #EFEFF4; border-radius: 3px; overflow: hidden; }
.scr-goals > div > i > i { display: block; height: 100%; background: var(--violet); }
.scr-goals > div > i > i.navy { background: var(--navy); }

/* Facture */
.scr-steps { display: flex; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; font-size: 12px; color: var(--muted); }
.scr-steps span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.scr-steps span i { width: 8px; height: 8px; border-radius: 50%; background: var(--grey); }
.scr-steps .done i { background: var(--green); }
.scr-steps .now { color: var(--navy); font-weight: 600; background: var(--lavender); padding: 3px 10px; border-radius: 12px; }
.scr-steps .now i { background: var(--violet); }
.scr-steps em { flex: 1; height: 1px; background: var(--line-2); margin: 0 12px; }
.scr-doc { padding: 28px 32px; display: flex; flex-direction: column; gap: 20px; border-radius: 8px; }
.scr-doc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.scr-doc-from { line-height: 1.55; color: var(--text); }
.scr-doc-from img { height: 16px; width: auto; margin-bottom: 10px; }
.scr-doc-from b { display: block; color: var(--navy); font-weight: 600; }
.scr-doc-meta { display: grid; grid-template-columns: auto auto; gap: 4px 20px; text-align: right; line-height: 1.5; }
.scr-doc-meta dt { color: var(--muted); text-align: left; }
.scr-doc-meta dd { margin: 0; }
.scr-doc-meta dd b { color: var(--navy); font-weight: 600; }
.scr-doc-title { grid-column: 1 / span 2; font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--navy) !important; margin-bottom: 6px; text-align: right !important; }
.scr-table { width: 100%; }
.scr-table th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; padding: 0 8px 8px 0; border-bottom: 1px solid var(--line-2); text-align: left; font-weight: 400; }
.scr-table td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line-3); white-space: nowrap; }
.scr-table td:nth-child(2) { white-space: normal; width: 100%; }
.scr-table .r { text-align: right; padding-right: 0; padding-left: 16px; }
.scr-table .muted { color: var(--muted); }
.scr-table .strong { font-weight: 600; color: var(--navy); }
.scr-doc-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.scr-doc-foot p { font-size: 12px; line-height: 1.6; max-width: 420px; }
.scr-totals { width: 300px; display: grid; grid-template-columns: 1fr auto; line-height: 2; }
.scr-totals dt { color: var(--muted); }
.scr-totals dd { text-align: right; }
.scr-totals .ttc { font-weight: 600; color: var(--navy); font-size: 15px; border-top: 1px solid var(--navy); margin-top: 6px; padding-top: 6px; }
.scr-totals .green { color: var(--green); }
.scr-totals .red { color: var(--red); font-weight: 600; }

/* Trésorerie */
.scr-tx { padding: 0; overflow: hidden; }
.scr-tabs { display: flex; gap: 20px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.scr-tabs span { padding: 11px 0; }
.scr-tabs .is-active { color: var(--navy); border-bottom: 2px solid var(--violet); margin-bottom: -1px; }
.scr-range { margin-left: auto; color: var(--muted-3); font-weight: 400; }
.scr-tx-head, .scr-tx-row { display: grid; grid-template-columns: 48px 1fr 104px 96px 100px 82px; gap: 10px; padding: 8px 16px; align-items: center; white-space: nowrap; }
.scr-tx-head { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
.scr-tx-row { border-bottom: 1px solid #F3F3F7; }
.scr-tx-row:last-child { border-bottom: 0; }
.scr-tx-row .muted { color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; }
.scr-tx-row .who { overflow: hidden; line-height: 1.35; }
.scr-tx-row .who b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.scr-tx-row .who small { display: block; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.scr-tx-row .r, .scr-tx-head .r { text-align: right; }
.amt { font-weight: 600; }
.amt-in { color: var(--green); }
.amt-out { color: var(--red); }
.amt-neutral { color: var(--muted-2); }

/* RH */
.scr-hr-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.scr-hr-head b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--navy); }
.scr-hr-head small { display: block; color: var(--muted-2); margin-top: 2px; font-size: inherit; }
.scr-legend-hr i { width: 12px; height: 12px; border-radius: 3px; margin-left: 14px; }
.scr-legend-hr i:first-child { margin-left: 0; }
.c-p { background: var(--green-bg); color: var(--green); }
.c-ph { background: var(--green-bg-2); color: var(--green-dark); }
.c-a { background: var(--red-bg); color: var(--red); }
.c-c { background: var(--blue-bg); color: var(--blue); }
.c-w { background: #ECECEF; color: var(--muted-4); }
.c-p-t { color: var(--green); } .c-ph-t { color: var(--green-dark); } .c-a-t { color: var(--red); } .c-c-t { color: var(--blue); }
.scr-grid-wrap { padding: 16px 20px; overflow-x: auto; min-width: 0; max-width: 100%; }
.scr-grid { display: grid; grid-template-columns: 190px repeat(14, minmax(28px, 1fr)) 48px 48px 48px 48px; gap: 5px; align-items: center; min-width: 760px; }
.scr-grid .h { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; text-align: center; }
.scr-grid .h:first-child { text-align: left; }
.scr-grid .h.we { color: var(--muted-4); }
.scr-grid .h.t { font-weight: 600; text-transform: none; letter-spacing: 0; }
.scr-grid .n { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr-grid .c { height: 32px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.scr-grid .c- { background: #F3F3F7; color: var(--muted-3); }
.scr-grid .t { text-align: center; font-weight: 600; font-size: 12px; }

/* ---------- Sections communes ---------- */
.statement { padding-top: var(--section); }
.statement-text { font-family: var(--font-head); font-weight: 600; font-size: 44px; line-height: 1.25; letter-spacing: -.02em; max-width: 800px; text-wrap: pretty; }
.block-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: end; }
.block-head h2 { grid-column: 1 / span 6; }
.block-head p { grid-column: 8 / span 5; font-size: 18px; line-height: 1.6; color: var(--text); }
.block-head-split h2 { grid-column: 1 / span 7; }
.block-head-side { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.block-head-side p { grid-column: auto; }

/* Produit */
.product { padding-top: var(--section); }
.product-inner { display: flex; flex-direction: column; gap: var(--block-gap); }
.product-block { display: flex; flex-direction: column; gap: 48px; }
.product-block-a .block-head h2 { grid-column: 1 / span 6; }
.product-block-b { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: center; }
.product-block-b .block-head-aside { display: block; grid-column: 1 / span 4; padding-right: 24px; }
.product-block-b .block-head-aside h2 { margin-bottom: 20px; }
.product-block-b .block-head-aside p { font-size: 18px; color: var(--text); }
.product-block-b .block-screen { grid-column: 5 / span 8; }

/* Terrain */
.terrain { margin-top: var(--section); background: var(--navy); color: #fff; }
.terrain-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); min-height: 640px; }
.terrain-text { grid-column: 1 / span 5; display: flex; flex-direction: column; justify-content: center; padding: 80px 0; }
.terrain-text h2 { color: #fff; margin-bottom: 24px; }
.terrain-text p { font-size: 18px; color: rgba(255, 255, 255, .8); }
.terrain-media { grid-column: 7 / span 6; position: relative; margin-right: calc(-1 * var(--gutter)); min-height: 640px; display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.terrain-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }
.terrain-shade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(1, 0, 102, .35) 22%, rgba(1, 0, 102, 0) 55%), linear-gradient(180deg, rgba(1, 0, 102, .1), rgba(1, 0, 102, .5)); }
.terrain-fallback { position: absolute; inset: 0; background: radial-gradient(120% 80% at 80% 20%, rgba(126, 70, 255, .55), transparent 60%), radial-gradient(60% 50% at 20% 90%, rgba(126, 70, 255, .25), transparent 70%), linear-gradient(160deg, #0A0A8A, #010066 55%, #01004a); }
.phone { position: relative; width: 312px; background: #0C0C2E; border-radius: 42px; padding: 10px; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .05); }
.phone-screen { background: var(--panel); border-radius: 32px; overflow: hidden; color: var(--ink); font-size: 13px; line-height: 1.35; }
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px 0; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.phone-status-right { display: inline-flex; gap: 3px; align-items: flex-end; height: 10px; }
.phone-status-right i { width: 3px; background: #fff; border-radius: 1px; height: 5px; }
.phone-status-right i:nth-child(2) { height: 7px; }
.phone-status-right i:nth-child(3) { height: 10px; }
.phone-top { display: flex; justify-content: space-between; align-items: center; background: var(--navy); padding: 14px 18px 16px; }
.phone-top img { height: 16px; width: auto; }
.phone-off { display: inline-flex; align-items: center; gap: 5px; background: var(--amber-bg); color: var(--amber); padding: 4px 9px; border-radius: 12px; font-weight: 600; font-size: 12px; }
.phone-body { padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.phone-head small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.phone-head b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: var(--navy); }
.phone-list { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 2px 12px; }
.phone-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-3); }
.phone-list li:last-child { border-bottom: 0; }
.phone-item { min-width: 0; }
.phone-item b { display: block; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-item small { display: block; font-size: 11px; color: var(--muted); }
.phone-qty { flex: none; min-width: 46px; text-align: center; padding: 6px 8px; border-radius: 8px; background: var(--green-bg); color: var(--green-dark); font-weight: 600; font-variant-numeric: tabular-nums; }
.phone-qty.is-diff { background: var(--amber-bg); color: var(--amber); }
.phone-sync { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 12px; padding: 0 2px; }
.phone-sync i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(154, 91, 0, .15); }
.phone-cta { background: var(--violet); color: #fff; text-align: center; font-weight: 600; padding: 14px; border-radius: 12px; }

/* Tarifs / packs */
.pricing { padding-top: var(--section); }
.pricing .block-head { margin-bottom: 64px; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); }
.pack { display: flex; flex-direction: column; padding: 0 40px; border-left: 1px solid var(--grey); }
.pack:first-child { padding-left: 0; border-left: 0; }
.pack:last-child { padding-right: 0; }
.pack-flag { height: 65px; border-top: 2px solid transparent; }
.pack-flag span { display: block; padding: 16px 0 0; font-size: 13px; font-weight: 600; color: var(--violet); }
.pack.is-hl .pack-flag { border-top-color: var(--violet); }
.pack-name { font-size: 22px; }
.pack-price { margin: 20px 0 0; }
.pack-amount { display: block; font-family: var(--font-head); font-weight: 600; font-size: 56px; line-height: 1; letter-spacing: -.02em; color: var(--navy); margin-bottom: 8px; transition: opacity .2s; }
.pack-amount.is-switching { opacity: .3; }
.pack-unit { font-size: 14px; color: var(--muted); }
.pack-users { font-size: 16px; font-weight: 500; margin: 32px 0 12px; padding-top: 24px; border-top: 1px solid var(--grey); }
.pack-desc { font-size: 16px; color: var(--text); flex: 1; }
.pack-features-lead { margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--navy); }
.pack-features { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; align-content: start; gap: 12px; font-size: 15px; line-height: 1.45; color: var(--text); }
.pack-features li { display: flex; align-items: flex-start; gap: 10px; }
.pack-features .icon { flex: 0 0 auto; margin-top: 3px; color: var(--violet); }
.has-detail .pack-users { margin-bottom: 20px; }
.pack .btn { margin-top: 40px; }
.pricing-note { margin-top: 40px; font-size: 15px; color: var(--muted); }
.pricing-page { padding-top: 96px; }
.seg { display: inline-flex; border: 1px solid var(--grey); border-radius: var(--radius); overflow: hidden; font-size: 14px; font-weight: 500; }
.seg button { padding: 10px 18px; color: var(--muted-2); transition: background-color .2s, color .2s; }
.seg button.is-active { background: var(--navy); color: #fff; }
.seg button:focus-visible { outline-offset: -3px; }

/* Comparatif */
.compare { padding-top: var(--section); }
.compare .block-head { margin-bottom: 56px; }
.compare-scroll { overflow-x: auto; position: relative; }
.compare-table { width: 100%; font-size: 16px; color: var(--ink); min-width: 720px; }
.compare-table thead th { padding: 0 0 16px; border-bottom: 1px solid var(--navy); text-align: center; font-family: var(--font-head); font-weight: 600; color: var(--navy); width: 200px; }
.compare-table thead th:first-child { width: auto; text-align: left; }
.compare-table tbody th { text-align: left; font-weight: 400; padding: 16px 0; border-bottom: 1px solid var(--line); }
.compare-table tbody td { text-align: center; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--navy); }
.compare-table tbody td .icon { margin: 0 auto; }
.compare-table td.no { color: var(--muted-4); }
.compare-table tr.group th { padding: 40px 0 12px; font-weight: 600; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* FAQ */
.faq { padding-top: var(--section); }
.faq-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }
.faq-aside { grid-column: 1 / span 4; }
.faq-aside p { margin-top: 20px; font-size: 16px; color: var(--text); max-width: 32ch; }
.faq-aside a { font-weight: 600; color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.faq-list { grid-column: 6 / span 7; border-bottom: 1px solid var(--grey); }
.faq-item { border-top: 1px solid var(--grey); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 24px 0; font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.4; color: var(--navy); transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: 0 0 auto; width: 11px; height: 11px; margin: 5px 6px 0 0; border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: rotate(45deg); transition: transform .25s, margin-top .25s; }
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 11px; }
.faq-item summary:hover { color: var(--violet); }
.faq-item summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 4px; }
.faq-answer { padding: 0 48px 26px 0; font-size: 16px; line-height: 1.65; color: var(--text); }
.faq-answer p + p { margin-top: 10px; }

/* Bande d'appel (crème) */
.cta-band { margin-top: var(--section); background: var(--cream); padding: 120px 0; }
.cta-band-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: center; }
.cta-band-inner > :first-child { grid-column: 1 / span 6; }
.cta-band-inner > :last-child { grid-column: 8 / span 5; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band-inner > h2:first-child { grid-column: 1 / span 7; margin: 0; }
.cta-band-action { grid-column: 9 / span 4 !important; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.newsletter h2, .cta-band-form h2 { font-size: 36px; line-height: 1.2; }
.newsletter .lead, .cta-band-form .lead { font-size: 17px; }

/* Preuve + démo (accueil) */
.proof { margin-top: var(--section); background: var(--cream); padding: 120px 0; }
.proof-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: center; }
.proof-quote { grid-column: 1 / span 6; }
.proof-quote blockquote p { font-family: var(--font-head); font-weight: 600; font-size: 32px; line-height: 1.35; letter-spacing: -.015em; margin-bottom: 32px; text-wrap: pretty; }
.proof-quote footer { font-size: 16px; color: var(--text); }
.proof-quote footer b { color: var(--navy); }
.proof-form { grid-column: 8 / span 5; }
.proof-form, .card-form { background: var(--white); border: 1px solid var(--grey); border-radius: var(--radius-lg); padding: 40px; }
.card-title { font-size: 24px; line-height: 1.25; letter-spacing: -.015em; margin-bottom: 28px; }

/* ---------- Formulaires ---------- */
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: block; }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; border: 1px solid var(--grey); border-radius: var(--radius);
  padding: 0 16px; font-size: 16px; color: var(--navy); background: var(--white); outline: none;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.field textarea { height: auto; padding: 14px 16px; resize: vertical; line-height: 1.5; min-height: 120px; }
.field select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23010066' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(126, 70, 255, .15); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); }
.form-grid { display: grid; gap: 12px; }
.form-grid.is-2 { grid-template-columns: 1fr 1fr; }
.form .btn-block { margin-top: 8px; padding: 0; height: 52px; font-size: 16px; }
.form-hint { font-size: 14px; color: var(--muted); text-align: center; }
.form-notice { font-size: 15px; padding: 12px 16px; border-radius: var(--radius); background: var(--lavender); color: var(--navy); font-weight: 500; }
.form-notice.is-ok { background: var(--green-bg); color: var(--green); }
.form-notice.is-error { background: var(--red-bg); color: var(--red); }
.form-notice[hidden] { display: none; }
.form-inline { gap: 8px; }
.form-inline-row { display: flex; gap: 12px; }
.form-inline-row .field { flex: 1; }
.form-inline-row .btn { height: 52px; padding: 0 24px; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 8px; font-size: 14px; font-weight: 500; }
.chip { display: inline-block; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span, a.chip { display: inline-block; padding: 8px 14px; border-radius: 20px; border: 1px solid var(--grey); color: var(--navy); background: var(--white); transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover span, a.chip:hover { border-color: var(--navy); }
.chip input:checked + span, a.chip.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.chips-nav { padding-bottom: 24px; border-bottom: 1px solid var(--grey); margin-bottom: 96px; }
a.chip { padding: 0; }
a.chip span { border: 0; padding: 8px 14px; background: transparent; color: inherit; }
.contact-form .form-grid.is-2 { grid-template-columns: 1fr 1fr; }
[data-demo-only][hidden] { display: none; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 48px; }
.footer-brand { grid-column: 1 / span 5; }
.footer-brand img { height: 24px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 15px; color: rgba(255, 255, 255, .7); }
.footer-tagline { font-size: 14.5px; line-height: 1.6; max-width: 34ch; margin-bottom: 20px; }
.footer-contact { display: flex; flex-direction: column; gap: 2px; margin-bottom: 22px; font-size: 15px; line-height: 1.7; }
.footer-contact a { color: rgba(255, 255, 255, .88); font-weight: 500; }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .85); transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.footer-social a:hover { background: var(--violet); border-color: var(--violet); color: #fff; }
.footer-top { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .7); font-size: 14px; }
.footer-top-icon { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); }
.footer-top:hover { color: #fff; }
.footer-top:hover .footer-top-icon { background: var(--violet); border-color: var(--violet); transform: translateY(-2px); }
.footer-brand a:hover { color: #fff; }
.footer-col { font-size: 15px; line-height: 2.2; }
.footer-col-1 { grid-column: 7 / span 2; }
.footer-col-2 { grid-column: 9 / span 2; }
.footer-col-3 { grid-column: 11 / span 2; }
.footer-title { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: #fff; letter-spacing: 0; margin-bottom: 4px; }
.footer-menu a { color: rgba(255, 255, 255, .7); }
.footer-menu a:hover { color: #fff; }
.footer-bottom { grid-column: 1 / span 12; display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 20px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.footer-bottom a { color: rgba(255, 255, 255, .8); }
.footer-bottom a:hover { color: #fff; }
.footer-consent { color: rgba(255, 255, 255, .8); font-size: inherit; }
.footer-consent:hover { color: #fff; }

/* Le pied de page suit directement une bande crème ou une section : espace géré ici. */
.site-main > :last-child:not(.proof):not(.cta-band):not(.contact):not(.terrain) { margin-bottom: var(--section); }

/* ---------- Pages internes ---------- */
.page-head { padding-top: 96px; }
.page-head-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: end; row-gap: 32px; }
.page-head-inner > :first-child { grid-column: 1 / span 7; }
.page-head .eyebrow { margin-bottom: 24px; }
.page-head-aside { grid-column: 8 / span 5; display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.page-head-aside .lead { margin: 0; }
.votes-left { font-size: 14px; color: var(--muted); }
.votes-left b { color: var(--navy); }
.error-page { padding-bottom: 0; }
.error-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: center; }
.error-text { grid-column: 1 / span 6; }
.error-page h1 { margin: 0 0 24px; }
.error-page .lead { margin-bottom: 40px; }
.error-page .hero-actions { justify-content: flex-start; margin-bottom: 40px; }
.error-text .search-form { max-width: 440px; }
.error-visual { grid-column: 8 / span 5; display: flex; justify-content: center; padding: 56px 24px; border-radius: 24px; background: radial-gradient(90% 70% at 72% 18%, rgba(126, 70, 255, .3), transparent 62%), var(--lavender); }
.phone-error { transform: rotate(-3deg); box-shadow: 0 50px 90px -40px rgba(1, 0, 102, .55), 0 0 0 1px rgba(255, 255, 255, .1); }
.phone-alert { background: var(--red-bg); color: var(--red); }
.phone-qty.is-out { background: var(--red-bg); color: var(--red); animation: qty-pulse 1.8s ease-in-out infinite; }
@keyframes qty-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(180, 35, 35, .3); } 50% { box-shadow: 0 0 0 7px rgba(180, 35, 35, 0); } }
.phone-sync i.is-out { background: var(--red); box-shadow: 0 0 0 3px rgba(180, 35, 35, .15); }
a.phone-cta { display: block; transition: background-color .2s var(--ease); }
a.phone-cta:hover { background: var(--navy); color: #fff; }

/* Roadmap */
.roadmap { padding-top: 96px; }
.roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gutter); row-gap: 48px; align-items: start; }
.roadmap-col { display: flex; flex-direction: column; gap: 16px; }
.roadmap-col-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 2px solid var(--grey); font-size: 18px; letter-spacing: -.01em; }
.roadmap-col-head small { font-size: 14px; font-weight: 400; color: var(--muted); font-family: var(--font-body); }
.roadmap-col-idees .roadmap-col-head { border-color: var(--line-2); }
.roadmap-col-en-cours .roadmap-col-head { border-color: var(--violet); }
.roadmap-col-livre .roadmap-col-head { border-color: var(--green); }
.rm-card { background: var(--white); border: 1px solid var(--grey); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; transition: border-color .2s; }
.rm-card.is-voted { border-color: var(--violet); }
.tag { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); background: var(--lavender); padding: 4px 10px; border-radius: 12px; }
.rm-card h3 { font-size: 18px; line-height: 1.35; letter-spacing: -.01em; }
.rm-card p { font-size: 15px; line-height: 1.55; color: var(--text); }
.rm-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.vote { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--radius); font-weight: 600; font-size: 14px; border: 1px solid var(--grey); background: var(--white); color: var(--navy); transition: border-color .2s, background-color .2s, color .2s, transform .15s; }
.vote:hover { border-color: var(--violet); }
.vote[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.vote.is-bump { transform: scale(1.06); }
.rm-eta { font-size: 13px; color: var(--muted); }
/* Listes repliables : sans JS (html.no-js) tout reste affiché et le bouton est masqué. */
html:not(.no-js) [data-more-box]:not(.is-open) > .is-extra { display: none; }
.no-js .more-toggle { display: none; }
[data-more-box].is-open > .is-extra { animation: more-in .3s var(--ease); }
@keyframes more-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.more-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 18px; border: 1px dashed var(--line-2); border-radius: var(--radius-lg); background: transparent; color: var(--navy); font: 600 15px/1 var(--font-body); cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.more-toggle:hover { border-color: var(--violet); background: var(--lavender); }
.more-toggle:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.more-toggle .icon { transition: transform .2s var(--ease); }
.more-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.releases-list .more-toggle { margin: 24px 0 32px; }
@media (prefers-reduced-motion: reduce) { [data-more-box].is-open > .is-extra { animation: none; } }
.releases { padding-top: var(--section); }
.releases-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 48px; }
.releases-intro { grid-column: 1 / span 4; }
.releases-intro h2 { margin-bottom: 20px; }
.releases-intro p { font-size: 18px; color: var(--text); }
.releases-list { grid-column: 6 / span 7; border-bottom: 1px solid var(--grey); }
.release { padding: 32px 0; border-top: 1px solid var(--grey); display: grid; grid-template-columns: 160px 1fr; column-gap: var(--gutter); }
.release h3 { font-size: 20px; }
.release time { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.release-notes { font-size: 16px; line-height: 1.55; color: var(--ink); }
.release-notes ul { display: flex; flex-direction: column; gap: 10px; }
.release-notes li { position: relative; padding-left: 18px; }
.release-notes li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
.release-notes strong { color: var(--navy); }
.release-notes p { margin-bottom: 10px; }

/* Contact */
.contact { padding: 96px 0 var(--section); }
.contact-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 56px; align-items: start; }
.contact-info { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 56px; }
.contact-info .page-title { margin: 0 0 24px; }
.contact-info .eyebrow { margin-bottom: 24px; }
.contact-list > div { padding: 24px 0; border-top: 1px solid var(--grey); display: grid; grid-template-columns: 140px 1fr; font-size: 16px; line-height: 1.5; }
.contact-list > div:last-child { border-bottom: 1px solid var(--grey); }
.contact-list dt { color: var(--muted); }
.contact-list dd { color: var(--ink); }
.contact-list a { font-weight: 500; color: var(--navy); }
.contact-list a:hover, .contact-list a.green { color: var(--green); }
.contact-list a.green:hover { color: var(--green-dark); }
.contact-form { grid-column: 7 / span 6; box-shadow: var(--shadow-card); }
.contact-form .card-title { margin-bottom: 8px; }

/* Blog */
.blog-list { padding-top: 80px; }
.post-card { display: flex; flex-direction: column; gap: 16px; color: var(--navy); }
.post-card-media { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: var(--lavender); }
.post-card-media img, .img-fallback { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.03); }
.img-fallback { display: flex; align-items: flex-end; padding: 20px; background: radial-gradient(80% 80% at 80% 0%, rgba(126, 70, 255, .35), transparent 60%), var(--lavender); color: var(--violet-dark); font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.post-card-body { display: flex; flex-direction: column; gap: 16px; }
.post-card-body .eyebrow { margin-top: 8px; }
.post-card-title { font-size: 22px; line-height: 1.3; }
.post-card-title a:hover { color: var(--violet); }
.post-card-excerpt { font-size: 16px; color: var(--text); }
.post-card.is-featured { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: center; margin-bottom: 96px; }
.post-card.is-featured .post-card-media { grid-column: 1 / span 7; aspect-ratio: 16 / 10; }
.post-card.is-featured .post-card-body { grid-column: 8 / span 5; gap: 20px; }
.post-card.is-featured .post-card-title { font-size: 36px; line-height: 1.2; letter-spacing: -.02em; }
.post-card.is-featured .post-card-excerpt { font-size: 17px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gutter); row-gap: 64px; }
.pagination { margin-top: 80px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.pagination .page-numbers { padding: 10px 14px; border-radius: var(--radius); border: 1px solid transparent; }
.pagination .page-numbers.current { border-color: var(--navy); }
.pagination a.page-numbers:hover { border-color: var(--grey); }
.related { padding-top: var(--section); }

/* Article */
.entry-head { padding-top: 64px; }
.entry-head-inner { max-width: calc(760px + var(--gutter) * 2); }
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb a { color: var(--muted-2); }
.breadcrumb .breadcrumb_last { color: var(--navy); }
.entry-head .eyebrow { margin-bottom: 20px; }
.entry-title { font-size: 48px; line-height: 1.12; }
.entry-lead { margin-top: 24px; font-size: 20px; }
.entry-hero { margin-top: 56px; }
.entry-hero img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 16 / 10; object-fit: cover; }
.entry-content { padding-top: 56px; font-size: 18px; line-height: 1.7; color: var(--ink); }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 { font-size: 30px; margin-top: 2em; }
.entry-content h3 { font-size: 22px; margin-top: 1.8em; }
.entry-content h2 + *, .entry-content h3 + * { margin-top: .7em; }
.entry-content a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--navy); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content ul { list-style: disc; }
.entry-content li + li { margin-top: .5em; }
.entry-content blockquote { border-left: 3px solid var(--violet); padding: 4px 0 4px 24px; font-family: var(--font-head); font-weight: 600; font-size: 24px; line-height: 1.4; color: var(--navy); }
.entry-content blockquote p + p { margin-top: .6em; }
.entry-content img { border-radius: var(--radius-lg); }
.entry-content figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.entry-content table { width: 100%; font-size: 16px; }
.entry-content th, .entry-content td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.entry-content th { color: var(--navy); font-weight: 600; }
.entry-content code { font-size: .9em; background: var(--panel); padding: 2px 6px; border-radius: 4px; }
.entry-content pre { background: var(--panel); padding: 20px; border-radius: var(--radius); overflow-x: auto; font-size: 15px; }
.entry-content hr { border: 0; border-top: 1px solid var(--grey); }
.entry-content .wp-block-button__link { display: inline-block; background: var(--violet); color: #fff; padding: 14px 24px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.entry-content .has-cream-background-color { background: var(--cream); padding: 24px 28px; border-radius: var(--radius-lg); }
.entry-content .has-lavender-background-color { background: var(--lavender); padding: 24px 28px; border-radius: var(--radius-lg); }
.entry-foot { padding-top: 64px; }
.entry-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 32px; border: 1px solid var(--grey); border-radius: var(--radius-lg); }
.entry-cta p { font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.entry-page .page-head { padding-top: 96px; }
.entry-page .page-head h1 { font-size: 48px; }
.entry-page .page-head .lead { margin-top: 20px; }
.entry-page .entry-content { padding-top: 48px; padding-bottom: 0; }

/* ---------- Apparition au défilement ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal], .no-reveal [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1240px) {
  :root { --section: 120px; --block-gap: 96px; }
  .hero-title { font-size: 56px; }
  .statement-text, h2 { font-size: 40px; }
  .terrain-media { margin-right: 0; }
  .scr-kpis b { font-size: 20px; }
}

@media (max-width: 1024px) {
  .nav-primary .menu { gap: 28px; }
  .header-actions { gap: 20px; }
  .block-head p, .block-head-split p, .block-head-side { grid-column: 7 / span 6; }
  .product-block-b { display: flex; flex-direction: column; gap: 48px; }
  .product-block-b .block-head-aside { padding-right: 0; max-width: 620px; }
  .product-block-b .block-head-aside h2 { margin-bottom: 16px; }
  /* Le bloc latéral passe en pleine largeur : la barre compacte reprend ses libellés. */
  .screen-compact, .product-block-b .screen { grid-template-columns: 208px minmax(0, 1fr); }
  .scr-side.is-compact, .product-block-b .scr-side { padding: 22px 12px; align-items: stretch; gap: 2px; }
  .scr-side.is-compact .scr-logo, .product-block-b .scr-logo { display: block; }
  .scr-side.is-compact .scr-mark, .product-block-b .scr-mark { display: none; }
  .scr-side.is-compact .scr-nav, .product-block-b .scr-nav { gap: 2px; align-items: stretch; }
  .scr-side.is-compact .scr-nav li, .product-block-b .scr-nav li { width: auto; height: auto; padding: 9px 10px; justify-content: flex-start; }
  .scr-side.is-compact .scr-nav li span, .product-block-b .scr-nav li span,
  .scr-side.is-compact .scr-user-name, .product-block-b .scr-user-name { display: block; }
  .scr-side.is-compact .scr-user, .product-block-b .scr-user { padding: 8px 10px; }
  .product-block-b .scr-actions .scr-btn:not(.is-primary):not(.is-green) { display: inline-block; }
  .terrain-inner { min-height: 0; }
  .terrain-text { grid-column: 1 / span 6; padding: 72px 0; }
  .terrain-media { grid-column: 7 / span 6; min-height: 560px; }
  .faq-aside { grid-column: 1 / span 12; margin-bottom: 40px; }
  .faq-aside p { max-width: none; }
  .faq-list { grid-column: 1 / span 12; }
  .releases-intro { grid-column: 1 / span 12; }
  .releases-list { grid-column: 1 / span 12; }
  .contact-info { grid-column: 1 / span 6; }
  .contact-form { grid-column: 7 / span 6; padding: 32px; }
  .proof-quote { grid-column: 1 / span 6; }
  .proof-form { grid-column: 7 / span 6; padding: 32px; }
  .cta-band-inner > :last-child { grid-column: 7 / span 6; }
  .footer-col-1 { grid-column: 7 / span 2; }
}

@media (max-width: 900px) {
  :root { --section: 96px; --block-gap: 80px; }
  h1, .page-title { font-size: 44px; }
  h2, .statement-text { font-size: 34px; }
  .lead, .block-head p, .product-block-b .block-head-aside p, .terrain-text p, .releases-intro p { font-size: 17px; }

  /* En-tête mobile */
  .header-inner { height: 60px; gap: 12px; }
  .is-scrolled .header-inner { height: 56px; }
  body.admin-bar .site-header { top: 46px; }
  .brand img { height: 20px; }
  .nav-primary, .link-login, .lang-desktop { display: none; }
  .header-actions { gap: 4px; }
  .btn-header { font-size: 13px; padding: 10px 14px; }
  .nav-toggle { display: inline-flex; }

  /* Hero */
  .hero { padding-top: 56px; }
  .hero .eyebrow { margin-bottom: 20px; font-size: 12px; }
  .hero-title { font-size: 40px; margin-bottom: 20px; }
  .br-lg { display: none; }
  .hero-text { font-size: 17px; margin-bottom: 32px; }
  .hero-actions { flex-direction: column; gap: 20px; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-screen { height: 400px; margin-top: 64px; }
  .hero-screen .screen { height: 520px; }

  /* Écrans : une colonne, barre navy en haut */
  .screen, .screen-cash, .screen-compact, .product-block-b .screen { grid-template-columns: 1fr; font-size: 12px; }
  .scr-side { display: none; }
  .scr-mbar { display: flex; }
  .scr-top { height: auto; padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
  .scr-top-right .scr-seg, .scr-top-right .scr-muted { display: none; }
  .scr-body { padding: 16px; gap: 12px; }
  .scr-card { padding: 14px; }
  .scr-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .screen-dash .scr-kpis .scr-card:nth-child(2), .screen-dash .scr-kpis .scr-card:nth-child(3) { display: none; }
  .scr-kpis b { font-size: 16px; }
  .scr-kpis em { font-size: 11px; }
  .scr-row-2 { grid-template-columns: 1fr; gap: 12px; }
  .scr-bars { height: 110px; gap: 8px; padding: 0; }
  .scr-bars i { width: 12px; }
  .scr-bars > span { gap: 3px; }
  .scr-axis { font-size: 10px; }
  .scr-legend { display: none; }
  .scr-due-row small.badge { display: none; }
  .scr-goals { display: none; }

  .screen-invoice .scr-actions, .scr-steps { display: none; }
  .scr-doc { padding: 16px; gap: 14px; }
  .scr-doc-head { flex-direction: column; gap: 12px; }
  .scr-doc-meta { text-align: left; }
  .scr-doc-title { text-align: left !important; font-size: 16px; }
  .scr-table th:nth-child(1), .scr-table td:nth-child(1), .scr-table th:nth-child(3), .scr-table td:nth-child(3), .scr-table th:nth-child(5), .scr-table td:nth-child(5) { display: none; }
  .scr-doc-foot { flex-direction: column; align-items: stretch; }
  .scr-totals { width: 100%; }

  /* Trésorerie : indicateurs empilés, liste sans catégorie / méthode / état */
  .screen-cash .scr-btn:not(.is-primary) { display: none; }
  .screen-cash .scr-kpis { grid-template-columns: 1fr; gap: 8px; }
  .screen-cash .scr-kpis .scr-card { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; }
  .screen-cash .scr-kpis small { margin: 0; }
  .screen-cash .scr-kpis b { font-size: 16px; }
  .scr-tabs { gap: 14px; padding: 0 14px; overflow-x: auto; scrollbar-width: none; }
  .scr-tabs::-webkit-scrollbar { display: none; }
  .scr-tabs span { flex: none; }
  .scr-range { display: none; }
  .scr-tx-head, .scr-tx-row { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; padding: 8px 14px; }
  .scr-tx-head > span:nth-child(3), .scr-tx-head > span:nth-child(4), .scr-tx-head > span:nth-child(6), .scr-tx-row > span:nth-child(3), .scr-tx-row > span:nth-child(4), .scr-tx-row > span:nth-child(6) { display: none; }
  /* Présence : quatre premiers jours + présences et heures sup, indicateurs empilés */
  .screen-hr .scr-seg { display: none; }
  .scr-hr-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .scr-grid-wrap { padding: 12px; overflow: hidden; }
  .scr-grid { min-width: 0; grid-template-columns: minmax(0, 1fr) repeat(4, 28px) 36px 40px; gap: 4px; }
  .scr-grid .n { font-size: 12px; }
  .scr-grid .c { height: 28px; font-size: 11px; }
  .scr-grid .h { font-size: 10px; }
  .scr-grid > :nth-child(19n+6), .scr-grid > :nth-child(19n+7), .scr-grid > :nth-child(19n+8), .scr-grid > :nth-child(19n+9), .scr-grid > :nth-child(19n+10), .scr-grid > :nth-child(19n+11), .scr-grid > :nth-child(19n+12), .scr-grid > :nth-child(19n+13), .scr-grid > :nth-child(19n+14), .scr-grid > :nth-child(19n+15), .scr-grid > :nth-child(19n+18), .scr-grid > :nth-child(19n) { display: none; }
  .screen-hr .scr-kpis { grid-template-columns: 1fr; gap: 8px; }
  .screen-hr .scr-kpis-inline b { font-size: 15px; text-align: right; }

  /* Sections */
  .block-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
  .product-block { gap: 40px; }
  .terrain-inner { display: flex; flex-direction: column; }
  .terrain-text { padding: 72px 0 48px; }
  .terrain-media { min-height: 0; margin: 0 calc(-1 * var(--gutter)); padding: 40px 24px 56px; }
  .terrain-shade { background: linear-gradient(180deg, var(--navy) 0%, rgba(1, 0, 102, .2) 30%, rgba(1, 0, 102, .55) 100%); }
  .phone { width: 292px; }
  .packs { grid-template-columns: 1fr; }
  .pack { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--grey); }
  .pack:first-child { padding-top: 0; }
  .pack:last-child { border-bottom: 0; padding-bottom: 0; }
  .pack-flag { height: auto; margin-bottom: 14px; }
  .pack-flag span { padding: 14px 0 0; }
  .pack:not(.is-hl) .pack-flag { display: none; }
  .pack-price { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 20px; }
  .pack-amount { font-size: 44px; margin: 0; }
  .pack-users { margin: 0 0 6px; padding: 0; border: 0; font-size: 15px; }
  .pack-desc { font-size: 15px; }
  .pack .btn { margin-top: 24px; }
  .pricing .block-head { margin-bottom: 40px; }
  .pricing-note { font-size: 14px; }
  .proof, .cta-band { padding: 80px 0; }
  .proof-inner, .cta-band-inner { display: flex; flex-direction: column; gap: 40px; align-items: stretch; }
  .proof-quote blockquote p { font-size: 26px; }
  .proof-form, .card-form { padding: 24px; }
  .cta-band-action { align-items: stretch; }
  .newsletter h2, .cta-band-form h2 { font-size: 30px; }
  .faq-item summary { font-size: 17px; padding: 20px 0; gap: 16px; }
  .faq-answer { padding: 0 28px 22px 0; }
  .pack-features { gap: 10px; }
  .compare-table { font-size: 15px; }
  .page-head { padding-top: 56px; }
  .page-head-inner { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
  .error-inner { display: flex; flex-direction: column; gap: 40px; align-items: stretch; }
  .error-visual { padding: 32px 16px; }
  .phone-error { transform: none; }
  .page-head .eyebrow { margin-bottom: 16px; }
  .pricing-page, .roadmap { padding-top: 56px; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .release { grid-template-columns: 1fr; row-gap: 12px; padding: 24px 0; }
  .contact { padding: 56px 0 var(--section); }
  .contact-inner { display: flex; flex-direction: column; gap: 48px; }
  .contact-info { gap: 40px; }
  .contact-list > div { grid-template-columns: 120px 1fr; }
  .blog-list { padding-top: 48px; }
  .chips-nav { margin-bottom: 56px; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 16px; scrollbar-width: none; }
  .chips-nav::-webkit-scrollbar { display: none; }
  .chips-nav .chip { flex: none; }
  .post-card.is-featured { display: flex; flex-direction: column; margin-bottom: 64px; }
  .post-card.is-featured .post-card-title { font-size: 28px; }
  .post-grid { grid-template-columns: 1fr 1fr; row-gap: 48px; }
  .entry-title { font-size: 34px; }
  .entry-lead { font-size: 18px; }
  .entry-content { font-size: 17px; padding-top: 40px; }
  .entry-content h2 { font-size: 26px; }
  .entry-page .page-head h1 { font-size: 36px; }
  .footer-grid { row-gap: 36px; }
  .footer-brand { grid-column: 1 / span 12; }
  .footer-col-1 { grid-column: 1 / span 4; }
  .footer-col-2 { grid-column: 5 / span 4; }
  .footer-col-3 { grid-column: 9 / span 4; }
  .site-footer { padding: 48px 0 24px; }
  .form-grid.is-2, .contact-form .form-grid.is-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --section: 80px; }
  h1, .page-title { font-size: 36px; }
  h2, .statement-text { font-size: 32px; }
  .hero-title { font-size: 40px; }
  .post-grid { grid-template-columns: 1fr; }
  .form-inline-row { flex-direction: column; }
  .form-inline-row .btn { width: 100%; }
  .contact-list > div { grid-template-columns: 1fr; row-gap: 4px; }
  .footer-col-1, .footer-col-2, .footer-col-3 { grid-column: span 12; }
  .footer-col { line-height: 2; }
  .entry-cta { padding: 24px; }
  .compare-table { min-width: 560px; }
  .compare-table thead th { width: 110px; }
}

/* ==========================================================================
   Pages module (gabarit « Module »)
   ========================================================================== */

/* Hero : mention du pack sous les boutons. */
.hero-pack { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; padding: 8px 16px; border-radius: 20px; background: var(--lavender); color: var(--violet-dark); font-size: 14px; font-weight: 600; }
.hero-pack .icon { color: var(--violet); }

/* Avant / Avec Numa : deux colonnes de texte, sans tableau de coches. */
.shift { padding-top: var(--section); }
.shift-head { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); padding-bottom: 18px; border-bottom: 1px solid var(--grey); }
.shift-label { grid-column: 1 / span 5; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted-3); }
.shift-label.is-now { grid-column: 7 / span 6; color: var(--violet); }
.shift-row { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); align-items: baseline; padding: 32px 0; border-bottom: 1px solid var(--line); }
.shift-before { grid-column: 1 / span 5; font-size: 18px; line-height: 1.55; color: var(--muted-3); }
.shift-after { grid-column: 7 / span 6; display: flex; gap: 14px; font-family: var(--font-head); font-weight: 600; font-size: 21px; line-height: 1.4; letter-spacing: -.015em; color: var(--navy); text-wrap: pretty; }
.shift-arrow { flex: none; margin-top: 7px; color: var(--violet); }

/* Capacités : mêmes blocs que l'accueil, titres en h3. */
.product-module .block-head h3 { font-size: 36px; line-height: 1.15; letter-spacing: -.02em; grid-column: 1 / span 7; }
.product-module .block-head-aside h3 { font-size: 32px; margin-bottom: 20px; }
.product-module .block-head-aside p { font-size: 18px; color: var(--text); }
.product-module .block-head-split p { grid-column: 8 / span 5; }

/* Preuve : citation seule, centrée, sans formulaire. */
.proof-single { max-width: 900px; }
.proof-single p { font-family: var(--font-head); font-weight: 600; font-size: 34px; line-height: 1.35; letter-spacing: -.015em; margin-bottom: 28px; text-wrap: pretty; }
.proof-single footer { font-size: 16px; color: var(--text); }
.proof-single footer b { color: var(--navy); }

/* Inclus chez Numa. */
.included { padding-top: var(--section); }
.included-inner { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 40px; align-items: start; }
.included-inner h2 { grid-column: 1 / span 5; }
.included-list { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 18px; }
.included-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; line-height: 1.55; color: var(--ink); }
.included-list .icon { flex: none; margin-top: 4px; color: var(--violet); }

/* Et aussi : grille de fonctionnalités secondaires. */
.more { padding-top: var(--section); }
.more .block-head { margin-bottom: 56px; }
.more-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 64px; }
.more-grid li { padding: 22px 0; border-top: 1px solid var(--line); }
.more-grid li b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: var(--navy); }
.more-grid li span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--text); }

/* Ça circule avec. */
.flows { padding-top: var(--section); }
.modules-guide { padding-bottom: var(--section-md); }
.flows .block-head { margin-bottom: 48px; }
.flows-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.flows-grid-all { grid-template-columns: repeat(4, 1fr); margin-top: 56px; }
.flow-card { display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: 28px; border: 1px solid var(--grey); border-radius: var(--radius-lg); transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.flow-card:hover { border-color: var(--violet); transform: translateY(-2px); box-shadow: var(--shadow-card); color: inherit; }
.flow-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--lavender); color: var(--violet); margin-bottom: 20px; }
.flow-card b { font-family: var(--font-head); font-weight: 600; font-size: 19px; letter-spacing: -.01em; color: var(--navy); }
.flow-card small { display: block; margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--text); }
.flow-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 14px; font-weight: 600; color: var(--violet); }
.flow-card:hover .flow-link .icon { transform: translateX(3px); }
.flow-link .icon { transition: transform .2s var(--ease); }

/* ---------- Écrans : objectifs, clients, pipeline, conversion, partage ---------- */

/* Objectifs */
.scr-goal-list { display: flex; flex-direction: column; gap: 22px; padding: 20px 22px; }
.scr-goal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.scr-goal-head b { font-weight: 600; color: var(--navy); }
.scr-goal-vs { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--green); }
.scr-goal-vs.down { color: var(--muted-2); }
.scr-goal-vs.down .icon { transform: rotate(180deg); }
.scr-goal-bar { height: 8px; background: #EFEFF4; border-radius: 4px; overflow: hidden; }
.scr-goal-bar i { display: block; height: 100%; background: var(--violet); border-radius: 4px; }
.scr-goal-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--muted-2); }
.scr-goal-foot b { color: var(--navy); font-weight: 600; }

/* Clients */
.scr-clients { padding: 20px 22px; }
.scr-cl-head, .scr-cl-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 84px minmax(0, 1fr) minmax(0, 1fr) 96px; gap: 14px; align-items: center; }
.scr-cl-head { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.scr-cl-row { padding: 12px 0; border-bottom: 1px solid var(--line-3); white-space: nowrap; }
.scr-cl-row:last-child { border-bottom: 0; }
.scr-cl-row .who { min-width: 0; line-height: 1.35; }
.scr-cl-row .who b { display: block; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.scr-cl-row .who small { display: block; font-size: 11px; color: var(--muted); }
.scr-cl-row .r, .scr-cl-head .r { text-align: right; }
.scr-cl-row .strong { font-weight: 600; color: var(--navy); }
.scr-spark { display: inline-flex; align-items: flex-end; gap: 3px; height: 28px; }
.scr-spark i { width: 6px; background: var(--lavender-bar); border-radius: 2px 2px 0 0; }
.scr-spark i:last-child { background: var(--violet); }

/* Pipeline des devis */
.scr-pl-head, .scr-pl-row { display: grid; grid-template-columns: 88px minmax(0, 1.5fr) 56px minmax(0, 1fr) 92px minmax(0, 1fr); gap: 12px; padding: 9px 16px; align-items: center; white-space: nowrap; }
.scr-pl-head { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
.scr-pl-row { border-bottom: 1px solid #F3F3F7; }
.scr-pl-row:last-child { border-bottom: 0; }
.scr-pl-row .who { min-width: 0; line-height: 1.35; }
.scr-pl-row .who b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.scr-pl-row .who small { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.scr-pl-row .muted, .scr-pl-head .muted { color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; }
.scr-pl-row .r, .scr-pl-head .r { text-align: right; }
.scr-pl-row .strong { font-weight: 600; color: var(--navy); }

/* Conversion : les trois documents chaînés */
.scr-chain { display: flex; align-items: stretch; gap: 10px; }
.scr-chain-doc { flex: 1; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; line-height: 1.4; }
.scr-chain-doc.is-next { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(126, 70, 255, .1); }
.scr-chain-type { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.scr-chain-doc b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--navy); margin: 3px 0 4px; }
.scr-chain-doc small { display: block; color: var(--muted-2); font-size: 12px; }
.scr-chain-doc .badge { margin-top: 8px; }
.scr-chain-link { display: flex; align-items: center; color: var(--violet); flex: none; }

/* Partage WhatsApp */
.scr-share-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.scr-share-form, .scr-share-preview { min-width: 0; }
.scr-share-form { padding: 20px 22px; }
.scr-share-list > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-3); }
.scr-share-list dt { color: var(--muted); }
.scr-share-list dd { margin: 0; line-height: 1.4; }
.scr-share-list dd b { font-weight: 600; color: var(--navy); }
.scr-share-list dd small { display: block; color: var(--muted); font-size: 12px; }
.scr-share-opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.scr-opt { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 14px; background: var(--green-bg); color: var(--green-dark); font-size: 12px; font-weight: 600; }
.scr-share-send { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; font-weight: 600; border-color: var(--green); }
.scr-share-preview { padding: 20px 22px; }
.scr-chat { background: #E9E2DB; border-radius: 10px; padding: 16px; }
.scr-bubble { position: relative; max-width: min(300px, 100%); margin-left: auto; min-width: 0; background: #DCF8C6; border-radius: 10px 2px 10px 10px; padding: 10px 12px; color: #111B21; line-height: 1.45; }
.scr-bubble-file { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .55); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.scr-file-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 6px; background: var(--red-bg); color: var(--red); flex: none; }
.scr-bubble-file b { display: block; font-weight: 600; font-size: 12.5px; }
.scr-bubble-file small { display: block; font-size: 11px; color: #5E6A70; }
.scr-bubble p { font-size: 12.5px; }
.scr-bubble-link { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(0, 0, 0, .08); color: #1F7AE0; font-size: 12.5px; }
.scr-bubble-meta { display: block; text-align: right; margin-top: 4px; font-size: 11px; color: #667781; }
.scr-bubble-meta i { color: #53BDEB; font-style: normal; margin-left: 3px; }
.scr-share-note { margin-top: 14px; font-size: 12px; line-height: 1.55; }

/* Tableau de bord sur téléphone */
.phone-dash .phone-body { gap: 10px; }
.phone-kpis { display: flex; flex-direction: column; gap: 8px; }
.phone-kpis > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.phone-kpis small { display: block; color: var(--muted); font-size: 11px; }
.phone-kpis b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 22px; letter-spacing: -.01em; color: var(--navy); margin-top: 2px; }
.phone-kpis em { display: flex; align-items: center; gap: 4px; font-style: normal; font-size: 11px; color: var(--muted-2); margin-top: 3px; }
.phone-kpis em.up { color: var(--green); font-weight: 600; }
.phone-section { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px; font-size: 12px; color: var(--muted-2); }
.phone-section b { font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.phone-amt { flex: none; text-align: right; line-height: 1.3; }
.phone-amt b { display: block; font-weight: 600; color: var(--navy); font-size: 12.5px; }
.phone-dash .phone-top .scr-avatar { width: 26px; height: 26px; font-size: 10px; }

/* ---------- Écrans Stock et RH & Paie ---------- */

/* Tuiles colorées (mouvements de stock, totaux d'un bon d'entrée) */
.scr-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.scr-tiles-3 { grid-template-columns: repeat(3, 1fr); }
.scr-tile { border-radius: 10px; padding: 14px 16px; line-height: 1.3; }
.scr-tile small { display: block; font-size: 12px; margin-bottom: 6px; }
.scr-tile b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.scr-tile b span { font-size: 12px; font-family: var(--font-body); font-weight: 500; }
.scr-tile.is-in { background: var(--green-bg); color: var(--green-dark); }
.scr-tile.is-in small { color: var(--green); }
.scr-tile.is-out { background: var(--red-bg); color: var(--red); }
.scr-tile.is-out small { color: var(--red); }
.scr-tile.is-net { background: var(--lavender); color: var(--violet-dark); }
.scr-tile.is-net small { color: var(--violet-dark); }
.scr-tile.is-items { background: var(--amber-bg); color: var(--amber); }
.scr-tile.is-items small { color: var(--amber); }
.scr-tile.is-plain { background: var(--panel); color: var(--navy); border: 1px solid var(--line); }
.scr-tile.is-plain small { color: var(--muted); }
.scr-tile.is-amount { background: #FFF8E1; color: var(--navy); border: 1px solid #F3E4B8; }
.scr-tile.is-amount small { color: var(--amber); }

/* Lignes de tableau communes aux nouveaux écrans */
.scr-stk-head, .scr-stk-row, .scr-mv-head, .scr-mv-row, .scr-inv-head, .scr-inv-row,
.scr-pay-head, .scr-pay-row, .scr-nf-head, .scr-nf-row, .scr-as-head, .scr-as-row {
  display: grid; gap: 12px; align-items: center; white-space: nowrap;
}
.scr-stk-head, .scr-mv-head, .scr-inv-head, .scr-pay-head, .scr-nf-head, .scr-as-head {
  color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.scr-stk-row, .scr-mv-row, .scr-inv-row, .scr-pay-row, .scr-nf-row, .scr-as-row {
  padding: 11px 0; border-bottom: 1px solid var(--line-3);
}
.scr-stk-row:last-child, .scr-inv-row:last-child, .scr-nf-row:last-child, .scr-as-row:last-child { border-bottom: 0; }
.scr-stk-row .who, .scr-mv-row .who, .scr-inv-row .who, .scr-pay-row .who, .scr-nf-row .who, .scr-as-row .who { min-width: 0; line-height: 1.35; }
.scr-stk-row .who b, .scr-mv-row .who b, .scr-inv-row .who b, .scr-pay-row .who b, .scr-nf-row .who b, .scr-as-row .who b { display: block; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.scr-inv-row .who small { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.scr-stk-row .muted, .scr-mv-row .muted, .scr-inv-row .muted, .scr-pay-row .muted, .scr-nf-row .muted, .scr-as-row .muted { color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; }
.scr-stk-row .strong, .scr-inv-row .strong, .scr-pay-row .strong, .scr-nf-row .strong { font-weight: 600; color: var(--navy); }
.scr-stk-head .r, .scr-stk-row .r, .scr-mv-head .r, .scr-mv-row .r, .scr-inv-head .r, .scr-inv-row .r,
.scr-pay-head .r, .scr-pay-row .r, .scr-nf-head .r, .scr-nf-row .r, .scr-as-head .r, .scr-as-row .r { text-align: right; }

/* Stock : articles d'un entrepôt */
.scr-stk { padding: 18px 20px; }
.scr-stk-head, .scr-stk-row { grid-template-columns: minmax(0, 1.7fr) 116px 106px minmax(0, 1fr) 96px; }
.scr-stk-row .r b { font-weight: 600; color: var(--navy); }
.scr-unit { color: var(--muted-3); font-size: 11px; font-weight: 500; }

/* Stock : mouvements */
.scr-mv { padding: 18px 20px; }
.scr-mv-head, .scr-mv-row { grid-template-columns: 50px minmax(120px, 1.6fr) 88px 74px 74px minmax(120px, auto); gap: 10px; }
/* Bloc latéral : place pour l'article, le type, la quantité et le document. */
.product-block-b .scr-mv-head, .product-block-b .scr-mv-row { grid-template-columns: minmax(0, 1fr) 72px 62px 142px; gap: 8px; }
/* La référence et son badge tiennent sur deux lignes plutôt que de pousser la grille. */
.product-block-b .scr-doclink { flex-wrap: wrap; gap: 4px; white-space: normal; }
.product-block-b .scr-mv-head > span:nth-child(1), .product-block-b .scr-mv-head > span:nth-child(3),
.product-block-b .scr-mv-row > span:nth-child(1), .product-block-b .scr-mv-row > span:nth-child(3) { display: none; }
.scr-doclink { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.scr-doclink b { font-weight: 600; color: var(--violet); }

/* Stock : bon d'entrée */
.scr-valid { display: inline-flex; align-items: flex-start; gap: 8px; color: var(--green); font-weight: 600; }
.scr-valid .icon { flex: none; margin-top: 3px; }
.scr-valid small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* Stock : inventaire */
.scr-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; padding: 14px 18px; }
.scr-sum b { font-family: var(--font-head); font-weight: 600; font-size: 17px; }
.scr-sum > span { color: var(--muted-2); }
.scr-sum .green b { color: var(--green); }
.scr-sum .red b { color: var(--red); }
.scr-sum-note { margin-left: auto; }
.scr-inv { padding: 18px 20px; }
.scr-inv-head, .scr-inv-row { grid-template-columns: minmax(0, 1.8fr) 116px 108px 96px 80px; }
.product-block-b .scr-inv-head, .product-block-b .scr-inv-row { grid-template-columns: minmax(0, 1fr) 92px 84px 70px; }
.product-block-b .scr-inv-head > span:nth-child(2), .product-block-b .scr-inv-row > span:nth-child(2) { display: none; }

/* RH : traitement de la paie */
.scr-pay { padding: 18px 20px; }
.scr-pay-head, .scr-pay-row { grid-template-columns: minmax(0, 1.3fr) 92px 56px minmax(0, 116px) minmax(0, 116px) minmax(0, 116px) 82px; }
.scr-pay-row.is-total { border-top: 1px solid var(--navy); border-bottom: 0; font-weight: 600; color: var(--navy); padding-top: 12px; }
.scr-pay-row.is-total .muted { color: var(--navy); }
.scr-pay-row .red { color: var(--red); }
.scr-kpis em.is-badge { display: inline-block; margin-top: 4px; }
.scr-recap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 32px; background: var(--navy); color: #fff; border-radius: 10px; padding: 16px 20px; }
.scr-recap > b { font-family: var(--font-head); font-weight: 600; font-size: 15px; margin-right: auto; }
.scr-recap > span { color: rgba(255, 255, 255, .72); font-size: 12px; }
.scr-recap > span b { display: block; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 16px; margin-top: 3px; }

/* RH : fiche salarié */
.scr-emp-cards { display: grid; grid-template-columns: 260px minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.scr-emp-id { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 18px; }
.scr-emp-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--violet); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 600; font-size: 19px; margin-bottom: 12px; }
.scr-emp-id b { font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--navy); }
.scr-emp-id small { color: var(--muted); margin-top: 2px; }
.scr-emp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.scr-emp-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line-3); }
.scr-emp-list > div:first-child { border-top: 0; }
.scr-emp-list dt { color: var(--muted); }
.scr-emp-list dd { margin: 0; text-align: right; color: var(--ink); }
.scr-emp-list dd b { font-weight: 600; color: var(--navy); }
.scr-att-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 100px; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line-3); }
.scr-att-row:last-child { border-bottom: 0; }
.scr-att-row .who b { display: block; font-weight: 500; color: var(--ink); }
.scr-att-row .who small { display: block; font-size: 11px; color: var(--muted); }
.scr-att-row .muted { color: var(--muted-2); }
.scr-att-row .muted i { font-style: normal; color: var(--muted-4); margin: 0 4px; }
.scr-att-row .r { text-align: right; }

/* RH : notes de frais */
.scr-nf-head, .scr-nf-row { grid-template-columns: 78px minmax(0, 1.1fr) 52px 104px minmax(0, 1.2fr) 92px 106px; padding-left: 16px; padding-right: 16px; }
.product-block-b .scr-nf-head, .product-block-b .scr-nf-row { grid-template-columns: minmax(0, 1fr) 96px 88px 104px; }
.product-block-b .scr-nf-head > span:nth-child(1), .product-block-b .scr-nf-head > span:nth-child(3), .product-block-b .scr-nf-head > span:nth-child(5),
.product-block-b .scr-nf-row > span:nth-child(1), .product-block-b .scr-nf-row > span:nth-child(3), .product-block-b .scr-nf-row > span:nth-child(5) { display: none; }

/* RH : assiduité — barres empilées + courbe du taux d'absence */
.scr-as { padding: 18px 20px; }
.scr-as-head, .scr-as-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 82px 82px 78px 88px; }
.scr-legend .l-pres { background: #9EC5FF; }
.scr-legend .l-abs { background: var(--red); }
.scr-legend .l-conge { background: #F0C64E; }
.scr-legend .l-rate { background: var(--red); border-radius: 50%; width: 8px; height: 8px; }
.scr-stack-wrap { position: relative; }
.scr-stack { display: grid; grid-template-columns: repeat(9, 1fr); gap: 14px; align-items: end; height: 190px; border-bottom: 1px solid var(--line); padding: 0 6px; }
.scr-stack > span { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; border-radius: 4px 4px 0 0; overflow: hidden; }
.scr-stack i { display: block; width: 100%; }
.scr-stack .s-pres { background: #9EC5FF; }
.scr-stack .s-abs { background: var(--red); }
.scr-stack .s-conge { background: #F0C64E; }
.scr-rate { position: absolute; inset: 0 6px 1px; width: calc(100% - 12px); height: 190px; color: var(--red); pointer-events: none; }
.screen-attend .scr-axis { grid-template-columns: repeat(9, 1fr); }

/* ---------- Écrans Achats et CRM ---------- */

.badge-info { background: var(--blue-bg); color: var(--blue); }

/* Achats : circuit d'approbation */
.scr-circuit { padding: 18px 20px; }
.scr-circuit-steps { display: flex; align-items: stretch; gap: 10px; }
.scr-circuit-card { flex: 1; display: flex; align-items: flex-start; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; line-height: 1.35; }
.scr-circuit-card.is-done { border-color: var(--green-bg-2); background: var(--green-bg); }
.scr-circuit-card.is-wait { border-style: dashed; }
.scr-circuit-mark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--muted-3); border: 1px solid var(--line-2); }
.is-done .scr-circuit-mark { background: var(--green); color: #fff; border-color: var(--green); }
.scr-circuit-body { min-width: 0; }
.scr-circuit-body b { display: block; font-weight: 600; color: var(--navy); }
.scr-circuit-body small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.is-done .scr-circuit-body small { color: var(--green-dark); }
.scr-circuit-link { display: flex; align-items: center; color: var(--muted-4); flex: none; }

/* Achats : facture fournisseur et saisie d'un paiement */
.scr-linked { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; }
.scr-linkref { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 14px; background: var(--lavender); color: var(--violet-dark); font-weight: 600; }
.scr-pay-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.scr-doc-compact { padding: 20px 22px; gap: 16px; }
.scr-doc-compact .scr-totals { width: 100%; }
.scr-payform { padding: 18px 20px; }
.scr-payamount { margin: 14px 0; padding: 14px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.scr-payamount small { display: block; color: var(--muted); font-size: 12px; }
.scr-payamount b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 22px; letter-spacing: -.01em; color: var(--navy); margin-top: 3px; }
.scr-payamount b span { font-size: 12px; font-family: var(--font-body); color: var(--muted); }
.scr-payamount em { display: block; font-style: normal; font-size: 11px; color: var(--muted-2); margin-top: 4px; }
.scr-payactions { display: flex; justify-content: flex-end; gap: 8px; }
.scr-payactions .is-green { background: var(--green); border-color: var(--green); color: #fff; }

/* Achats : rapport — aire d'évolution et classement fournisseurs */
.scr-area-wrap { height: 170px; border-bottom: 1px solid var(--line); }
.scr-area { width: 100%; height: 100%; color: var(--blue); display: block; }
.scr-axis-9 { grid-template-columns: repeat(9, 1fr); }
.scr-sup { padding: 18px 20px; }
.scr-sup-head, .scr-sup-row { display: grid; grid-template-columns: 48px minmax(120px, 1.7fr) 124px minmax(110px, 1fr) 118px; gap: 12px; align-items: center; white-space: nowrap; }
.scr-sup-head { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.scr-sup-row { padding: 11px 0; border-bottom: 1px solid var(--line-3); }
.scr-sup-row:last-child { border-bottom: 0; }
.scr-sup-row .who { min-width: 0; }
.scr-sup-row .who b { display: block; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.scr-sup-head .r, .scr-sup-row .r { text-align: right; }
.scr-sup-row .muted { color: var(--muted-2); }
.scr-rank { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 6px; background: var(--panel); color: var(--muted-2); font-weight: 600; font-size: 12px; }
.scr-sup-row:first-of-type .scr-rank { background: var(--lavender); color: var(--violet-dark); }
.scr-amount { font-weight: 600; color: var(--violet); }

/* Achats : impayés fournisseurs */
.scr-unp { padding: 18px 20px; }
.scr-unp-head, .scr-unp-row { display: grid; grid-template-columns: minmax(120px, 1.8fr) 88px 104px minmax(110px, 1fr); gap: 12px; align-items: center; white-space: nowrap; }
.scr-unp-head { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.scr-unp-row { padding: 11px 0; border-bottom: 1px solid var(--line-3); }
.scr-unp-row:last-child { border-bottom: 0; }
.scr-unp-row .who { min-width: 0; }
.scr-unp-row .who b { display: block; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.scr-unp-head .r, .scr-unp-row .r { text-align: right; }
.scr-unp-row .muted { color: var(--muted-2); }

/* CRM : fiche de compte */
.screen-account .scr-emp-cards { align-items: stretch; }
.scr-acc-contact { width: 100%; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-3); text-align: left; }
/* Les trois boutons de contact tiennent sur une ligne. */
.screen-account .scr-emp-actions { flex-wrap: nowrap; width: 100%; }
.screen-account .scr-emp-actions .scr-btn { flex: 1; text-align: center; padding: 7px 6px; }
.scr-acc-contact > div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; min-width: 0; }
.scr-acc-contact dt { color: var(--muted); flex: none; }
.scr-acc-contact dd { margin: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.scr-subtabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 0; }
.scr-subtabs span { padding: 4px 12px; border-radius: 14px; background: var(--panel); color: var(--muted-2); font-size: 12px; font-weight: 500; }
.scr-subtabs .is-active { background: var(--navy); color: #fff; }
.scr-acc-row { display: grid; grid-template-columns: 92px 84px 56px minmax(100px, 1fr) 96px; gap: 12px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line-3); white-space: nowrap; }
.scr-acc-row:last-child { border-bottom: 0; }
.scr-acc-row .strong { font-weight: 600; color: var(--navy); }
.scr-acc-row .muted { color: var(--muted-2); }
.scr-acc-row .r { text-align: right; }

/* CRM : liste des comptes */
.scr-acc { padding: 18px 20px; }
.scr-acc-head, .scr-acc-list-row { display: grid; grid-template-columns: minmax(140px, 1.7fr) 96px minmax(0, 1fr) 96px 92px 106px 108px; gap: 12px; align-items: center; white-space: nowrap; }
.scr-acc-head { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.scr-acc-list-row { padding: 10px 0; border-bottom: 1px solid var(--line-3); }
.scr-acc-list-row:last-child { border-bottom: 0; }
.scr-acc-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.scr-acc-name b { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.scr-acc-list-row .muted { color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; }
.scr-acc-list-row .strong { font-weight: 600; color: var(--navy); }
.scr-acc-head .r, .scr-acc-list-row .r { text-align: right; }
.scr-avatar-sm { width: 24px; height: 24px; font-size: 10px; flex: none; }

/* CRM : pipeline des consultations */
.scr-kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.scr-kcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.scr-kcol-head { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 8px; background: var(--panel); border-top: 3px solid var(--muted-4); }
.scr-kcol-head b { font-weight: 600; color: var(--navy); }
.scr-kcol-head small { font-size: 11px; color: var(--muted); }
.scr-kcol-head.is-due { border-top-color: var(--violet); }
.scr-kcol-head.is-wait { border-top-color: var(--amber); }
.scr-kcol-head.is-ok { border-top-color: var(--green); }
.scr-kcard { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; line-height: 1.35; min-width: 0; }
.scr-kcard b { display: block; font-weight: 600; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr-kcard > small { display: block; font-size: 11px; color: var(--muted); margin: 2px 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scr-kcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.scr-kcard-foot em { font-style: normal; font-weight: 600; color: var(--navy); font-size: 12px; }
.scr-kcard-meta { display: inline-flex; align-items: center; gap: 6px; }
.scr-kcard-meta i { font-style: normal; font-size: 11px; color: var(--muted); }

/* Bloc latéral : les écrans n'ont que ~480 px, on garde l'essentiel. */
.product-block-b .scr-sup-head, .product-block-b .scr-sup-row { grid-template-columns: 40px minmax(0, 1fr) 118px; }
.product-block-b .scr-sup-head > span:nth-child(3), .product-block-b .scr-sup-head > span:nth-child(5),
.product-block-b .scr-sup-row > span:nth-child(3), .product-block-b .scr-sup-row > span:nth-child(5) { display: none; }
.product-block-b .scr-unp-head, .product-block-b .scr-unp-row { grid-template-columns: minmax(0, 1fr) 92px 116px; }
.product-block-b .scr-unp-head > span:nth-child(2), .product-block-b .scr-unp-row > span:nth-child(2) { display: none; }
.product-block-b .scr-acc-head, .product-block-b .scr-acc-list-row { grid-template-columns: minmax(0, 1fr) 92px 104px; }
.product-block-b .scr-acc-head > span:nth-child(3), .product-block-b .scr-acc-head > span:nth-child(4), .product-block-b .scr-acc-head > span:nth-child(5), .product-block-b .scr-acc-head > span:nth-child(6),
.product-block-b .scr-acc-list-row > span:nth-child(3), .product-block-b .scr-acc-list-row > span:nth-child(4), .product-block-b .scr-acc-list-row > span:nth-child(5), .product-block-b .scr-acc-list-row > span:nth-child(6) { display: none; }
.product-block-b .scr-rev-head, .product-block-b .scr-rev-row { grid-template-columns: minmax(0, 1fr) 108px 104px; }
.product-block-b .scr-rev-head > span:nth-child(3), .product-block-b .scr-rev-head > span:nth-child(4), .product-block-b .scr-rev-head > span:nth-child(5),
.product-block-b .scr-rev-row > span:nth-child(3), .product-block-b .scr-rev-row > span:nth-child(4), .product-block-b .scr-rev-row > span:nth-child(5) { display: none; }
.product-block-b .scr-pay-split { grid-template-columns: minmax(0, 1fr); }
.product-block-b .scr-kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* CRM : chiffre d'affaires par client */
.scr-rev { padding: 18px 20px; }
.scr-rev-head, .scr-rev-row { display: grid; grid-template-columns: minmax(130px, 1.6fr) minmax(104px, 1fr) 76px minmax(104px, 1fr) minmax(96px, 1fr) 118px; gap: 12px; align-items: center; white-space: nowrap; }
.scr-rev-head { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.scr-rev-row { padding: 11px 0; border-bottom: 1px solid var(--line-3); }
.scr-rev-row:last-child { border-bottom: 0; }
.scr-rev-row .who { min-width: 0; }
.scr-rev-row .who b { display: block; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.scr-rev-head .r, .scr-rev-row .r { text-align: right; }
.scr-rev-row .muted { color: var(--muted-2); }
.scr-rev-row .strong { font-weight: 600; color: var(--navy); }
.scr-rev-bar { position: relative; display: flex; align-items: center; gap: 8px; }
/* La largeur en ligne porte le pourcentage : la piste est le parent. */
.scr-rev-bar { --track: #EFEFF4; }
.scr-rev-bar > i { display: block; flex: 1; height: 6px; border-radius: 3px; background: linear-gradient(var(--violet), var(--violet)) left / var(--w, 0) 100% no-repeat, var(--track); }
.scr-rev-bar em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted-2); flex: none; }

/* ---------- Écrans Trésorerie et Documents ---------- */

.badge-project { background: #F3EEFF; color: var(--violet-dark); font-weight: 500; }
.scr-kpis b.violet { color: var(--violet); }

/* Trésorerie : chèques */
.scr-chq-kpi { display: flex; align-items: flex-start; gap: 12px; }
.scr-chq-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lavender); color: var(--violet); }
.scr-chq-body { min-width: 0; }
.scr-chq-body small { display: block; color: var(--muted); margin-bottom: 2px; }
.scr-chq-body > b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: -.01em; color: var(--navy); }
.scr-chq-split { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.scr-chq-split em { font-style: normal; font-size: 11px; display: flex; justify-content: space-between; gap: 8px; }
.scr-chq-split i { font-style: normal; font-weight: 600; }
.scr-chq { padding: 18px 20px; }
.scr-chq-head, .scr-chq-row { display: grid; grid-template-columns: 64px 80px 96px minmax(120px, 1.5fr) minmax(104px, 1fr) 128px 88px; gap: 12px; align-items: center; white-space: nowrap; }
.scr-chq-head { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.scr-chq-row { padding: 11px 0; border-bottom: 1px solid var(--line-3); }
.scr-chq-row:last-child { border-bottom: 0; }
.scr-chq-row .muted { color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; }
.scr-chq-head .r, .scr-chq-row .r { text-align: right; }
.scr-payee { color: var(--violet); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }

/* Trésorerie : fiche d'un chèque */
.scr-chqd { padding: 20px 22px; display: flex; flex-direction: column; gap: 18px; }
.scr-chqd-amount { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.scr-chqd-amount small { display: block; color: var(--muted); font-size: 12px; }
.scr-chqd-amount b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 30px; letter-spacing: -.02em; color: var(--green); margin-top: 4px; }
.scr-chqd-amount b span { font-size: 14px; font-family: var(--font-body); color: var(--muted); }
.scr-chqd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; }
.scr-chqd-grid > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line-3); }
.scr-chqd-grid dt { color: var(--muted); }
.scr-chqd-grid dd { margin: 0; color: var(--ink); text-align: right; }
.scr-chqd-grid dd b { font-weight: 600; color: var(--navy); }
.scr-chqd-link { display: flex; align-items: center; gap: 12px; padding: 14px 18px; }
.scr-chqd-linkicon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: var(--lavender); color: var(--violet); }
.scr-chqd-linkbody { flex: 1; min-width: 0; }
.scr-chqd-linkbody small { display: block; color: var(--muted); font-size: 11px; }
.scr-chqd-linkbody b { display: block; font-weight: 600; color: var(--navy); }
.scr-chqd-note { font-size: 12px; }

/* Trésorerie : carnet de chèques */
.scr-book { padding: 18px 20px; }
.scr-book-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.scr-book-cell { display: flex; align-items: center; justify-content: center; height: 38px; border-radius: 6px; font-weight: 600; font-size: 12px; font-variant-numeric: tabular-nums; }
.scr-book-cell.is-free { background: var(--green-bg); color: var(--green-dark); }
.scr-book-cell.is-used { background: var(--blue-bg); color: var(--blue); }
.scr-book-cell.is-void { background: var(--red-bg); color: var(--red); }
.scr-legend-book i { width: 12px; height: 12px; border-radius: 3px; margin-left: 14px; }
.scr-legend-book i:first-child { margin-left: 0; }
.scr-legend-book .b-free { background: var(--green-bg-2); }
.scr-legend-book .b-used { background: var(--blue-bg); }
.scr-legend-book .b-void { background: var(--red-bg); }

/* Trésorerie : paiement par lots */
.scr-batch-form { padding: 18px 20px; }
.scr-batch-form .scr-emp-list dd small { display: block; color: var(--muted); font-size: 11px; }
.scr-batch-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-3); }
.scr-batch-chips small { color: var(--muted); font-size: 12px; margin-right: 2px; }
.scr-chip-doc { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 11px; border-radius: 14px; background: var(--lavender); color: var(--violet-dark); font-weight: 600; font-size: 12px; }
.scr-chip-doc i { font-style: normal; font-weight: 500; color: var(--violet); }
.scr-batch { padding: 18px 20px; }
.scr-batch-head, .scr-batch-row { display: grid; grid-template-columns: minmax(120px, 1.4fr) 76px minmax(104px, 1fr) minmax(120px, 1fr); gap: 12px; align-items: center; white-space: nowrap; }
.scr-batch-head { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.scr-batch-row { padding: 11px 0; border-bottom: 1px solid var(--line-3); }
.scr-batch-row.is-total { border-top: 1px solid var(--navy); border-bottom: 0; color: var(--navy); padding-top: 12px; }
.scr-batch-head .r, .scr-batch-row .r { text-align: right; }
.scr-batch-row .muted { color: var(--muted-2); }
.scr-batch-row .strong { font-weight: 600; color: var(--navy); }
.scr-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted-2); }
.scr-toggle i { width: 30px; height: 17px; border-radius: 9px; background: var(--violet); position: relative; flex: none; }
.scr-toggle i::after { content: ""; position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.scr-batch-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Trésorerie : résultat */
.scr-bars i.rec { background: var(--green); }
.scr-bars i.dep { background: var(--red-bg); }
.scr-legend .l-rec { background: var(--green); }
.scr-legend .l-dep { background: var(--red-bg); }
.scr-accounts { padding: 18px 20px; }
.scr-accounts-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.scr-account { display: block; padding: 12px 14px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.scr-account small { display: block; color: var(--muted); font-size: 11px; }
.scr-account b { display: block; font-weight: 600; color: var(--navy); margin: 2px 0 4px; }
.scr-account em { font-style: normal; font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: var(--navy); }
.scr-account em i { font-style: normal; font-size: 11px; font-family: var(--font-body); color: var(--muted); font-weight: 500; }

/* Bloc latéral : ~480 px utiles, on garde l'essentiel de chaque tableau. */
.product-block-b .scr-chq-head, .product-block-b .scr-chq-row { grid-template-columns: 72px minmax(0, 1fr) minmax(96px, auto) 84px; }
.product-block-b .scr-chq-head > span:nth-child(1), .product-block-b .scr-chq-head > span:nth-child(3), .product-block-b .scr-chq-head > span:nth-child(6),
.product-block-b .scr-chq-row > span:nth-child(1), .product-block-b .scr-chq-row > span:nth-child(3), .product-block-b .scr-chq-row > span:nth-child(6) { display: none; }
.product-block-b .scr-chqd-grid { grid-template-columns: 1fr; gap: 0 0; }
.product-block-b .scr-book-grid { grid-template-columns: repeat(6, 1fr); gap: 6px; }
.product-block-b .scr-book-cell { height: 32px; font-size: 11px; }
.product-block-b .scr-batch-head, .product-block-b .scr-batch-row { grid-template-columns: minmax(0, 1fr) minmax(104px, auto); }
.product-block-b .scr-batch-head > span:nth-child(2), .product-block-b .scr-batch-head > span:nth-child(3),
.product-block-b .scr-batch-row > span:nth-child(2), .product-block-b .scr-batch-row > span:nth-child(3) { display: none; }
.product-block-b .scr-accounts-row { grid-template-columns: 1fr; }
.product-block-b .scr-lib-head, .product-block-b .scr-lib-row { grid-template-columns: 22px minmax(0, 1fr) 96px 88px; }
.product-block-b .scr-lib-head > span:nth-child(2), .product-block-b .scr-lib-head > span:nth-child(4), .product-block-b .scr-lib-head > span:nth-child(5), .product-block-b .scr-lib-head > span:nth-child(6),
.product-block-b .scr-lib-row > span:nth-child(2), .product-block-b .scr-lib-row > span:nth-child(4), .product-block-b .scr-lib-row > span:nth-child(5), .product-block-b .scr-lib-row > span:nth-child(6) { display: none; }

/* Documents : bibliothèque */
.scr-lib { padding: 18px 20px; }
.scr-lib-head, .scr-lib-row { display: grid; grid-template-columns: 22px 108px 128px 56px minmax(120px, 1.3fr) minmax(120px, 1fr) 104px 92px; gap: 12px; align-items: center; white-space: nowrap; }
.scr-lib-head { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.scr-lib-row { padding: 10px 0; border-bottom: 1px solid var(--line-3); }
.scr-lib-row:last-child { border-bottom: 0; }
.scr-lib-row .muted { color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; }
.scr-lib-row .strong { font-weight: 600; color: var(--navy); }
.scr-lib-row .who { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.scr-lib-head .r, .scr-lib-row .r { text-align: right; }
.scr-lib-row .badge-project { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.scr-check { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 4px; border: 1px solid var(--line-2); color: transparent; flex: none; }
.scr-check.is-on { background: var(--violet); border-color: var(--violet); color: #fff; }

/* ---------- Page Tarifs : les dix modules ---------- */
.modules-grid-section { padding-top: var(--section); }
.modules-grid-section .block-head { margin-bottom: 48px; }
.modules-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gutter); }
.module-card { display: flex; flex-direction: column; align-items: flex-start; height: 100%; padding: 22px 20px; border: 1px solid var(--grey); border-radius: var(--radius-lg); transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.module-card:hover { border-color: var(--violet); transform: translateY(-2px); box-shadow: var(--shadow-card); color: inherit; }
.module-card .flow-icon { width: 36px; height: 36px; margin-bottom: 16px; }
.module-card b { font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: var(--navy); }
.module-card small { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--text); }
.module-card .module-pack { display: inline-block; margin-top: auto; padding-top: 14px; font-size: 12px; font-weight: 600; color: var(--violet); }

/* ---------- Écrans Rapports et Catalogue ---------- */

.scr-tile.is-navy { background: var(--navy); color: #fff; }
.scr-tile.is-navy small { color: rgba(255, 255, 255, .72); }

/* Rapports : chiffre d'affaires */
.scr-bars-12 { grid-template-columns: repeat(12, 1fr); gap: 10px; }
.scr-bars-12 i { width: 11px; }
.scr-bars-12 > span { gap: 3px; }
.scr-axis-12 { grid-template-columns: repeat(12, 1fr); }
.scr-top5 { padding: 18px 20px; }
.scr-top5-head, .scr-top5-row { display: grid; grid-template-columns: minmax(130px, 1.8fr) minmax(104px, 1fr) 84px 96px; gap: 12px; align-items: center; white-space: nowrap; }
.scr-top5-head { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.scr-top5-row { padding: 11px 0; border-bottom: 1px solid var(--line-3); }
.scr-top5-row:last-child { border-bottom: 0; }
.scr-top5-row .who { min-width: 0; }
.scr-top5-row .who b { display: block; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.scr-top5-head .r, .scr-top5-row .r { text-align: right; }
.scr-top5-row .muted { color: var(--muted-2); }
.scr-top5-row .strong { font-weight: 600; color: var(--navy); }

/* Rapports : marge par famille */
.scr-marg { padding: 18px 20px; }
.scr-marg-head, .scr-marg-row { display: grid; grid-template-columns: minmax(120px, 1.4fr) minmax(96px, 1fr) minmax(96px, 1fr) minmax(96px, 1fr) 132px; gap: 12px; align-items: center; white-space: nowrap; }
.scr-marg-head { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.scr-marg-row { padding: 11px 0; border-bottom: 1px solid var(--line-3); }
.scr-marg-row.is-total { border-top: 1px solid var(--navy); border-bottom: 0; font-weight: 600; color: var(--navy); padding-top: 12px; }
.scr-marg-row .who { min-width: 0; }
.scr-marg-row .who b { display: block; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.scr-marg-head .r, .scr-marg-row .r { text-align: right; }
.scr-marg-row .muted { color: var(--muted-2); }
.scr-marg-row .strong { font-weight: 600; color: var(--navy); }
.scr-marg-bar { display: flex; align-items: center; gap: 8px; }
.scr-marg-bar > i { display: block; flex: 1; height: 6px; border-radius: 3px; background: linear-gradient(var(--violet), var(--violet)) left / var(--w, 0) 100% no-repeat, #EFEFF4; }
.scr-marg-bar em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted-2); flex: none; }
.scr-export { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; }
.scr-export-body b { display: block; font-weight: 600; color: var(--navy); }
.scr-export-body small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.scr-export-chips { display: inline-flex; gap: 8px; }

/* Catalogue : liste des articles */
.scr-cat { padding: 18px 20px; }
.scr-cat-head, .scr-cat-row { display: grid; grid-template-columns: 116px minmax(140px, 1.7fr) minmax(112px, 1fr) 70px 88px 92px 96px; gap: 12px; align-items: center; white-space: nowrap; }
.scr-cat-head { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.scr-cat-row { padding: 11px 0; border-bottom: 1px solid var(--line-3); }
.scr-cat-row:last-child { border-bottom: 0; }
.scr-cat-row .who { min-width: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.scr-cat-row .strong { font-weight: 600; color: var(--navy); }
.scr-cat-head .r, .scr-cat-row .r { text-align: right; }
.scr-cat-row .muted { color: var(--muted-2); }
.scr-cat-row .badge-project { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }

/* Bloc latéral : ~480 px utiles. */
.product-block-b .scr-top5-head, .product-block-b .scr-top5-row { grid-template-columns: minmax(0, 1fr) minmax(96px, auto) 84px; }
.product-block-b .scr-top5-head > span:nth-child(3), .product-block-b .scr-top5-row > span:nth-child(3) { display: none; }
.product-block-b .scr-marg-head, .product-block-b .scr-marg-row { grid-template-columns: minmax(0, 1fr) minmax(96px, auto) 116px; }
.product-block-b .scr-marg-head > span:nth-child(2), .product-block-b .scr-marg-head > span:nth-child(3),
.product-block-b .scr-marg-row > span:nth-child(2), .product-block-b .scr-marg-row > span:nth-child(3) { display: none; }
.product-block-b .scr-cat-head, .product-block-b .scr-cat-row { grid-template-columns: minmax(0, 1fr) 88px 88px; }
.product-block-b .scr-cat-head > span:nth-child(1), .product-block-b .scr-cat-head > span:nth-child(3), .product-block-b .scr-cat-head > span:nth-child(4), .product-block-b .scr-cat-head > span:nth-child(5),
.product-block-b .scr-cat-row > span:nth-child(1), .product-block-b .scr-cat-row > span:nth-child(3), .product-block-b .scr-cat-row > span:nth-child(4), .product-block-b .scr-cat-row > span:nth-child(5) { display: none; }
.product-block-b .scr-art-split { grid-template-columns: minmax(0, 1fr); }
.product-block-b .scr-bars-12 { gap: 5px; }
.product-block-b .scr-bars-12 i { width: 7px; }

/* Catalogue : fiche article */
.scr-art-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.scr-art-id, .scr-art-price { padding: 18px 20px; }
.scr-art-name { display: block; font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: -.01em; color: var(--navy); margin-bottom: 12px; }
.scr-barcode { display: flex; align-items: flex-end; gap: 2px; height: 46px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-3); }
.scr-barcode i { display: block; height: 100%; background: var(--navy); }
.scr-barcode i:nth-child(3n) { height: 78%; }
.scr-barcode-num { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.scr-art-stock { padding: 18px 20px; }
.scr-art-stock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.scr-art-depot { display: block; padding: 12px 14px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.scr-art-depot small { display: block; color: var(--muted); font-size: 11px; }
.scr-art-depot b { display: block; font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--navy); margin-top: 3px; }
.scr-art-supplier { font-size: 12px; }
.scr-art-supplier b { color: var(--navy); }

@media (max-width: 1024px) {
  .modules-grid { grid-template-columns: repeat(3, 1fr); }
  .included-inner h2 { grid-column: 1 / span 12; }
  .included-list { grid-column: 1 / span 12; }
  .flows-grid { grid-template-columns: 1fr 1fr; }
  .flows-grid-all { grid-template-columns: 1fr 1fr; }
  .scr-share-body { grid-template-columns: 1fr; }
  .scr-emp-cards { grid-template-columns: 1fr 1fr; }
  .scr-emp-id { grid-column: 1 / -1; flex-direction: row; text-align: left; gap: 16px; }
  .scr-emp-id .scr-emp-avatar { margin-bottom: 0; }
  .scr-emp-actions { justify-content: flex-start; margin-top: 8px; }
}

@media (max-width: 900px) {
  /* Avant / après : une colonne, l'« avant » barré d'un filet, l'« avec » en avant. */
  .shift-head { display: none; }
  .shift-row { display: flex; flex-direction: column; gap: 12px; padding: 24px 0; }
  .shift-before, .shift-after { font-size: 16px; }
  .shift-after { font-size: 19px; }
  .product-module .block-head h3, .product-module .block-head-aside h3 { font-size: 26px; }
  .product-module .block-head-aside p { font-size: 17px; }
  .proof-single p { font-size: 26px; }
  .included-list li { font-size: 16px; }
  .more-grid { grid-template-columns: 1fr; column-gap: 0; }
  .more .block-head, .flows .block-head { margin-bottom: 32px; }
  .flows-grid, .flows-grid-all { grid-template-columns: 1fr; }
  .flow-card { padding: 24px; }
  .hero-module .hero-pack { margin-top: 20px; font-size: 13px; }

  /* Écrans : objectifs, clients, pipeline, conversion, partage */
  .scr-goal-list { gap: 16px; padding: 14px; }
  .scr-goal-foot { flex-direction: column; gap: 2px; }
  .scr-cl-head, .scr-cl-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .scr-cl-head > span:nth-child(2), .scr-cl-head > span:nth-child(4), .scr-cl-head > span:nth-child(5),
  .scr-cl-row > span:nth-child(2), .scr-cl-row > span:nth-child(4), .scr-cl-row > span:nth-child(5) { display: none; }
  .screen-pipeline .scr-btn:not(.is-primary) { display: none; }
  .screen-pipeline .scr-kpis .scr-card:nth-child(3), .screen-pipeline .scr-kpis .scr-card:nth-child(4) { display: none; }
  .scr-pl-head, .scr-pl-row { grid-template-columns: minmax(0, 1fr) auto 92px; gap: 10px; padding: 9px 14px; }
  .scr-pl-head > span:nth-child(1), .scr-pl-head > span:nth-child(3), .scr-pl-head > span:nth-child(6),
  .scr-pl-row > span:nth-child(1), .scr-pl-row > span:nth-child(3), .scr-pl-row > span:nth-child(6) { display: none; }
  .scr-chain { flex-direction: column; gap: 6px; }
  .scr-chain-link { justify-content: center; transform: rotate(90deg); }
  .screen-convert .scr-btn:not(.is-primary) { display: none; }
  .scr-share-body { gap: 12px; }
  .scr-share-list > div { grid-template-columns: 1fr; gap: 2px; }
  .scr-share-list dd { overflow-wrap: anywhere; }
  .scr-chat { padding: 10px; }
  .scr-bubble { padding: 9px 10px; }
  .scr-bubble p, .scr-bubble-link { overflow-wrap: anywhere; }
  .scr-share-form, .scr-share-preview { padding: 14px; }
  .screen-share .scr-actions .scr-btn:not(.is-green) { display: none; }

  /* Stock : entrepôt — article, quantité, seuil */
  .scr-stk { padding: 14px; }
  .scr-stk-head, .scr-stk-row { grid-template-columns: minmax(0, 1fr) 76px 84px; gap: 10px; }
  .scr-stk-head > span:nth-child(2), .scr-stk-head > span:nth-child(4),
  .scr-stk-row > span:nth-child(2), .scr-stk-row > span:nth-child(4) { display: none; }
  .screen-stock .scr-top-right .scr-btn { display: none; }

  /* Stock : mouvements — article, type, quantité.
     On réaffiche d'abord tout : en pleine largeur, les colonnes masquées pour
     le bloc latéral ne doivent pas se cumuler avec celles masquées ici. */
  .scr-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .scr-tile { padding: 11px 12px; }
  .scr-tile b { font-size: 16px; }
  .scr-mv { padding: 14px; }
  .product-block-b .scr-mv-head > span, .product-block-b .scr-mv-row > span,
  .product-block-b .scr-inv-head > span, .product-block-b .scr-inv-row > span,
  .product-block-b .scr-nf-head > span, .product-block-b .scr-nf-row > span { display: block; }
  .scr-mv-head, .scr-mv-row, .product-block-b .scr-mv-head, .product-block-b .scr-mv-row { grid-template-columns: minmax(0, 1fr) 72px 66px; gap: 10px; }
  .scr-mv-head > span:nth-child(1), .scr-mv-head > span:nth-child(3), .scr-mv-head > span:nth-child(6),
  .scr-mv-row > span:nth-child(1), .scr-mv-row > span:nth-child(3), .scr-mv-row > span:nth-child(6),
  .product-block-b .scr-mv-head > span:nth-child(1), .product-block-b .scr-mv-head > span:nth-child(3), .product-block-b .scr-mv-head > span:nth-child(6),
  .product-block-b .scr-mv-row > span:nth-child(1), .product-block-b .scr-mv-row > span:nth-child(3), .product-block-b .scr-mv-row > span:nth-child(6) { display: none; }

  /* Stock : bon d'entrée — reçu et total seulement */
  .scr-tiles-3 { grid-template-columns: 1fr; }
  .screen-receipt .scr-actions .scr-btn:not(.is-primary) { display: none; }
  .screen-receipt .scr-table th:nth-child(2), .screen-receipt .scr-table td:nth-child(2),
  .screen-receipt .scr-table th:nth-child(3), .screen-receipt .scr-table td:nth-child(3),
  .screen-receipt .scr-table th:nth-child(5), .screen-receipt .scr-table td:nth-child(5) { display: none; }

  /* Stock : inventaire — article, théorique, réel, écart */
  .scr-sum { gap: 8px 18px; padding: 12px 14px; }
  .scr-sum-note { display: none; }
  .scr-inv { padding: 14px; }
  .scr-inv-head, .scr-inv-row, .product-block-b .scr-inv-head, .product-block-b .scr-inv-row { grid-template-columns: minmax(0, 1fr) 62px 62px 52px; gap: 8px; }
  .scr-inv-head > span:nth-child(2), .scr-inv-row > span:nth-child(2),
  .product-block-b .scr-inv-head > span:nth-child(2), .product-block-b .scr-inv-row > span:nth-child(2) { display: none; }

  /* RH : paie — salarié, net à payer, statut */
  .scr-pay { padding: 14px; }
  .scr-pay-head, .scr-pay-row { grid-template-columns: minmax(0, 1fr) 96px 78px; gap: 10px; }
  .scr-pay-head > span:nth-child(2), .scr-pay-head > span:nth-child(3), .scr-pay-head > span:nth-child(4), .scr-pay-head > span:nth-child(5),
  .scr-pay-row > span:nth-child(2), .scr-pay-row > span:nth-child(3), .scr-pay-row > span:nth-child(4), .scr-pay-row > span:nth-child(5) { display: none; }
  .screen-payroll .scr-actions .scr-btn:not(.is-primary) { display: none; }
  .scr-recap { gap: 8px 20px; padding: 14px; }
  .scr-recap > b { width: 100%; margin-right: 0; }
  .scr-recap > span b { font-size: 14px; }

  /* RH : fiche salarié — une carte par ligne */
  .scr-emp-cards { grid-template-columns: 1fr; }
  .scr-emp-id { grid-column: auto; }
  .scr-att-row { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 14px; }
  .scr-att-row > span:nth-child(2) { display: none; }

  /* RH : notes de frais — salarié, montant, statut */
  .scr-nf-head, .scr-nf-row, .product-block-b .scr-nf-head, .product-block-b .scr-nf-row { grid-template-columns: minmax(0, 1fr) 84px 96px; gap: 10px; padding-left: 14px; padding-right: 14px; }
  .scr-nf-head > span:nth-child(1), .scr-nf-head > span:nth-child(3), .scr-nf-head > span:nth-child(4), .scr-nf-head > span:nth-child(5),
  .scr-nf-row > span:nth-child(1), .scr-nf-row > span:nth-child(3), .scr-nf-row > span:nth-child(4), .scr-nf-row > span:nth-child(5),
  .product-block-b .scr-nf-head > span:nth-child(1), .product-block-b .scr-nf-head > span:nth-child(3), .product-block-b .scr-nf-head > span:nth-child(4), .product-block-b .scr-nf-head > span:nth-child(5),
  .product-block-b .scr-nf-row > span:nth-child(1), .product-block-b .scr-nf-row > span:nth-child(3), .product-block-b .scr-nf-row > span:nth-child(4), .product-block-b .scr-nf-row > span:nth-child(5) { display: none; }
  .screen-expenses .scr-actions { display: none; }

  /* RH : assiduité — graphique plus bas, tableau réduit */
  .scr-as { padding: 14px; }
  .scr-stack { height: 120px; gap: 6px; padding: 0; }
  .scr-rate { height: 120px; inset: 0 0 1px; width: 100%; }
  .scr-as-head, .scr-as-row { grid-template-columns: minmax(0, 1fr) 64px 72px; gap: 10px; }
  .scr-as-head > span:nth-child(2), .scr-as-head > span:nth-child(3), .scr-as-head > span:nth-child(5),
  .scr-as-row > span:nth-child(2), .scr-as-row > span:nth-child(3), .scr-as-row > span:nth-child(5) { display: none; }
  .screen-attend .scr-top-right .scr-seg { display: none; }

  /* Achats & CRM : on réaffiche les colonnes masquées pour le bloc latéral
     avant d'appliquer le jeu mobile, sinon les deux se cumulent. */
  .product-block-b .scr-sup-head > span, .product-block-b .scr-sup-row > span,
  .product-block-b .scr-unp-head > span, .product-block-b .scr-unp-row > span,
  .product-block-b .scr-acc-head > span, .product-block-b .scr-acc-list-row > span,
  .product-block-b .scr-rev-head > span, .product-block-b .scr-rev-row > span { display: block; }

  /* Achats : circuit d'approbation empilé */
  .scr-circuit { padding: 14px; }
  .scr-circuit-steps { flex-direction: column; gap: 6px; }
  .scr-circuit-link { justify-content: center; transform: rotate(90deg); }
  .screen-approval .scr-actions .scr-btn:not(.is-primary) { display: none; }

  /* Achats : facture fournisseur */
  .scr-pay-split, .product-block-b .scr-pay-split { grid-template-columns: 1fr; gap: 12px; }
  .scr-doc-compact, .scr-payform { padding: 14px; }
  .screen-supplier .scr-actions .scr-btn:not(.is-primary) { display: none; }
  .screen-supplier .scr-steps { display: none; }

  /* Achats : rapport — fournisseur et total */
  .scr-area-wrap { height: 120px; }
  .scr-sup { padding: 14px; }
  .scr-sup-head, .scr-sup-row, .product-block-b .scr-sup-head, .product-block-b .scr-sup-row { grid-template-columns: 34px minmax(0, 1fr) 106px; gap: 10px; }
  .scr-sup-head > span:nth-child(3), .scr-sup-head > span:nth-child(5),
  .scr-sup-row > span:nth-child(3), .scr-sup-row > span:nth-child(5),
  .product-block-b .scr-sup-head > span:nth-child(3), .product-block-b .scr-sup-head > span:nth-child(5),
  .product-block-b .scr-sup-row > span:nth-child(3), .product-block-b .scr-sup-row > span:nth-child(5) { display: none; }

  /* Achats : impayés — fournisseur, urgence, total */
  .scr-unp { padding: 14px; }
  .scr-unp-head, .scr-unp-row, .product-block-b .scr-unp-head, .product-block-b .scr-unp-row { grid-template-columns: minmax(0, 1fr) 76px 104px; gap: 10px; }
  .scr-unp-head > span:nth-child(2), .scr-unp-row > span:nth-child(2),
  .product-block-b .scr-unp-head > span:nth-child(2), .product-block-b .scr-unp-row > span:nth-child(2) { display: none; }

  /* CRM : fiche de compte */
  .scr-acc-row { grid-template-columns: minmax(0, 1fr) 96px; gap: 10px; padding: 10px 14px; }
  .scr-acc-row > span:nth-child(2), .scr-acc-row > span:nth-child(3), .scr-acc-row > span:nth-child(4) { display: none; }
  .scr-subtabs { padding: 10px 14px 0; }

  /* CRM : liste des comptes — compte, type, encours */
  .scr-acc { padding: 14px; }
  .scr-acc-head, .scr-acc-list-row, .product-block-b .scr-acc-head, .product-block-b .scr-acc-list-row { grid-template-columns: minmax(0, 1fr) 86px 96px; gap: 10px; }
  .scr-acc-head > span:nth-child(3), .scr-acc-head > span:nth-child(4), .scr-acc-head > span:nth-child(5), .scr-acc-head > span:nth-child(6),
  .scr-acc-list-row > span:nth-child(3), .scr-acc-list-row > span:nth-child(4), .scr-acc-list-row > span:nth-child(5), .scr-acc-list-row > span:nth-child(6),
  .product-block-b .scr-acc-head > span:nth-child(3), .product-block-b .scr-acc-head > span:nth-child(4), .product-block-b .scr-acc-head > span:nth-child(5), .product-block-b .scr-acc-head > span:nth-child(6),
  .product-block-b .scr-acc-list-row > span:nth-child(3), .product-block-b .scr-acc-list-row > span:nth-child(4), .product-block-b .scr-acc-list-row > span:nth-child(5), .product-block-b .scr-acc-list-row > span:nth-child(6) { display: none; }
  .screen-accounts .scr-actions { display: none; }

  /* CRM : consultations — deux colonnes de kanban */
  .scr-kanban, .product-block-b .scr-kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

  /* CRM : CA par client — client, CA, part réglée */
  .scr-rev { padding: 14px; }
  .scr-rev-head, .scr-rev-row, .product-block-b .scr-rev-head, .product-block-b .scr-rev-row { grid-template-columns: minmax(0, 1fr) 100px 92px; gap: 10px; }
  .scr-rev-head > span:nth-child(3), .scr-rev-head > span:nth-child(4), .scr-rev-head > span:nth-child(5),
  .scr-rev-row > span:nth-child(3), .scr-rev-row > span:nth-child(4), .scr-rev-row > span:nth-child(5),
  .product-block-b .scr-rev-head > span:nth-child(3), .product-block-b .scr-rev-head > span:nth-child(4), .product-block-b .scr-rev-head > span:nth-child(5),
  .product-block-b .scr-rev-row > span:nth-child(3), .product-block-b .scr-rev-row > span:nth-child(4), .product-block-b .scr-rev-row > span:nth-child(5) { display: none; }
  .screen-revenue .scr-top-right .scr-btn { display: none; }

  /* Trésorerie & Documents : on réaffiche avant de masquer (les deux jeux de
     colonnes, bloc latéral et mobile, ne doivent pas se cumuler). */
  .product-block-b .scr-chq-head > span, .product-block-b .scr-chq-row > span,
  .product-block-b .scr-batch-head > span, .product-block-b .scr-batch-row > span,
  .product-block-b .scr-lib-head > span, .product-block-b .scr-lib-row > span { display: block; }

  /* Chèques : bénéficiaire, montant, statut */
  .scr-chq { padding: 14px; }
  .scr-chq-kpi { gap: 10px; }
  .scr-chq-icon { width: 28px; height: 28px; }
  .scr-chq-body > b { font-size: 17px; }
  .scr-chq-head, .scr-chq-row, .product-block-b .scr-chq-head, .product-block-b .scr-chq-row { grid-template-columns: minmax(0, 1fr) minmax(92px, auto) 80px; gap: 10px; }
  .scr-chq-head > span:nth-child(1), .scr-chq-head > span:nth-child(2), .scr-chq-head > span:nth-child(3), .scr-chq-head > span:nth-child(6),
  .scr-chq-row > span:nth-child(1), .scr-chq-row > span:nth-child(2), .scr-chq-row > span:nth-child(3), .scr-chq-row > span:nth-child(6),
  .product-block-b .scr-chq-head > span:nth-child(1), .product-block-b .scr-chq-head > span:nth-child(2), .product-block-b .scr-chq-head > span:nth-child(3), .product-block-b .scr-chq-head > span:nth-child(6),
  .product-block-b .scr-chq-row > span:nth-child(1), .product-block-b .scr-chq-row > span:nth-child(2), .product-block-b .scr-chq-row > span:nth-child(3), .product-block-b .scr-chq-row > span:nth-child(6) { display: none; }

  /* Fiche chèque : une colonne */
  .scr-chqd { padding: 14px; gap: 14px; }
  .scr-chqd-amount b { font-size: 24px; }
  .scr-chqd-grid, .product-block-b .scr-chqd-grid { grid-template-columns: 1fr; gap: 0; }
  .scr-chqd-link { padding: 12px 14px; }
  .scr-chqd-link .scr-btn { display: none; }

  /* Carnet : cases plus petites */
  .scr-book { padding: 14px; }
  .scr-book-grid, .product-block-b .scr-book-grid { grid-template-columns: repeat(6, 1fr); gap: 5px; }
  .scr-book-cell, .product-block-b .scr-book-cell { height: 30px; font-size: 11px; }
  .scr-legend-book { display: none; }

  /* Paiement par lots : référence et montant affecté */
  .scr-batch-form, .scr-batch { padding: 14px; }
  .scr-batch-head, .scr-batch-row, .product-block-b .scr-batch-head, .product-block-b .scr-batch-row { grid-template-columns: minmax(0, 1fr) minmax(104px, auto); gap: 10px; }
  .scr-batch-head > span:nth-child(2), .scr-batch-head > span:nth-child(3),
  .scr-batch-row > span:nth-child(2), .scr-batch-row > span:nth-child(3),
  .product-block-b .scr-batch-head > span:nth-child(2), .product-block-b .scr-batch-head > span:nth-child(3),
  .product-block-b .scr-batch-row > span:nth-child(2), .product-block-b .scr-batch-row > span:nth-child(3) { display: none; }
  .scr-batch-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .scr-batch-actions .scr-muted { display: none; }

  /* Résultat : comptes empilés */
  .scr-accounts { padding: 14px; }
  .scr-accounts-row, .product-block-b .scr-accounts-row { grid-template-columns: 1fr; gap: 8px; }
  .screen-cashreport .scr-top-right .scr-seg { display: none; }

  /* Documents : référence, montant, statut */
  .scr-lib { padding: 14px; }
  .scr-lib-head, .scr-lib-row, .product-block-b .scr-lib-head, .product-block-b .scr-lib-row { grid-template-columns: minmax(0, 1fr) 92px 86px; gap: 10px; }
  .scr-lib-head > span:nth-child(1), .scr-lib-head > span:nth-child(2), .scr-lib-head > span:nth-child(4), .scr-lib-head > span:nth-child(5), .scr-lib-head > span:nth-child(6),
  .scr-lib-row > span:nth-child(1), .scr-lib-row > span:nth-child(2), .scr-lib-row > span:nth-child(4), .scr-lib-row > span:nth-child(5), .scr-lib-row > span:nth-child(6),
  .product-block-b .scr-lib-head > span:nth-child(1), .product-block-b .scr-lib-head > span:nth-child(2), .product-block-b .scr-lib-head > span:nth-child(4), .product-block-b .scr-lib-head > span:nth-child(5), .product-block-b .scr-lib-head > span:nth-child(6),
  .product-block-b .scr-lib-row > span:nth-child(1), .product-block-b .scr-lib-row > span:nth-child(2), .product-block-b .scr-lib-row > span:nth-child(4), .product-block-b .scr-lib-row > span:nth-child(5), .product-block-b .scr-lib-row > span:nth-child(6) { display: none; }
  .modules-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .module-card { padding: 16px 14px; }
  .module-card small { font-size: 13px; }
  .screen-docs .scr-actions .scr-muted { display: none; }

  /* Rapports & Catalogue : réafficher avant de masquer. */
  .product-block-b .scr-top5-head > span, .product-block-b .scr-top5-row > span,
  .product-block-b .scr-marg-head > span, .product-block-b .scr-marg-row > span,
  .product-block-b .scr-cat-head > span, .product-block-b .scr-cat-row > span { display: block; }

  /* Rapports : CA — graphique resserré, top 5 en trois colonnes */
  .scr-bars-12, .product-block-b .scr-bars-12 { gap: 4px; }
  .scr-bars-12 i, .product-block-b .scr-bars-12 i { width: 6px; }
  .scr-bars-12 > span { gap: 2px; }
  .scr-axis-12 { font-size: 10px; }
  .scr-top5 { padding: 14px; }
  .scr-top5-head, .scr-top5-row, .product-block-b .scr-top5-head, .product-block-b .scr-top5-row { grid-template-columns: minmax(0, 1fr) 92px 78px; gap: 10px; }
  .scr-top5-head > span:nth-child(3), .scr-top5-row > span:nth-child(3),
  .product-block-b .scr-top5-head > span:nth-child(3), .product-block-b .scr-top5-row > span:nth-child(3) { display: none; }

  /* Rapports : marge — famille, marge, pourcentage */
  .scr-marg { padding: 14px; }
  .scr-marg-head, .scr-marg-row, .product-block-b .scr-marg-head, .product-block-b .scr-marg-row { grid-template-columns: minmax(0, 1fr) 92px 104px; gap: 10px; }
  .scr-marg-head > span:nth-child(2), .scr-marg-head > span:nth-child(3),
  .scr-marg-row > span:nth-child(2), .scr-marg-row > span:nth-child(3),
  .product-block-b .scr-marg-head > span:nth-child(2), .product-block-b .scr-marg-head > span:nth-child(3),
  .product-block-b .scr-marg-row > span:nth-child(2), .product-block-b .scr-marg-row > span:nth-child(3) { display: none; }
  .scr-export { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }

  /* Catalogue : désignation, prix de vente, stock */
  .scr-cat { padding: 14px; }
  .scr-cat-head, .scr-cat-row, .product-block-b .scr-cat-head, .product-block-b .scr-cat-row { grid-template-columns: minmax(0, 1fr) 84px 88px; gap: 10px; }
  .scr-cat-head > span:nth-child(1), .scr-cat-head > span:nth-child(3), .scr-cat-head > span:nth-child(4), .scr-cat-head > span:nth-child(5),
  .scr-cat-row > span:nth-child(1), .scr-cat-row > span:nth-child(3), .scr-cat-row > span:nth-child(4), .scr-cat-row > span:nth-child(5),
  .product-block-b .scr-cat-head > span:nth-child(1), .product-block-b .scr-cat-head > span:nth-child(3), .product-block-b .scr-cat-head > span:nth-child(4), .product-block-b .scr-cat-head > span:nth-child(5),
  .product-block-b .scr-cat-row > span:nth-child(1), .product-block-b .scr-cat-row > span:nth-child(3), .product-block-b .scr-cat-row > span:nth-child(4), .product-block-b .scr-cat-row > span:nth-child(5) { display: none; }
  .screen-catalog .scr-actions { display: none; }

  /* Catalogue : fiche article empilée */
  .scr-art-split, .product-block-b .scr-art-split { grid-template-columns: 1fr; gap: 12px; }
  .scr-art-id, .scr-art-price, .scr-art-stock { padding: 14px; }
  .scr-barcode { height: 38px; }
  .scr-art-stock-row, .product-block-b .scr-art-stock-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .scr-art-depot { padding: 10px; }
  .scr-art-depot b { font-size: 17px; }
}

/* ---------- Pages légales ---------- */
.legal { padding-bottom: var(--section); }
.legal-head h1 { font-size: 52px; max-width: 16ch; }
.legal-head .lead { margin-top: 20px; max-width: 56ch; font-size: 19px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px 40px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-2); font-size: 14px; }
.legal-meta > div { display: flex; gap: 8px; }
.legal-meta dt { color: var(--muted); }
.legal-meta dd { color: var(--navy); font-weight: 500; }
.legal-meta a:hover { color: var(--violet); }

.legal-body { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); padding-top: 72px; align-items: start; }
.legal-side { grid-column: 1 / span 3; position: sticky; top: 96px; max-height: calc(100vh - 128px); overflow-y: auto; display: flex; flex-direction: column; gap: 40px; padding-right: 8px; scrollbar-width: thin; }
.legal-side-title, .legal-toc-box summary { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.legal-toc-box summary { list-style: none; pointer-events: none; display: flex; justify-content: space-between; align-items: center; }
.legal-toc-box summary::-webkit-details-marker { display: none; }
.legal-toc ol { counter-reset: toc; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.legal-toc li { counter-increment: toc; }
.legal-toc a { display: grid; grid-template-columns: 24px 1fr; gap: 8px; padding: 7px 0 7px 12px; margin-left: -14px; font-size: 14px; line-height: 1.4; color: var(--muted-2); border-left: 2px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease); }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 12px; color: var(--muted-4); padding-top: 2px; transition: color .2s var(--ease); }
.legal-toc a:hover { color: var(--navy); }
.legal-toc a.is-active { color: var(--navy); font-weight: 500; border-left-color: var(--violet); }
.legal-toc a.is-active::before { color: var(--violet); }
.legal-docs ul { display: flex; flex-direction: column; }
.legal-docs a { display: block; padding: 6px 0; font-size: 14px; color: var(--muted-2); }
.legal-docs a:hover { color: var(--navy); }
.legal-docs a.is-active { color: var(--navy); font-weight: 600; }

.legal-main { grid-column: 5 / span 8; max-width: 760px; min-width: 0; }
.legal-summary { background: var(--cream); border-radius: var(--radius-lg); padding: 32px 36px; margin-bottom: 64px; }
.legal-summary-title { font-family: var(--font-body); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--violet); margin-bottom: 18px; }
.legal-summary ul { display: flex; flex-direction: column; gap: 12px; }
.legal-summary li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.55; color: var(--ink); }
.legal-summary .icon { color: var(--violet); margin-top: 5px; }

.legal-content { padding-top: 0; font-size: 17px; line-height: 1.7; counter-reset: legal; }
.legal-content > * + * { margin-top: 1.3em; }
.legal-content h2 { font-size: 28px; line-height: 1.2; margin-top: 2.4em; padding-top: 2.2em; border-top: 1px solid var(--line-2); scroll-margin-top: 88px; }
.legal-content > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-content h2::before { counter-increment: legal; content: counter(legal, decimal-leading-zero); display: block; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--violet); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.legal-content h2 + * { margin-top: 1em; }
.legal-content h3 { font-size: 19px; margin-top: 1.9em; }
.legal-content b, .legal-content strong { color: var(--navy); }
.legal-content ul { padding-left: 0; list-style: none; }
.legal-content ul li { position: relative; padding-left: 22px; }
.legal-content ul li::before { content: ""; position: absolute; left: 0; top: .74em; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
.legal-content li + li { margin-top: .6em; }
.legal-dl > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.legal-dl > div:last-child { border-bottom: 1px solid var(--line); }
.legal-dl dt { color: var(--muted); }
.legal-dl dd { color: var(--navy); font-weight: 500; }
.legal-dl a { text-decoration: none; color: var(--navy); }
.legal-dl a:hover { color: var(--violet); }
.legal-host { display: flex; align-items: center; gap: 20px; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 14px; background: #fff; }
.legal-host img { flex: none; width: 160px; height: auto; }
.legal-host p { margin: 0; font-size: 16px; line-height: 1.6; }
@media (max-width: 600px) { .legal-host { flex-direction: column; align-items: flex-start; gap: 14px; } }
.legal-content .wp-block-table { overflow-x: auto; }
/* Le bloc Tableau de WordPress injecte ses propres bordures : on garde des filets fins. */
.entry-content .wp-block-table table { border-collapse: collapse; width: 100%; }
.entry-content .wp-block-table thead { border-bottom: 0; }
.entry-content .wp-block-table th, .entry-content .wp-block-table td { border: 0; border-bottom: 1px solid var(--line); padding: 12px 16px 12px 0; }
.entry-content .wp-block-table thead th { border-bottom: 1px solid var(--navy); }
.legal-content table { font-size: 15.5px; min-width: 420px; }
.legal-content th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding-top: 0; }
.legal-content td { color: var(--ink); }
.legal-content td:first-child { color: var(--navy); font-weight: 500; }

.legal-foot { margin-top: 96px; display: flex; flex-direction: column; gap: 24px; }
.legal-foot-card { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px 32px; border: 1px solid var(--grey); border-radius: var(--radius-lg); }
.legal-foot-title { font-family: var(--font-head); font-weight: 600; font-size: 20px; letter-spacing: -.01em; color: var(--navy); }
.legal-foot-text { font-size: 14px; color: var(--muted); margin-top: 4px; }
.legal-chips { display: none; }

@media (max-width: 1024px) {
  .legal-body { display: flex; flex-direction: column; align-items: stretch; gap: 40px; padding-top: 48px; }
  .legal-side { position: static; max-height: none; overflow: visible; gap: 0; padding-right: 0; }
  .legal-docs { display: none; }
  .legal-chips { display: flex; }
  .legal-toc-box { border: 1px solid var(--grey); border-radius: var(--radius-lg); padding: 0 20px; }
  .legal-toc-box summary { pointer-events: auto; cursor: pointer; margin: 0; padding: 16px 0; color: var(--navy); }
  .legal-toc-box summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: rotate(45deg); margin-top: -5px; transition: transform .25s, margin-top .25s; }
  .legal-toc-box[open] summary { border-bottom: 1px solid var(--line); }
  .legal-toc-box[open] summary::after { transform: rotate(-135deg); margin-top: 5px; }
  .legal-toc ol { padding: 12px 0 16px; }
  .legal-toc a { margin-left: 0; padding-left: 0; border-left: 0; }
  .legal-main { max-width: none; }
}

@media (max-width: 900px) {
  .legal-head h1 { font-size: 36px; }
  .legal-head .lead { font-size: 17px; }
  .legal-meta { gap: 6px 24px; margin-top: 28px; }
  .legal-summary { padding: 24px; margin-bottom: 48px; }
  .legal-summary li { font-size: 15px; }
  .legal-content { font-size: 16px; }
  .legal-content h2 { font-size: 24px; margin-top: 2.2em; padding-top: 2em; }
  .legal-dl > div { grid-template-columns: 1fr; gap: 2px; padding: 12px 0; }
  .legal-content table { font-size: 14.5px; }
  .legal-foot { margin-top: 64px; }
  .legal-foot-card { padding: 24px; }
  .legal-foot-card .btn { width: 100%; }
}

/* Impression : pas d'écrans décoratifs, pas de menu. */
@media print {
  .site-header, .site-footer, .screen, .hero-screen, .nav-mobile, .form, .cta-band, .proof, .legal-side, .legal-foot { display: none !important; }
  body { color: #000; }
  a::after { content: " (" attr(href) ")"; font-size: 12px; color: #555; }
}
