/* =========================================================
   NOVRIX — centre de pilotage financier
   Feuille de style unique
   ========================================================= */
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Sora"; src: url("fonts/sora.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  /* surfaces */
  --bg-0: #040916;          /* noir bleuté profond */
  --bg-1: #060D21;          /* fond principal */
  --bg-2: #0c1b40;          /* panneaux */
  --bg-3: #10285A;          /* panneaux surélevés */
  --glass: rgba(14, 32, 74, 0.55);
  --glass-strong: rgba(13, 30, 70, 0.9);
  --stroke: rgba(148, 178, 255, 0.14);
  --stroke-2: rgba(148, 178, 255, 0.24);
  /* texte */
  --text: #eef3fb;          /* blanc légèrement froid */
  --text-2: #b8c4dc;
  --text-3: #8a98b5;
  /* accents */
  --teal: #2ee6c5;
  --teal-2: #14b8a6;
  --teal-ink: #04201b;
  --violet: #8b5cf6;
  --violet-2: #a78bfa;
  --blue: #5b8cff;
  --blue-light: #2457D6;
  --amber: #fbbf24;
  --rose: #fb7185;
  --green: #4ade80;
  /* clair (aperçus produit) */
  --paper: #f6f8fc;
  --paper-2: #ffffff;
  --ink: #0d1526;
  --ink-2: #44506a;
  --line: #e3e8f2;
  /* formes */
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 11px;
  --font-head: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --topbar-h: 64px;
  --dock-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --container: 1240px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body { margin: 0; background: var(--bg-1); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; overflow-x: hidden; font-feature-settings: "cv11", "ss01"; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--teal); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--teal); color: var(--teal-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- fond technique ---------- */
.backdrop { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; background: linear-gradient(180deg, #060D21 0%, #040916 100%); }
.backdrop::before, .backdrop::after { content: ""; position: absolute; border-radius: 50%; will-change: transform; }
.backdrop::before { width: 1300px; height: 900px; left: 50%; top: -260px; margin-left: -520px; background: radial-gradient(closest-side, rgba(36, 87, 214, .34), rgba(16, 40, 90, .22) 55%, transparent); animation: nappe1 38s ease-in-out infinite alternate; }
.backdrop::after { width: 1100px; height: 900px; left: -420px; bottom: -420px; background: radial-gradient(closest-side, rgba(16, 40, 90, .85), rgba(139, 92, 246, .07) 60%, transparent); animation: nappe2 46s ease-in-out infinite alternate; }
@keyframes nappe1 { to { transform: translate3d(90px, 60px, 0) scale(1.08); } }
@keyframes nappe2 { to { transform: translate3d(140px, -70px, 0) scale(1.1); } }
.is-paused .backdrop::before, .is-paused .backdrop::after, .is-paused .core *, .is-paused .links path, .is-paused .wires path { animation-play-state: paused !important; }
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; z-index: -1; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .6s ease; background: radial-gradient(closest-side, rgba(36, 87, 214, .30), rgba(36, 87, 214, .10) 45%, transparent 72%); will-change: transform; }
.cursor-glow.is-on { opacity: 1; }

/* ---------- barre supérieure ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--topbar-h); display: flex; align-items: center; background: rgba(6, 13, 33, 0.74); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--stroke); }
.topbar__in { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; }
.brand:hover { color: var(--text); }
.topbar__right { display: flex; align-items: center; gap: 14px; }
.topbar__view { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.topbar__view b { color: var(--text-2); font-weight: 600; }

/* ---------- boutons ---------- */
.btn { --h: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 650; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s ease, border-color .2s ease, box-shadow .25s ease, color .2s ease; }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--teal); color: var(--teal-ink); box-shadow: 0 0 0 1px rgba(46, 230, 197, .4), 0 10px 30px -10px rgba(46, 230, 197, .55); }
.btn--primary:hover { background: #6af2da; color: var(--teal-ink); box-shadow: 0 0 0 1px rgba(46, 230, 197, .6), 0 14px 40px -10px rgba(46, 230, 197, .7); }
.btn--glass { background: rgba(255, 255, 255, 0.04); border-color: var(--stroke-2); color: var(--text); }
.btn--glass:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(148, 178, 255, .4); color: var(--text); }
.btn--sm { --h: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #1b2742; color: #fff; }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--light:hover { border-color: var(--ink); color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- statut des fonctions ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; white-space: nowrap; vertical-align: 1px; letter-spacing: 0; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status--disponible { background: rgba(74, 222, 128, .14); color: #86efac; }
.status--finalisation { background: rgba(251, 191, 36, .14); color: #fcd34d; }
.status--option { background: rgba(167, 139, 250, .16); color: #c4b5fd; }
.light .status--disponible { background: #dcfce7; color: #166534; }
.light .status--finalisation { background: #fef3c7; color: #92400e; }
.light .status--option { background: #ede9fe; color: #6d28d9; }

/* ---------- vues ---------- */
main { padding-top: var(--topbar-h); padding-bottom: calc(var(--dock-h) + 40px + var(--safe-b)); min-height: 100vh; }
.view { width: 100%; max-width: var(--container); margin: 0 auto; padding: 56px 24px 32px; }
.js .view[hidden] { display: none; }
.view.is-entering { animation: viewin .42s var(--ease); }
@keyframes viewin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.view__head { max-width: 760px; margin-bottom: 40px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 700; letter-spacing: -0.035em; }
.h2 { font-size: clamp(30px, 3.6vw, 46px); }
.lead { margin-top: 16px; font-size: 18px; color: var(--text-2); max-width: 680px; }
.muted { color: var(--text-3); font-size: 14px; }
.panel { background: var(--glass); border: 1px solid var(--stroke); border-radius: var(--r-lg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.next-view { margin-top: 48px; display: flex; justify-content: flex-end; }
.next-link { display: inline-flex; align-items: center; gap: 12px; padding: 14px 18px 14px 22px; border-radius: 14px; border: 1px solid var(--stroke); background: rgba(255,255,255,.02); color: var(--text); text-decoration: none; transition: border-color .2s ease, background-color .2s ease; }
.next-link small { display: block; color: var(--text-3); font-size: 12px; }
.next-link strong { font-family: var(--font-head); font-weight: 600; }
.next-link:hover { border-color: var(--stroke-2); background: rgba(255,255,255,.05); color: var(--text); }

/* =========================================================
   ACCUEIL
   ========================================================= */
.home { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 0.82fr); gap: 28px; align-items: center; min-height: calc(100vh - var(--topbar-h) - var(--dock-h) - 80px); padding-top: 24px; }
.home__copy .h1 { font-size: clamp(40px, 4.4vw, 62px); }
.home__copy .h1 span { display: block; background: linear-gradient(92deg, var(--teal), #9ff7e8 45%, var(--violet-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.home__sub { margin-top: 20px; font-size: 18px; color: var(--text-2); max-width: 470px; }
.home__actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.markers { margin-top: 30px; display: grid; gap: 10px; }
.markers li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--text-2); }
.markers li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--teal); box-shadow: 0 0 10px var(--teal); }

/* noyau */
.core { position: relative; aspect-ratio: 1; width: 100%; max-width: 470px; margin: 0 auto; display: grid; place-items: center; }
.core__rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.core__rings .ring-bg { fill: none; stroke: rgba(148, 178, 255, 0.10); }
.core__rings .arc { fill: none; stroke-linecap: round; }
.core__rings .node { transition: r .3s ease; }
.core__label { position: absolute; font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.core__label i { width: 8px; height: 8px; border-radius: 50%; }
.core__label--in { top: 3%; left: 50%; transform: translateX(-50%); color: var(--teal); }
.core__label--in i { background: var(--teal); }
.core__label--out { bottom: 9%; right: -2%; color: var(--violet-2); }
.core__label--out i { background: var(--violet); }
.core__label--bill { bottom: 9%; left: -2%; color: var(--blue); }
.core__label--bill i { background: var(--blue); }
.core__card { position: relative; width: 66%; padding: 16px 16px 12px; border-radius: 18px; background: var(--glass-strong); border: 1px solid var(--stroke-2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255,255,255,.06); }
.core__card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.core__card-label { font-size: 11.5px; color: var(--text-3); }
.core__card-value { font-family: var(--font-head); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; }
.core__card svg { width: 100%; height: auto; margin-top: 4px; }
.core__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.core__metrics div { background: rgba(255,255,255,.04); border: 1px solid var(--stroke); border-radius: 10px; padding: 7px 8px; }
.core__metrics b { display: block; font-size: 13.5px; font-weight: 700; }
.core__metrics span { font-size: 10.5px; color: var(--text-3); line-height: 1.3; display: block; }
.demo-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 650; color: #c4b5fd; background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .3); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.light .demo-tag { color: #6d28d9; background: #f3efff; border-color: #e4dbff; }

/* destinations */
.dest { display: grid; gap: 10px; }
.dest__title { font-size: 12px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.dest a { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; text-decoration: none; color: var(--text); background: var(--glass); border: 1px solid var(--stroke); transition: transform .25s var(--ease), border-color .25s ease, background-color .25s ease; overflow: hidden; }
.dest a::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 2px; border-radius: 2px; background: var(--c, var(--teal)); opacity: .0; transition: opacity .25s ease; }
.dest a:hover { transform: translateX(-4px); border-color: var(--stroke-2); background: var(--glass-strong); color: var(--text); }
.dest a:hover::before { opacity: 1; }
.dest__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--teal)) 14%, transparent); color: var(--c, var(--teal)); }
.dest__icon svg { width: 20px; height: 20px; }
.dest strong { display: block; font-family: var(--font-head); font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.dest small { display: block; font-size: 13px; color: var(--text-3); line-height: 1.35; }
.dest .chev { width: 18px; height: 18px; color: var(--text-3); transition: transform .25s var(--ease), color .2s; }
.dest a:hover .chev { transform: translateX(3px); color: var(--text); }

/* =========================================================
   LA SUITE
   ========================================================= */
.flux-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.flux-switch button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--stroke-2); background: rgba(255,255,255,.03); color: var(--text-2); font-weight: 600; font-size: 14.5px; transition: all .2s ease; }
.flux-switch button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.flux-switch button[aria-pressed="true"] { background: color-mix(in srgb, var(--c) 18%, transparent); border-color: var(--c); color: var(--text); }
.suite { display: grid; grid-template-columns: minmax(0, 1fr) 90px minmax(0, 0.9fr); gap: 0; align-items: stretch; }
.flows { display: grid; gap: 14px; }
.flow { padding: 20px 22px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--stroke); transition: opacity .3s ease, border-color .3s ease, transform .3s var(--ease); }
.flow h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.flow h3 i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 12px var(--c); }
.flow p { color: var(--text-3); font-size: 14px; margin-top: 4px; }
.flow ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.flow li { font-size: 13px; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--stroke); color: var(--text-2); }
.suite[data-active] .flow { opacity: .42; }
.suite[data-active="in"] .flow--in, .suite[data-active="out"] .flow--out, .suite[data-active="bill"] .flow--bill { opacity: 1; border-color: var(--c); transform: translateX(4px); }
.links { width: 100%; height: 100%; }
.links path { fill: none; stroke-width: 2; stroke-dasharray: 5 7; transition: opacity .3s ease, stroke-width .3s ease; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.suite[data-active] .links path { opacity: .2; }
.suite[data-active="in"] .links .l-in, .suite[data-active="out"] .links .l-out, .suite[data-active="bill"] .links .l-bill { opacity: 1; stroke-width: 3; }
.vision { padding: 24px; border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(46, 230, 197, .10), rgba(139, 92, 246, .08)), var(--glass-strong); border: 1px solid var(--stroke-2); display: flex; flex-direction: column; gap: 14px; }
.vision h3 { font-size: 22px; }
.vision__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.metric { padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid var(--stroke); transition: border-color .3s ease, background-color .3s ease, opacity .3s ease; }
.metric small { display: block; font-size: 12px; color: var(--text-3); }
.metric b { display: block; font-family: var(--font-head); font-size: 20px; font-weight: 700; margin-top: 2px; }
.vision[data-active] .metric { opacity: .45; }
.vision[data-active="in"] .metric[data-f~="in"], .vision[data-active="out"] .metric[data-f~="out"], .vision[data-active="bill"] .metric[data-f~="bill"] { opacity: 1; border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.vision__note { font-size: 14px; color: var(--text-2); min-height: 44px; }
.story { margin-top: 48px; }
.story h3 { font-size: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.story ol { margin-top: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; position: relative; }
.story li { position: relative; padding: 18px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--stroke); font-size: 15px; color: var(--text-2); counter-increment: s; }
.story li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--font-head); font-weight: 700; color: var(--teal); font-size: 14px; margin-bottom: 8px; }
.story li b { color: var(--text); font-weight: 600; }

/* =========================================================
   MODULES (explorateur)
   ========================================================= */
.explorer { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.mod-nav { display: grid; gap: 6px; position: sticky; top: calc(var(--topbar-h) + 20px); }
.mod-nav button { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid transparent; background: transparent; color: var(--text-2); font-weight: 600; font-size: 14.5px; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.mod-nav button span.n { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-family: var(--font-head); font-size: 13px; background: rgba(255,255,255,.05); border: 1px solid var(--stroke); }
.mod-nav button:hover { background: rgba(255,255,255,.04); color: var(--text); }
.mod-nav button[aria-selected="true"] { background: var(--glass-strong); border-color: var(--stroke-2); color: var(--text); }
.mod-nav button[aria-selected="true"] span.n { background: var(--teal); color: var(--teal-ink); border-color: var(--teal); }
.mod-stage { border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--stroke); padding: 28px; }
.mod-panel[hidden] { display: none; }
.mod-panel.is-entering { animation: viewin .4s var(--ease); }
.mod-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.mod-panel h3 { font-size: 26px; }
.benefit { margin-top: 10px; font-size: 19px; color: var(--teal); font-family: var(--font-head); font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; }
.feat { margin-top: 20px; display: grid; gap: 10px; }
.feat li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.feat li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 5px; background: rgba(46, 230, 197, .14); border: 1px solid rgba(46, 230, 197, .5); }
.mod-cta { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.mod-note { margin-top: 16px; font-size: 13.5px; color: var(--text-3); }
.demo-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; padding: 10px 14px; border-radius: 12px; border: 1px dashed rgba(167, 139, 250, .4); background: rgba(139, 92, 246, .06); font-size: 13.5px; color: var(--text-2); }
.demo-bar button { background: transparent; border: 1px solid var(--stroke-2); color: var(--text); border-radius: 9px; padding: 6px 12px; font-size: 13px; font-weight: 600; }
.demo-bar button:hover { border-color: var(--teal); }

/* aperçus clairs (produit) */
.light { background: var(--paper); color: var(--ink); border-radius: 18px; border: 1px solid #ffffff22; box-shadow: 0 30px 70px -35px rgba(0, 0, 0, .9); overflow: hidden; }
.app-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.app-bar strong { font-size: 13.5px; }
.app-body { padding: 14px; display: grid; gap: 10px; }
.light table { width: 100%; border-collapse: collapse; font-size: 13px; }
.light th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--ink-2); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.light td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.light tr:last-child td { border-bottom: 0; }
.light .r { text-align: right; }
.rowbtn { width: 100%; display: grid; align-items: center; gap: 10px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.rowbtn:hover { border-color: #b9c4da; }
.rowbtn[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.rowbtn .t { font-weight: 650; font-size: 13.5px; line-height: 1.3; }
.rowbtn .s { font-size: 12px; color: var(--ink-2); }
.rows-af .rowbtn { grid-template-columns: minmax(0, 1fr) auto auto; }
.amt { font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.pill { display: inline-flex; align-items: center; font-size: 11px; font-weight: 650; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.pill--rose { background: #ffe4e6; color: #9f1239; } .pill--amber { background: #fef3c7; color: #92400e; } .pill--violet { background: #ede9fe; color: #6d28d9; }
.pill--teal { background: #ccfbf1; color: #115e59; } .pill--grey { background: #eef2f7; color: #44506a; } .pill--blue { background: #dbeafe; color: #1e40af; }
.detail { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 10px; }
.detail h4 { font-family: var(--font-body); font-size: 14.5px; font-weight: 700; letter-spacing: 0; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kv div { background: var(--paper); border-radius: 9px; padding: 8px 10px; }
.kv small { display: block; font-size: 11px; color: var(--ink-2); }
.kv b { font-size: 14px; }
.weeks { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.weeks button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 0; font-size: 12px; font-weight: 650; color: var(--ink-2); }
.weeks button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.weeks button.low:not([aria-pressed="true"]) { color: #be123c; border-color: #fecdd3; }
.chart-tre { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 4px; }
.chart-tre svg { width: 100%; height: auto; }
.chart-tre .line { fill: none; stroke: #0f766e; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.js .chart-tre .line, .js .core .spark { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s cubic-bezier(.65, 0, .35, 1) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.steps-h { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.steps-h li { text-align: center; font-size: 11.5px; color: var(--ink-2); display: grid; gap: 6px; justify-items: center; }
.steps-h li::before { content: ""; width: 100%; height: 6px; border-radius: 6px; background: #e3e8f2; transition: background-color .4s ease; }
.steps-h li.done::before { background: #14b8a6; }
.steps-h li.current::before { background: linear-gradient(90deg, #14b8a6, #8b5cf6); }
.steps-h li.current { color: var(--ink); font-weight: 650; }
.budget { display: grid; gap: 6px; }
.budget .bar { height: 10px; background: #eef2f7; border-radius: 99px; overflow: hidden; }
.budget .bar span { display: block; height: 100%; border-radius: 99px; background: #14b8a6; transition: width .6s var(--ease), background-color .3s ease; }
.budget .row { display: flex; justify-content: space-between; font-size: 12.5px; }
.toast-demo { font-size: 12.5px; color: #6d28d9; background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: 9px; padding: 8px 10px; }
.toast-demo[hidden] { display: none; }

/* =========================================================
   DÉPLOIEMENT
   ========================================================= */
.deploy-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; position: relative; }
.deploy-steps::before { content: ""; position: absolute; left: 24px; right: 24px; top: 31px; height: 2px; background: linear-gradient(90deg, var(--teal), var(--violet)); opacity: .5; transform-origin: 0 50%; }
.js .view.is-entering .deploy-steps::before { animation: grow 1.2s cubic-bezier(.65, 0, .35, 1) .15s both; }
@keyframes grow { from { transform: scaleX(0); } }
.dstep { position: relative; padding: 0 4px; }
.dstep__n { position: relative; z-index: 1; width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 20px; background: var(--bg-2); border: 1px solid var(--stroke-2); color: var(--teal); box-shadow: 0 0 0 6px var(--bg-1); }
.dstep h3 { margin-top: 18px; font-size: 18px; }
.dstep p { margin-top: 6px; color: var(--text-3); font-size: 14.5px; }
.duration { margin-top: 28px; display: inline-flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--stroke); background: rgba(255,255,255,.02); color: var(--text-2); font-size: 15px; }
.duration b { font-family: var(--font-head); color: var(--text); }
.arch { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.arch__map { position: relative; aspect-ratio: 1.25; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--stroke); overflow: hidden; }
.arch__map svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.arch__map svg.wires path { fill: none; stroke: rgba(46, 230, 197, .45); stroke-width: 1.5; stroke-dasharray: 4 6; animation: flow 2s linear infinite; }
.node-box { position: absolute; transform: translate(-50%, -50%); padding: 10px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--stroke-2); font-size: 13.5px; font-weight: 600; text-align: center; white-space: nowrap; }
.node-box small { display: block; font-weight: 400; font-size: 11.5px; color: var(--text-3); }
.node-box--core { background: linear-gradient(160deg, rgba(46, 230, 197, .18), rgba(139, 92, 246, .18)), var(--bg-3); border-color: rgba(46, 230, 197, .5); padding: 14px 18px; display: grid; justify-items: center; gap: 4px; }
.node-box--core svg { width: 26px; height: 26px; }
.roles { display: grid; gap: 12px; }
.role { padding: 16px 18px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--stroke); }
.role h3 { font-size: 16.5px; }
.role p { color: var(--text-3); font-size: 14.5px; margin-top: 4px; }
.note-box { margin-top: 16px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(91, 140, 255, .08); border: 1px solid rgba(91, 140, 255, .3); color: var(--text-2); font-size: 14.5px; }
.note-box svg { flex: none; width: 20px; height: 20px; color: var(--blue); margin-top: 2px; }
.founder { margin-top: 32px; display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: var(--r-md); border: 1px solid var(--stroke); background: var(--glass); }
.founder[hidden] { display: none; }
.founder img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.legal-mark { margin-top: 32px; font-size: 12.5px; color: var(--text-3); }

/* =========================================================
   SIMULATEUR
   ========================================================= */
.sim { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 18px; }
.sim__in, .sim__out { padding: 26px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--stroke); }
.sim__in { display: grid; gap: 26px; align-content: start; }
.field { display: grid; gap: 8px; }
.field > label, .field > .label { font-weight: 600; font-size: 15px; }
.hint { font-size: 13px; color: var(--text-3); }
.money { position: relative; }
.money input { width: 100%; height: 56px; border-radius: 13px; border: 1px solid var(--stroke-2); background: rgba(0,0,0,.25); padding: 0 46px 0 16px; font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text); }
.money span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); font-weight: 600; }
.money input:focus, .stepper input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(46, 230, 197, .22); }
.days { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--stroke-2); border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.25); }
.stepper button { width: 40px; height: 44px; background: transparent; border: 0; font-size: 20px; color: var(--text); }
.stepper button:hover { background: rgba(255,255,255,.06); }
.stepper input { width: 52px; height: 44px; text-align: center; border: 0; border-left: 1px solid var(--stroke); border-right: 1px solid var(--stroke); background: transparent; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--teal) var(--p, 31%), rgba(255,255,255,.12) var(--p, 31%)); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--teal); box-shadow: 0 0 0 6px rgba(46, 230, 197, .16); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--teal); }
.sim__out { display: grid; gap: 18px; background: linear-gradient(160deg, rgba(46, 230, 197, .08), transparent 50%), var(--glass); }
.sim__label { color: var(--text-2); font-size: 14.5px; }
.sim__value { font-family: var(--font-head); font-weight: 700; font-size: clamp(42px, 5.6vw, 68px); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.sim__formula { font-size: 14px; color: var(--text-2); background: rgba(0,0,0,.25); border: 1px solid var(--stroke); border-radius: 11px; padding: 10px 12px; font-variant-numeric: tabular-nums; }
.compare { display: grid; gap: 8px; }
.compare__title { font-size: 13px; color: var(--text-3); }
.cbar { display: grid; grid-template-columns: 70px minmax(0, 1fr) 110px; gap: 10px; align-items: center; font-size: 13px; color: var(--text-2); }
.cbar .track { height: 10px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.cbar .fill { height: 100%; border-radius: 99px; background: rgba(148, 178, 255, .35); transition: width .45s var(--ease), background-color .3s ease; }
.cbar.on { color: var(--text); font-weight: 650; }
.cbar.on .fill { background: linear-gradient(90deg, var(--teal), var(--violet)); }
.cbar .v { text-align: right; font-variant-numeric: tabular-nums; }
.disclaimer { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #fde68a; }
.disclaimer svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }

/* =========================================================
   OFFRES
   ========================================================= */
.offer-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.offer-pick button { position: relative; text-align: left; padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--stroke); background: var(--glass); color: var(--text); display: grid; gap: 4px; transition: border-color .2s ease, background-color .2s ease, transform .2s var(--ease); }
.offer-pick button:hover { border-color: var(--stroke-2); }
.offer-pick button[aria-pressed="true"] { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 9%, var(--bg-2)); }
.offer-pick .name { font-family: var(--font-head); font-size: 22px; font-weight: 700; }
.offer-pick .price { font-size: 14.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.offer-pick .badge { position: absolute; top: -11px; right: 16px; font-size: 11.5px; font-weight: 700; color: var(--teal-ink); background: var(--teal); padding: 3px 10px; border-radius: 999px; }
.offer-detail { margin-top: 14px; padding: 26px; border-radius: var(--r-lg); background: var(--glass-strong); border: 1px solid var(--stroke-2); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px; }
.offer-detail[hidden] { display: none; }
.offer-detail.is-entering { animation: viewin .35s var(--ease); }
.offer-prices { display: grid; gap: 12px; align-content: start; }
.pbox { padding: 16px 18px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid var(--stroke); }
.pbox small { display: block; font-size: 12.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; font-weight: 650; }
.pbox b { display: block; font-family: var(--font-head); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.pbox b em { font-style: normal; font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--text-2); }
.incl { display: grid; gap: 16px; }
.incl h4 { font-family: var(--font-body); font-size: 12.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.incl ul { display: grid; gap: 8px; }
.incl li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.incl li svg { flex: none; width: 18px; height: 18px; color: var(--teal); margin-top: 3px; }
.cmp-wrap { margin-top: 36px; }
.cmp-wrap h3 { font-size: 20px; margin-bottom: 14px; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; border: 1px solid var(--stroke); border-radius: var(--r-md); overflow: hidden; background: var(--glass); }
.cmp th, .cmp td { padding: 12px 14px; border-bottom: 1px solid var(--stroke); text-align: left; }
.cmp thead th { font-family: var(--font-head); font-size: 15px; background: rgba(255,255,255,.03); }
.cmp tbody th { font-weight: 500; color: var(--text-2); }
.cmp td { color: var(--text); font-variant-numeric: tabular-nums; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp .col-pro { background: rgba(46, 230, 197, .06); }
.yes { color: var(--teal); font-weight: 700; }
.no { color: var(--text-3); }
.options { margin-top: 28px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.opt { padding: 14px 16px; border-radius: 14px; background: var(--glass); border: 1px solid var(--stroke); }
.opt small { display: block; color: var(--text-3); font-size: 13px; }
.opt b { display: block; margin-top: 2px; font-variant-numeric: tabular-nums; }
.fine { margin-top: 20px; display: grid; gap: 4px; font-size: 13.5px; color: var(--text-3); }

/* =========================================================
   DEMANDE DE DÉMO
   ========================================================= */
.contact { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 28px; align-items: start; }
.contact__aside { display: grid; gap: 18px; }
.ctx { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(46, 230, 197, .4); background: rgba(46, 230, 197, .07); font-size: 14.5px; color: var(--text-2); }
.ctx[hidden] { display: none; }
.ctx b { color: var(--text); }
.form { padding: 26px; border-radius: var(--r-lg); background: var(--paper-2); color: var(--ink); display: grid; gap: 16px; box-shadow: 0 30px 80px -40px rgba(0,0,0,.9); }
.form-pre { padding: 12px 14px; border-radius: 12px; background: #fff7e6; border: 1px solid #fde4b0; color: #7a4a00; font-size: 14px; display: grid; gap: 4px; }
.form-pre[hidden] { display: none; }
.form-pre a { color: #7a4a00; font-weight: 650; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form label { font-size: 14px; font-weight: 600; }
.form .req { color: #be123c; }
.form input, .form select, .form textarea { width: 100%; min-height: 46px; border-radius: 10px; border: 1px solid #c9d2e3; padding: 10px 13px; background: #fff; color: var(--ink); font-size: 15px; }
.form textarea { min-height: 104px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: #0f766e; box-shadow: 0 0 0 3px rgba(20, 184, 166, .22); }
.form [aria-invalid="true"] { border-color: #be123c; }
.err { color: #be123c; font-size: 13px; min-height: 0; }
.err:empty { display: none; }
.consent { font-size: 13px; color: var(--ink-2); }
.consent a { color: #0f766e; }
.fstatus { border-radius: 12px; padding: 12px 14px; font-size: 14.5px; display: grid; gap: 8px; }
.fstatus[hidden] { display: none; }
.fstatus--ok { background: #dcfce7; color: #14532d; }
.fstatus--err { background: #ffe4e6; color: #881337; }
.fstatus--info { background: #fef3c7; color: #78350f; }
.fstatus a.btn { justify-self: start; }

/* ---------- dock ---------- */
.dock { position: fixed; left: 50%; bottom: calc(16px + var(--safe-b)); transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 20px; background: rgba(8, 20, 50, 0.84); border: 1px solid var(--stroke-2); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.dock__ind { position: absolute; top: 6px; left: 0; height: calc(100% - 12px); width: 0; border-radius: 14px; background: rgba(46, 230, 197, .12); border: 1px solid rgba(46, 230, 197, .45); transition: transform .4s var(--ease), width .4s var(--ease); pointer-events: none; }
.dock a, .dock button { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 76px; height: 56px; padding: 0 10px; border-radius: 14px; color: var(--text-3); text-decoration: none; font-size: 12px; font-weight: 600; background: transparent; border: 0; transition: color .2s ease; }
.dock svg { width: 20px; height: 20px; }
.dock a:hover, .dock button:hover { color: var(--text); }
.dock a[aria-current="page"] { color: var(--text); }
.dock a[aria-current="page"] svg { color: var(--teal); }
.dock .more { display: none; }
.sheet { position: fixed; left: 12px; right: 12px; bottom: calc(var(--dock-h) + 24px + var(--safe-b)); z-index: 69; padding: 10px; border-radius: 18px; background: rgba(12, 19, 38, 0.96); border: 1px solid var(--stroke-2); display: grid; gap: 4px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.9); }
.sheet[hidden] { display: none; }
.sheet a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; color: var(--text); text-decoration: none; font-weight: 600; }
.sheet a:hover { background: rgba(255,255,255,.05); }
.sheet svg { width: 20px; height: 20px; color: var(--teal); }

/* ---------- pied de page ---------- */
.foot { max-width: var(--container); margin: 0 auto; padding: 28px 24px calc(var(--dock-h) + 48px + var(--safe-b)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text-3); border-top: 1px solid var(--stroke); }
.foot a { color: var(--text-2); }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
main + .foot { margin-top: -40px; }

/* ---------- pages légales ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: calc(var(--topbar-h) + 48px) 24px 64px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); }
.legal h2 { font-size: 21px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-2); margin-top: 8px; }
.legal ul { list-style: disc; padding-left: 22px; }
.todo { background: rgba(251, 191, 36, .18); color: #fcd34d; padding: 1px 6px; border-radius: 5px; font-weight: 600; }
.warn { margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35); color: #fde68a; }

/* ---------- animations ambiantes ---------- */
.js .core .arc { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); animation: arcin 1.4s cubic-bezier(.65, 0, .35, 1) forwards; }
.js .core .arc--2 { animation-delay: .15s; } .js .core .arc--3 { animation-delay: .3s; }
@keyframes arcin { to { stroke-dashoffset: 0; } }
.core .pulse { animation: pulse 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.core .pulse--2 { animation-delay: 1s; } .core .pulse--3 { animation-delay: 2s; }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.core .orbit { transform-origin: 50% 50%; animation: orbit 60s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
.js .home__copy > *, .js .core, .js .dest { animation: rise .7s var(--ease) both; }
.js .home__copy > :nth-child(2) { animation-delay: .05s; } .js .home__copy > :nth-child(3) { animation-delay: .1s; }
.js .home__copy > :nth-child(4) { animation-delay: .15s; } .js .home__copy > :nth-child(5) { animation-delay: .2s; }
.js .core { animation-delay: .1s; } .js .dest { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .home { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; }
  .dest { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dest__title { grid-column: 1 / -1; }
  .dest a:hover { transform: translateY(-3px); }
  .topbar__view { display: none; }
}
@media (max-width: 960px) {
  .suite { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .suite .links-col { display: none; }
  .story ol, .deploy-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deploy-steps::before { display: none; }
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .mod-nav { position: static; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .mod-grid, .sim, .offer-detail, .arch, .contact { grid-template-columns: minmax(0, 1fr); }
  .options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  :root { --topbar-h: 58px; --dock-h: 64px; }
  .view { padding: 32px 16px 24px; }
  .topbar__in { padding: 0 16px; }
  .topbar .btn { --h: 38px; padding: 0 12px; font-size: 13.5px; }
  .home { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 0; }
  .home__copy .h1 { font-size: 40px; }
  .home__sub { font-size: 17px; }
  .home__actions .btn { flex: 1 1 100%; }
  .core { max-width: 360px; }
  .core__card { width: 74%; padding: 12px; }
  .core__card-value { font-size: 22px; }
  .core__label { font-size: 10px; }
  .dest { grid-template-columns: minmax(0, 1fr); }
  .mod-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod-nav button { padding: 10px; font-size: 13.5px; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; }
  .mod-nav button span.n { width: 28px; height: 28px; }
  .mod-stage, .sim__in, .sim__out, .offer-detail, .form { padding: 18px; }
  .story ol, .deploy-steps, .options, .fgrid, .offer-pick { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmp-wrap { display: none; }
  .cbar { grid-template-columns: 56px minmax(0, 1fr) 92px; }
  .arch__map { aspect-ratio: .9; }
  .node-box { font-size: 12px; padding: 8px 10px; }
  .dock { left: 8px; right: 8px; transform: none; justify-content: space-between; border-radius: 18px; bottom: calc(8px + var(--safe-b)); }
  .dock a, .dock button { min-width: 0; flex: 1; height: 52px; font-size: 11px; padding: 0 2px; }
  .dock .d-suite, .dock .d-deploiement { display: none; }
  .dock .more { display: flex; }
  .foot { padding-bottom: calc(var(--dock-h) + 36px + var(--safe-b)); }
}
@media (hover: none) { .dest a:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .core .arc { stroke-dashoffset: 0; }
  .js .chart-tre .line, .js .core .spark { stroke-dashoffset: 0; }
}

/* --- ajustements du noyau --- */
.home__copy .h1 { font-size: clamp(38px, 3.7vw, 56px); }
.core__label--in { top: -5%; }
.core__card { width: 58%; padding: 14px 14px 10px; }
.core__card-value { font-size: 26px; }
.core__metrics { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.core__metrics div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 5px 9px; }
.core__metrics b { order: 2; font-size: 13px; }
.core__metrics span { font-size: 11.5px; }
@media (max-width: 720px) { .core__card { width: 64%; } .core__label--in { top: -7%; } }
.core__card-top { flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 720px) {
  .core__label--bill { left: 0; bottom: 4%; }
  .core__label--out { right: 0; bottom: 4%; }
  .core__card-label { font-size: 10.5px; }
}
[tabindex="-1"]:focus { outline: none; }

/* =========================================================
   Relances : aperçu des mails
   ========================================================= */
.mod-head { display: grid; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 13px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--stroke); color: var(--text-2); }
.tag { display: inline-block; font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tag--rose { background: rgba(251, 113, 133, .15); color: #fda4af; }
.tag--amber { background: rgba(251, 191, 36, .14); color: #fcd34d; }
.tag--violet { background: rgba(167, 139, 250, .18); color: #c4b5fd; }
.ctx-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.ctx-head h4 { font-size: 17px; }
.notice { padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; }
.notice--promise { background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .35); color: #fde68a; }
.notice--litige { background: rgba(139, 92, 246, .12); border: 1px solid rgba(167, 139, 250, .4); color: #ddd6fe; }
.inv-check { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; min-width: 0; }
.inv-check legend { padding: 0; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.inv-check label { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--stroke); border-radius: 10px; cursor: pointer; font-size: 13.5px; }
.inv-check label:has(input:checked) { border-color: rgba(46, 230, 197, .5); background: rgba(46, 230, 197, .06); }
.inv-check input { width: 18px; height: 18px; accent-color: var(--teal); margin: 0; }
.inv-check b { display: block; font-weight: 650; }
.inv-check small { display: block; color: var(--text-3); font-size: 12px; }
.inv-total { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.25); font-size: 13.5px; }
.inv-rule { font-size: 12.5px; color: var(--text-3); }
.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.levels button { text-align: left; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--stroke-2); background: rgba(255,255,255,.03); color: var(--text-2); transition: border-color .2s ease, background-color .2s ease; }
.levels button small { display: block; font-size: 11.5px; color: var(--text-3); }
.levels button b { display: block; font-size: 13.5px; font-weight: 650; color: var(--text); line-height: 1.3; }
.levels button[aria-pressed="true"] { border-color: var(--teal); background: rgba(46, 230, 197, .1); }
.levels button[aria-pressed="true"] small { color: var(--teal); }
.perso { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.perso > span { flex: 1 1 220px; }
.perso em { display: block; font-style: normal; color: var(--text-3); }
.switch { display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; border-radius: 999px; border: 1px solid var(--stroke-2); background: rgba(255,255,255,.03); color: var(--text); font-size: 13px; font-weight: 600; }
.switch__knob { position: relative; width: 34px; height: 20px; border-radius: 99px; background: rgba(255,255,255,.16); transition: background-color .2s ease; }
.switch__knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch[aria-checked="true"] .switch__knob { background: var(--teal-2); }
.switch[aria-checked="true"] .switch__knob::after { transform: translateX(14px); }
.switch:disabled { opacity: .5; cursor: not-allowed; }
.mailwin { background: var(--paper-2); color: var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -35px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08); }
.mailwin__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 9px 14px; background: #eef2f8; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #c9d2e3; }
.mailwin__fields { margin: 0; padding: 2px 14px 0; }
.mf { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.mf dt { color: var(--ink-2); }
.mf dd { margin: 0; overflow-wrap: anywhere; }
.mf dd.subj { font-weight: 700; font-size: 14.5px; }
.mailwin__body { padding: 16px 14px 8px; font-size: 15px; line-height: 1.6; display: grid; gap: 12px; min-height: 220px; align-content: start; }
.mailwin__body p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.mailwin__body.is-swapping { animation: swap .3s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mailwin table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mailwin th, .mailwin td { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.mailwin thead th { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.mailwin th:last-child, .mailwin td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mailwin tfoot th, .mailwin tfoot td { font-weight: 700; border-bottom: 0; background: var(--paper); }
mark.fld { background: transparent; color: inherit; border-radius: 4px; transition: background-color .25s ease, box-shadow .25s ease; }
.show-fields mark.fld { background: #d5fbf2; box-shadow: 0 0 0 1px #5eead4; padding: 0 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.mailwin__att { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 14px 14px; }
.att-label { font-size: 12px; color: var(--ink-2); }
.att { font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); }
.mailwin input, .mailwin textarea { width: 100%; border: 1px solid #c9d2e3; border-radius: 9px; padding: 9px 11px; font-size: 15px; line-height: 1.55; color: var(--ink); background: #fff; }
.mailwin textarea { min-height: 320px; resize: vertical; }
.mailwin input:focus, .mailwin textarea:focus { outline: none; border-color: #0f766e; box-shadow: 0 0 0 3px rgba(20, 184, 166, .22); }
.rl-empty { padding: 28px 18px; border-radius: 14px; border: 1px dashed var(--stroke-2); display: grid; gap: 12px; justify-items: start; color: var(--text-2); font-size: 15px; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.confirm-bar { padding: 12px 14px; border-radius: 12px; background: rgba(251, 191, 36, .1); border: 1px solid rgba(251, 191, 36, .4); display: grid; gap: 10px; font-size: 14px; color: #fde68a; }
.copy-status { font-size: 13.5px; color: #86efac; font-weight: 600; }
.copy-status:empty { display: none; }
.copy-fallback { display: grid; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.copy-fallback textarea { width: 100%; border-radius: 10px; border: 1px solid var(--stroke-2); background: rgba(0,0,0,.3); color: var(--text); padding: 10px; font-size: 14px; }
.studio__cta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 18px; border-top: 1px solid var(--stroke); background: linear-gradient(90deg, rgba(46, 230, 197, .07), rgba(139, 92, 246, .07)); }
.studio__cta strong { font-family: var(--font-head); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.studio__cta p { color: var(--text-2); font-size: 14.5px; margin-top: 2px; }
@media (min-width: 961px) { .explorer { grid-template-columns: 230px minmax(0, 1fr); } }
@media (max-width: 720px) {
  .levels { grid-template-columns: minmax(0, 1fr); }
  .studio__cta .btn { width: 100%; white-space: normal; text-align: center; min-height: 46px; height: auto; padding: 10px 14px; }
  .mail-actions .btn { flex: 1 1 100%; }
}
mark.fld[data-k="montant"], mark.fld[data-k="facture"] { white-space: nowrap; }
.mailwin td:first-child { white-space: nowrap; }

/* =========================================================
   Relances v2 : vue d'ensemble + préparation
   ========================================================= */
@media (min-width: 961px) {
  .explorer { grid-template-columns: minmax(0, 1fr); }
  .mod-nav { position: static; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mod-nav button { background: rgba(255,255,255,.03); border-color: var(--stroke); }
}
.money, .money-l { white-space: nowrap; font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.money { text-align: right; font-weight: 700; }
.rl { margin-top: 22px; border: 1px solid var(--stroke-2); border-radius: 18px; background: rgba(5, 8, 15, .5); overflow: hidden; }
.rl [hidden] { display: none !important; }
.rl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 10px 16px; font-size: 13px; color: var(--text-2); background: rgba(139, 92, 246, .09); border-bottom: 1px dashed rgba(167, 139, 250, .4); }
.rl-bar strong { color: var(--text); font-weight: 600; }
.rl-bar .btn { margin-left: auto; }
.rl-guide { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; padding: 12px 16px; background: rgba(46, 230, 197, .1); border-bottom: 1px solid rgba(46, 230, 197, .4); font-size: 14.5px; }
.rl-guide p { flex: 1 1 320px; }
.rl-steps, .rl-mini, .rl-mnav { display: none; }
.rl-over, .rl-prep { padding: 20px; display: grid; gap: 16px; }
.rl-h { font-size: 19px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rl-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rl-kpi { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--stroke); background: var(--glass); }
.rl-kpi small { display: block; font-size: 12.5px; color: var(--text-3); line-height: 1.3; }
.rl-kpi b { display: block; font-family: var(--font-head); font-size: 20px; font-weight: 700; margin-top: 4px; }
.rl-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.rl-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.rl-filters button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--stroke-2); background: rgba(255,255,255,.03); color: var(--text-2); font-weight: 600; font-size: 14px; }
.rl-filters button[aria-pressed="true"] { border-color: var(--teal); background: rgba(46, 230, 197, .12); color: var(--text); }
.rl-search { flex: 0 1 320px; }
.rl-search input { width: 100%; height: 42px; border-radius: 11px; border: 1px solid var(--stroke-2); background: rgba(0,0,0,.25); color: var(--text); padding: 0 14px; font-size: 15px; }
.rl-search input::placeholder { color: var(--text-3); }
.rl-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(46, 230, 197, .22); }
.rl-list { display: grid; gap: 6px; }
.rl-lhead, .rl-row { display: grid; grid-template-columns: minmax(0, 1.8fr) 70px 130px 130px 150px minmax(0, 1.2fr); gap: 16px; align-items: center; }
.rl-lhead { padding: 0 15px 2px; font-size: 12px; color: var(--text-3); }
.rl-lhead .r { text-align: right; }
.rl-row { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--stroke); background: rgba(255,255,255,.03); color: var(--text); text-align: left; font-size: 14px; transition: border-color .2s ease, background-color .2s ease; }
.rl-row:hover { border-color: var(--stroke-2); }
.rl-row[aria-pressed="true"] { border-color: var(--teal); background: rgba(46, 230, 197, .08); }
.rl-row .nm { min-width: 0; }
.rl-row .nm b { display: block; font-weight: 650; overflow-wrap: anywhere; line-height: 1.3; }
.rl-row .nm small { display: block; font-size: 12.5px; color: var(--text-3); overflow-wrap: anywhere; }
.rl-row i { display: none; font-style: normal; font-weight: 400; color: var(--text-3); }
.rl-row .act { color: var(--text-2); font-size: 13.5px; }
.tag--blue { background: rgba(91, 140, 255, .16); color: #a9c1ff; }
.rl-void { padding: 28px 18px; border: 1px dashed var(--stroke-2); border-radius: 14px; display: grid; gap: 12px; justify-items: start; color: var(--text-2); }
.rl-sum { border: 1px solid var(--stroke-2); border-radius: 14px; padding: 16px; background: var(--glass-strong); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.rl-sum:empty { display: none; }
.rl-sum-main { display: grid; gap: 12px; min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 18px; margin: 0; }
.facts dt { font-size: 12px; color: var(--text-3); }
.facts dd { margin: 0; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.facts dd.money-l { overflow-wrap: normal; }
.ctx-head h4 { overflow-wrap: anywhere; min-width: 0; }
.rl-prep-head { display: grid; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--stroke); }
.rl-prep-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.rl-prep-top .ctx-head { flex: 1 1 260px; justify-content: flex-start; gap: 10px; }
.rl-cols { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.rl-left, .rl-right { display: grid; gap: 14px; min-width: 0; align-content: start; }
.rl-card { border: 1px solid var(--stroke); border-radius: 14px; padding: 14px; background: var(--glass); display: grid; gap: 10px; min-width: 0; }
.rl-card h5 { margin: 0; font-family: var(--font-body); font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.sugg--teal { border-color: rgba(46, 230, 197, .45); background: rgba(46, 230, 197, .07); }
.sugg--amber { border-color: rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .08); }
.sugg strong { font-family: var(--font-head); font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.sugg p { font-size: 14px; color: var(--text-2); }
.sugg small { font-size: 12.5px; color: var(--text-3); }
.tl { display: grid; gap: 10px; }
.tl li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 12px; font-size: 13.5px; color: var(--text-2); --c: #8a98b5; }
.tl li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--c); }
.tl li span { display: block; font-size: 12px; color: var(--text-3); }
.tl--due { --c: var(--amber) !important; } .tl--relance { --c: var(--teal) !important; } .tl--promise { --c: var(--amber) !important; } .tl--litige { --c: var(--rose) !important; } .tl--ref { --c: var(--violet-2) !important; }
.inv-tools { display: flex; gap: 16px; }
.linkbtn { background: none; border: 0; padding: 8px 0; color: var(--teal); font-size: 13.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:disabled { opacity: .5; cursor: not-allowed; }
.invrow { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--stroke); border-radius: 10px; cursor: pointer; font-size: 13.5px; min-height: 48px; }
.invrow:has(input:checked) { border-color: rgba(46, 230, 197, .5); background: rgba(46, 230, 197, .06); }
.invrow:has(input:disabled) { opacity: .6; cursor: not-allowed; }
.invrow .tag { margin-top: 4px; }
.inv-totals { display: grid; gap: 4px; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.25); font-size: 13.5px; }
.inv-totals p { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; color: var(--text-2); }
.inv-totals p.on { color: var(--text); }
.levels--col { grid-template-columns: minmax(0, 1fr); }
.levels--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.levels button span { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 2px; line-height: 1.35; }
.levels button:disabled { opacity: .55; cursor: not-allowed; }
.rl-mailhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; font-size: 13.5px; color: var(--text-2); }
.rl-mailhead p { flex: 1 1 260px; overflow-wrap: anywhere; }
.state { font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.state--model { background: rgba(148, 178, 255, .14); color: var(--text-2); }
.state--dirty { background: rgba(251, 191, 36, .16); color: #fcd34d; }
.state--saved { background: rgba(46, 230, 197, .14); color: var(--teal); }
.to-name { display: block; font-weight: 600; }
.to-mail { display: block; font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
button.att { cursor: pointer; color: var(--ink); }
button.att:hover { border-color: #b9c4da; }
.mailwin tfoot th, .mailwin tfoot td { font-size: 14.5px; border-top: 2px solid var(--ink); }
.mailwin th, .mailwin td { padding: 9px 8px; }
.verify { border: 1px solid var(--stroke); border-radius: 14px; background: var(--glass); }
.verify summary { padding: 13px 14px; cursor: pointer; font-weight: 650; border-radius: 14px; }
.verify ul { display: grid; gap: 8px; padding: 2px 14px 12px; font-size: 13.5px; color: var(--text-2); }
.verify li { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 10px; align-items: start; }
.verify li b { color: var(--text); font-weight: 600; }
.ck { font-size: 11.5px; font-weight: 650; text-align: center; padding: 2px 6px; border-radius: 999px; }
.ck--ok { background: rgba(46, 230, 197, .14); color: var(--teal); } .ck--warn { background: rgba(251, 191, 36, .16); color: #fcd34d; } .ck--info { background: rgba(148, 178, 255, .14); color: var(--text-2); }
.rl-note { padding: 12px 20px; font-size: 13px; color: var(--text-3); border-top: 1px solid var(--stroke); }
.rl[data-guide="1"] #rl-list, .rl[data-guide="2"] #rl-left, .rl[data-guide="3"] #rl-mail { outline: 2px solid var(--teal); outline-offset: 5px; border-radius: 14px; }
@media (max-width: 1040px) {
  .rl-lhead { display: none; }
  .rl-row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
  .rl-row .nm { flex: 1 1 100%; }
  .rl-row i { display: inline; }
  .rl-row .c-nb, .rl-row .c-age { font-size: 13px; color: var(--text-2); }
  .rl-row .money { flex: 1 1 100%; text-align: left; font-size: 16px; }
  .rl-row .act { flex: 1 1 auto; }
  .rl-sum { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) { .rl-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) {
  .rl-over, .rl-prep { padding: 14px; }
  .rl-bar .btn { margin-left: 0; width: 100%; --h: 44px; }
  .rl-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 8px 10px; border-bottom: 1px solid var(--stroke); }
  .rl-steps button { min-height: 46px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-3); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }
  .rl-steps button small { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; background: rgba(255,255,255,.08); }
  .rl-steps button[aria-current="step"] { color: var(--text); border-color: rgba(46, 230, 197, .45); background: rgba(46, 230, 197, .1); }
  .rl-steps button[aria-current="step"] small { background: var(--teal); color: var(--teal-ink); }
  .rl-mini { display: block; padding: 8px 14px; font-size: 13px; font-weight: 600; background: rgba(0,0,0,.3); border-bottom: 1px solid var(--stroke); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
  .rl[data-pane="prep"] .rl-right, .rl[data-pane="mail"] .rl-left { display: none; }
  .rl-mnav { display: flex; gap: 8px; }
  .rl-mnav .btn { flex: 1; --h: 48px; padding: 0 10px; }
  .rl-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rl-search { flex: 1 1 100%; }
  .rl-filters button { min-height: 44px; }
  .rl-sum .btn, .rl-prep-top .btn { width: 100%; --h: 48px; }
  .rl-prep-top .btn { order: 2; }
  .invrow { grid-template-columns: 22px minmax(0, 1fr); }
  .invrow .money { grid-column: 2; text-align: left; font-size: 15px; }
  .invrow input { width: 22px; height: 22px; }
  .mail-actions .btn { --h: 46px; }
  .verify li { grid-template-columns: minmax(0, 1fr); gap: 4px; justify-items: start; }
  .mailwin table, .mailwin thead, .mailwin tbody, .mailwin tfoot, .mailwin tr { display: block; }
  .mailwin thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mailwin tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
  .mailwin tbody td { display: block; padding: 0; border: 0; text-align: left; }
  .mailwin tbody td:nth-child(1) { font-weight: 650; }
  .mailwin tbody td:nth-child(2) { grid-column: 1; grid-row: 2; font-size: 12.5px; color: var(--ink-2); }
  .mailwin tbody td:nth-child(2)::before { content: "Échéance : "; }
  .mailwin tbody td:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 650; }
  .mailwin tfoot tr { display: flex; justify-content: space-between; padding: 10px 8px; background: var(--paper); border-top: 2px solid var(--ink); }
  .mailwin tfoot th, .mailwin tfoot td { display: block; padding: 0; border: 0; background: none; }
}
@media (max-width: 720px) { .rl[data-pane="mail"] .rl-prep-head .facts { display: none; } .rl-prep-head { padding-bottom: 12px; } }


/* =========================================================
   v6 : profondeur bleue, lumière au pointeur, nouvelles démonstrations
   ========================================================= */
.home__more { margin-top: 14px; }
.home__more a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 15px; text-underline-offset: 4px; }
.home__more a:hover { color: var(--text); }
.home__more a:hover .arrow { transform: translateX(3px); }
.btn--primary:hover .arrow, .btn--glass:hover .arrow { transform: translateX(3px); }
.btn--glass:hover { border-color: rgba(148, 178, 255, .55); }
/* parallaxe légère du noyau */
.core { perspective: 1100px; }
.core::before { content: ""; position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(36, 87, 214, .30), transparent 70%); transform: translate3d(calc(var(--px, 0) * -26px), calc(var(--py, 0) * -26px), 0); pointer-events: none; }
.core__rings { transform: translate3d(calc(var(--px, 0) * -12px), calc(var(--py, 0) * -12px), 0); }
.core__card { transform: translate3d(calc(var(--px, 0) * 10px), calc(var(--py, 0) * 10px), 0) rotateY(calc(var(--px, 0) * 4deg)) rotateX(calc(var(--py, 0) * -4deg)); }
/* lumière locale sur les cartes de navigation et les offres */
.spot { position: relative; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s ease; background: radial-gradient(240px circle at var(--sx, 50%) var(--sy, 50%), rgba(36, 87, 214, .28), transparent 65%); }
.spot:hover::after, .spot:focus-visible::after { opacity: 1; }
.dest a:hover, .dest a:focus-visible, .offer-pick button:hover, .offer-pick button:focus-visible, .next-link:hover, .next-link:focus-visible { transform: translateY(-2px); border-color: rgba(120, 160, 255, .55); }
.dest a:focus-visible::before { opacity: 1; }
/* édition par blocs */
.blk { display: grid; gap: 4px; }
.blk__l { font-size: 12px; font-weight: 650; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.blk textarea { min-height: 0; }
.blk__note { font-size: 12.5px; color: var(--ink-2); }
.mailwin.is-editing table { opacity: .92; }
/* trésorerie : scénario */
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 11.5px; color: var(--ink-2); padding: 2px 4px 6px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 18px; height: 0; border-top: 3px solid #0f766e; display: inline-block; }
.lg--base { border-top: 2px dashed #94a3b8; } .lg--seuil { border-top: 2px dashed #f59e0b; }
.wf-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 10px; align-items: end; }
.wf-grid label, .askbox label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.light select, .light input[type="number"], .light input[type="text"] { width: 100%; height: 42px; border-radius: 9px; border: 1px solid #c9d2e3; background: #fff; color: var(--ink); padding: 0 10px; font-size: 14.5px; font-weight: 500; }
.light select:focus, .light input:focus { outline: none; border-color: #0f766e; box-shadow: 0 0 0 3px rgba(20, 184, 166, .22); }
.wf-info small { display: block; font-size: 11.5px; color: var(--ink-2); } .wf-info b { font-size: 14px; }
.hyp { font-size: 12px; color: var(--ink-2); padding: 0 2px; }
.light .btn[disabled] { opacity: .45; }
/* à facturer : message au responsable */
.memo { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: grid; }
.memo__h { padding: 8px 12px; background: var(--paper); font-size: 12.5px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.memo__b { padding: 12px; font-size: 14px; line-height: 1.55; white-space: pre-line; }
.memo .toast-demo { margin: 0 12px 12px; }
/* notes de frais */
.ticket { border: 1px dashed #b9c4da; border-radius: 10px; padding: 12px 14px; background: #fffdf6; font-size: 13px; display: grid; gap: 8px; }
.ticket__h { font-weight: 700; }
.ticket dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; }
.ticket dt { color: var(--ink-2); } .ticket dd { margin: 0; font-weight: 600; text-align: right; }
.ticket p:last-child { font-size: 12px; color: var(--ink-2); }
.askbox { display: grid; gap: 8px; padding: 12px; border-radius: 10px; background: var(--paper); }
.askbox .btn { justify-self: start; }
@media (max-width: 720px) { .wf-grid { grid-template-columns: minmax(0, 1fr); } .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } .backdrop::before, .backdrop::after { animation: none; } .core__rings, .core__card, .core::before { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cursor-glow { display: none; } .core__rings, .core__card, .core::before { transform: none; } }
#accueil { overflow-x: clip; }
#tre-scn { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; animation: none !important; }

/* Prise de rendez-vous */
.book{display:grid;gap:16px;align-content:start}
.book__t{font-size:clamp(1.25rem,2.2vw,1.6rem);margin:0}
.book__list{margin:0;padding-left:1.2em;display:grid;gap:8px;color:var(--ink-2,#475569)}
.book .btn{justify-self:start}
.book__alt{margin:0}
