@font-face { font-family: "Le Nid Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Le Nid Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"), url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Le Nid Bricolage"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations"), url("fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Le Nid Bricolage"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2") format("woff2-variations"), url("fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* Le Nid — application à onglets : bandeau vert forêt (la marque, l’œuf doré) puis cartes sur fond sauge.
   Une seule audace : le bandeau et son œuf qui se remplit d’or. Le reste reste calme. */
:root { --n-bg: #EDF1EC; --n-surface: #FCFCFA; --n-surface-2: #F1F4F0; --n-line: #DBE2DB; --n-grid: #E4E9E3; --n-axis: #C2CBC3; --n-ink: #0F1C17; --n-ink-2: #44534C; --n-ink-3: #5E6D66; --n-accent: #A86F00; --n-accent-ink: #855400; --n-accent-fill: #EAAE30; --n-on-accent: #1E1503; --n-accent-wash: #F7EBCB; --n-pos: #0C6A39; --n-neg: #B3302A; --n-warn: #955700; --n-pos-wash: #E2F1E7; --n-neg-wash: #FAE6E3; --n-warn-wash: #FAEED7; --n-band: #0F382B; --n-band-2: #164535; --n-band-ink: #F1F6F2; --n-band-ink-2: #A9C4B7; --n-band-line: rgba(241,246,242,.16); --n-band-gold: #F2BA4C; --n-band-violet: #9085e9; --n-focus: #A86F00; --n-gold: #A86F00; --n-field: #F1F4F0; --n-field-line: #DBE2DB; --n-field-line-h: #C2CBC3; --n-field-ink: #0F1C17; --n-ph: #7B8882; --n-field-focus: #FCFCFA; --n-c0: #8D9891; --n-c1: #2a78d6; --n-c2: #eb6834; --n-c3: #1baf7a; --n-c4: #eda100; --n-c5: #e87ba4; --n-c6: #008300; --n-c7: #6250d6; --n-c8: #e34948; --n-on-c4: #0B0B0B; --n-shadow: 0 1px 2px rgba(15,28,23,.05), 0 8px 22px -12px rgba(15,28,23,.18); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --n-bg: #121F19; --n-surface: #1B2B24; --n-surface-2: #21332A; --n-line: #34503F; --n-grid: #273C32; --n-axis: #46604F; --n-ink: #F2F7F4; --n-ink-2: #BFCDC5; --n-ink-3: #A0B3A9; --n-accent: #F0B44A; --n-accent-ink: #F5C873; --n-accent-fill: #EDB040; --n-on-accent: #1E1503; --n-accent-wash: #362D17; --n-pos: #5BD697; --n-neg: #F58A80; --n-warn: #F4BE68; --n-pos-wash: #173A28; --n-neg-wash: #441E1B; --n-warn-wash: #3D2E13; --n-band: #0D2A20; --n-band-2: #123528; --n-band-ink: #F1F6F2; --n-band-ink-2: #A9C4B7; --n-band-line: rgba(241,246,242,.16); --n-band-gold: #F2BA4C; --n-band-violet: #9085e9; --n-focus: #F0B44A; --n-gold: #c98500; --n-field: #25392F; --n-field-line: #5C7B6D; --n-field-line-h: #7FA090; --n-field-ink: #FFFFFF; --n-ph: #A8BAB0; --n-field-focus: #2A4136; --n-c0: #6E7C75; --n-c1: #3987e5; --n-c2: #d95926; --n-c3: #199e70; --n-c4: #c98500; --n-c5: #d55181; --n-c6: #008300; --n-c7: #9085e9; --n-c8: #e66767; --n-on-c4: #FFFFFF; --n-shadow: 0 1px 2px rgba(0,0,0,.35), 0 12px 30px -16px rgba(0,0,0,.7); color-scheme: dark; } }
:root[data-theme="dark"] { --n-bg: #121F19; --n-surface: #1B2B24; --n-surface-2: #21332A; --n-line: #34503F; --n-grid: #273C32; --n-axis: #46604F; --n-ink: #F2F7F4; --n-ink-2: #BFCDC5; --n-ink-3: #A0B3A9; --n-accent: #F0B44A; --n-accent-ink: #F5C873; --n-accent-fill: #EDB040; --n-on-accent: #1E1503; --n-accent-wash: #362D17; --n-pos: #5BD697; --n-neg: #F58A80; --n-warn: #F4BE68; --n-pos-wash: #173A28; --n-neg-wash: #441E1B; --n-warn-wash: #3D2E13; --n-band: #0D2A20; --n-band-2: #123528; --n-band-ink: #F1F6F2; --n-band-ink-2: #A9C4B7; --n-band-line: rgba(241,246,242,.16); --n-band-gold: #F2BA4C; --n-band-violet: #9085e9; --n-focus: #F0B44A; --n-gold: #c98500; --n-field: #25392F; --n-field-line: #5C7B6D; --n-field-line-h: #7FA090; --n-field-ink: #FFFFFF; --n-ph: #A8BAB0; --n-field-focus: #2A4136; --n-c0: #6E7C75; --n-c1: #3987e5; --n-c2: #d95926; --n-c3: #199e70; --n-c4: #c98500; --n-c5: #d55181; --n-c6: #008300; --n-c7: #9085e9; --n-c8: #e66767; --n-on-c4: #FFFFFF; --n-shadow: 0 1px 2px rgba(0,0,0,.35), 0 12px 30px -16px rgba(0,0,0,.7); color-scheme: dark; }
.nid[data-nid-theme="light"] { --n-bg: #EDF1EC; --n-surface: #FCFCFA; --n-surface-2: #F1F4F0; --n-line: #DBE2DB; --n-grid: #E4E9E3; --n-axis: #C2CBC3; --n-ink: #0F1C17; --n-ink-2: #44534C; --n-ink-3: #5E6D66; --n-accent: #A86F00; --n-accent-ink: #855400; --n-accent-fill: #EAAE30; --n-on-accent: #1E1503; --n-accent-wash: #F7EBCB; --n-pos: #0C6A39; --n-neg: #B3302A; --n-warn: #955700; --n-pos-wash: #E2F1E7; --n-neg-wash: #FAE6E3; --n-warn-wash: #FAEED7; --n-band: #0F382B; --n-band-2: #164535; --n-band-ink: #F1F6F2; --n-band-ink-2: #A9C4B7; --n-band-line: rgba(241,246,242,.16); --n-band-gold: #F2BA4C; --n-band-violet: #9085e9; --n-focus: #A86F00; --n-gold: #A86F00; --n-field: #F1F4F0; --n-field-line: #DBE2DB; --n-field-line-h: #C2CBC3; --n-field-ink: #0F1C17; --n-ph: #7B8882; --n-field-focus: #FCFCFA; --n-c0: #8D9891; --n-c1: #2a78d6; --n-c2: #eb6834; --n-c3: #1baf7a; --n-c4: #eda100; --n-c5: #e87ba4; --n-c6: #008300; --n-c7: #6250d6; --n-c8: #e34948; --n-on-c4: #0B0B0B; --n-shadow: 0 1px 2px rgba(15,28,23,.05), 0 8px 22px -12px rgba(15,28,23,.18); color-scheme: light; }
.nid[data-nid-theme="dark"] { --n-bg: #121F19; --n-surface: #1B2B24; --n-surface-2: #21332A; --n-line: #34503F; --n-grid: #273C32; --n-axis: #46604F; --n-ink: #F2F7F4; --n-ink-2: #BFCDC5; --n-ink-3: #A0B3A9; --n-accent: #F0B44A; --n-accent-ink: #F5C873; --n-accent-fill: #EDB040; --n-on-accent: #1E1503; --n-accent-wash: #362D17; --n-pos: #5BD697; --n-neg: #F58A80; --n-warn: #F4BE68; --n-pos-wash: #173A28; --n-neg-wash: #441E1B; --n-warn-wash: #3D2E13; --n-band: #0D2A20; --n-band-2: #123528; --n-band-ink: #F1F6F2; --n-band-ink-2: #A9C4B7; --n-band-line: rgba(241,246,242,.16); --n-band-gold: #F2BA4C; --n-band-violet: #9085e9; --n-focus: #F0B44A; --n-gold: #c98500; --n-field: #25392F; --n-field-line: #5C7B6D; --n-field-line-h: #7FA090; --n-field-ink: #FFFFFF; --n-ph: #A8BAB0; --n-field-focus: #2A4136; --n-c0: #6E7C75; --n-c1: #3987e5; --n-c2: #d95926; --n-c3: #199e70; --n-c4: #c98500; --n-c5: #d55181; --n-c6: #008300; --n-c7: #9085e9; --n-c8: #e66767; --n-on-c4: #FFFFFF; --n-shadow: 0 1px 2px rgba(0,0,0,.35), 0 12px 30px -16px rgba(0,0,0,.7); color-scheme: dark; }


.nid { --n-r: 16px; --n-r-s: 10px; --n-font: "Le Nid Inter", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --n-display: "Le Nid Bricolage", "Bricolage Grotesque", "Le Nid Inter", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--n-font); font-size: 15px; line-height: 1.5; color: var(--n-ink); background: var(--n-bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss01"; }
.nid *, .nid *::before, .nid *::after { box-sizing: border-box; }
.nid :is(h1, h2, h3, h4, p, ul, ol, li, dl, dt, dd, figure, table, thead, tbody, tfoot, tr, th, td, blockquote) { margin: 0; padding: 0; border: 0; font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; background: none; letter-spacing: inherit; text-transform: none; }
.nid :is(ul, ol) { list-style: none; }
.nid :is(button, input, select, textarea) { font: inherit; color: inherit; letter-spacing: inherit; margin: 0; }
.nid button { background: none; border: 0; padding: 0; cursor: pointer; text-transform: none; box-shadow: none; min-height: 0; line-height: inherit; border-radius: 0; }
.nid a { color: inherit; text-decoration: none; box-shadow: none; }
.nid svg { display: block; overflow: visible; }
.nid table { border-collapse: collapse; width: 100%; table-layout: auto; }
.nid b, .nid strong { font-weight: 650; }
.nid :focus-visible { outline: 2px solid var(--n-focus); outline-offset: 2px; border-radius: 6px; }
.nid [hidden] { display: none !important; }
.nid .n-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nid .n-ic { flex: none; }

.nid--embed { border-radius: 22px; overflow: hidden; border: 1px solid var(--n-line); }
.nid--gate .n-hero { padding-block: 34px; }
.nid .n-shell { container: nid / inline-size; }
.nid .n-wrap { max-width: 1180px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@container nid (min-width: 720px) { .nid .n-wrap { padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); } }

/* ---------------------------------------------------------------- bandeau */
.nid .n-top { background: var(--n-band); color: var(--n-band-ink); }
.nid--app .n-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; box-shadow: 0 1px 0 var(--n-band-line); }
.nid .n-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px 6px; }
.nid .n-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--n-band-gold); border-radius: 10px; }
.nid .n-brand-t { display: flex; flex-direction: column; line-height: 1.05; color: var(--n-band-ink); }
.nid .n-brand-t b { font-family: var(--n-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; font-variation-settings: "opsz" 32; }
.nid .n-brand-t span { font-size: 11.5px; color: var(--n-band-ink-2); letter-spacing: .02em; }
.nid .n-bar-r { display: flex; align-items: center; gap: 6px; }
.nid .n-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 6px 10px; margin-inline: -4px; padding-inline: 4px; }
.nid .n-tabs::-webkit-scrollbar { display: none; }
.nid .n-tab { flex: none; padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--n-band-ink-2); transition: background .15s, color .15s; white-space: nowrap; }
.nid .n-tab:hover { color: var(--n-band-ink); background: rgba(255, 255, 255, .06); }
.nid .n-tab.is-on { color: var(--n-band); background: var(--n-band-gold); }
.nid .n-tab:focus-visible, .nid .n-brand:focus-visible, .nid .n-ibtn--band:focus-visible { outline-color: var(--n-band-gold); }

.nid .n-sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--n-band-ink-2); white-space: nowrap; }
.nid .n-sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.nid .n-sync--ok { color: #8FDDB2; }
.nid .n-sync--wait::before { animation: n-pulse 1.2s ease-in-out infinite; }
.nid .n-sync--bad { color: #FFB3A8; }
.nid .n-sync--demo { color: var(--n-band); background: var(--n-band-gold); }
.nid .n-sync--demo::before { background: var(--n-band); }
@keyframes n-pulse { 50% { opacity: .25; } }

.nid .n-band { background: radial-gradient(520px 320px at 88% 30%, rgba(242, 186, 76, .16), transparent 62%), radial-gradient(420px 260px at 0% 100%, rgba(255, 255, 255, .05), transparent 70%), var(--n-band); color: var(--n-band-ink); }
.nid .n-hero { display: grid; gap: 22px 32px; grid-template-columns: 1fr; padding-block: 18px 30px; align-items: center; }
.nid .n-hero-a { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.nid .n-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--n-band-ink-2); }
.nid .n-big { font-family: var(--n-font); font-weight: 650; font-size: clamp(40px, 8cqi, 62px); line-height: 1.02; letter-spacing: -0.025em; color: var(--n-band-ink); }
.nid .n-big--soft { font-family: var(--n-display); font-weight: 650; font-size: clamp(30px, 5.4cqi, 44px); letter-spacing: -0.02em; text-wrap: balance; }
.nid .n-quote { font-family: var(--n-display); font-weight: 600; font-size: clamp(26px, 4.6cqi, 40px); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; max-width: 26ch; color: var(--n-band-ink); }
.nid .n-hero-delta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 14px; color: var(--n-band-ink-2); max-width: 62ch; }
.nid .n-hero-delta b { color: var(--n-band-ink); }
.nid .n-kv { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 10px; }
.nid .n-kv div { display: flex; flex-direction: column; gap: 1px; }
.nid .n-kv dt { font-size: 12px; color: var(--n-band-ink-2); }
.nid .n-kv dd { font-size: 15px; font-weight: 600; color: var(--n-band-ink); white-space: nowrap; }
.nid .n-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.nid .n-hero-c { min-width: 0; }
.nid .n-hero-note { max-width: 46ch; font-size: 14px; color: var(--n-band-ink-2); border-left: 2px solid var(--n-band-gold); padding: 4px 0 4px 16px; }
.nid .n-hero-note-t { color: var(--n-band-ink); font-weight: 650; margin-bottom: 4px; }
.nid .n-delta { display: inline-flex; align-items: center; gap: 5px; font-weight: 650; font-size: 14px; padding: 2px 9px; border-radius: 999px; }
.nid .n-delta span { font-size: 10px; }
.nid .n-band .n-delta--pos { background: rgba(76, 203, 138, .16); color: #9BE5BC; }
.nid .n-band .n-delta--neg { background: rgba(242, 125, 114, .16); color: #FFB7AD; }
.nid .n-band .n-delta--neu { background: rgba(255, 255, 255, .08); color: var(--n-band-ink-2); }
.nid .n-main .n-delta--pos { background: var(--n-pos-wash); color: var(--n-pos); }
.nid .n-main .n-delta--neg { background: var(--n-neg-wash); color: var(--n-neg); }
.nid .n-est { color: var(--n-accent-ink); font-weight: 700; margin-right: 2px; cursor: help; }
.nid .n-band .n-est { color: var(--n-band-gold); }

/* l’œuf */
.nid .n-hero-e { display: flex; align-items: center; gap: 18px; }
.nid .n-egg-a { flex: none; border-radius: 50%; }
.nid .n-egg { filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .28)); }
.nid .n-egg-shell { fill: rgba(255, 255, 255, .055); }
.nid .n-egg-line { fill: none; stroke: var(--n-band-gold); stroke-width: 1.6; opacity: .75; }
.nid .n-egg-crack { fill: none; stroke: var(--n-band); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.nid .n-egg-wave { animation: n-wave 5.5s linear infinite; }
@keyframes n-wave { to { transform: translateX(50px); } }
.nid .n-egg-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nid .n-egg-pct { font-size: 34px; font-weight: 650; letter-spacing: -0.02em; line-height: 1; color: var(--n-band-gold); }
.nid .n-egg-lvl { font-family: var(--n-display); font-weight: 650; font-size: 16px; color: var(--n-band-ink); margin-top: 4px; }
.nid .n-egg-sub, .nid .n-egg-when { font-size: 13px; color: var(--n-band-ink-2); }
.nid .n-egg-when b { color: var(--n-band-ink); }
.nid .n-hero-e--load .n-egg { opacity: .75; }

@container nid (min-width: 640px) {
  .nid .n-hero--vue, .nid .n-hero--lib, .nid .n-hero--load { grid-template-columns: minmax(0, 1fr) auto; }
  .nid .n-hero--vue .n-hero-c { grid-column: 1 / -1; grid-row: 2; }
  .nid .n-hero--pat { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); }
}
@container nid (min-width: 1000px) {
  .nid .n-hero--vue { grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.7fr) auto; }
  .nid .n-hero--vue .n-hero-c { grid-column: auto; grid-row: auto; }
  .nid .n-hero--vue .n-hero-e { flex-direction: column; align-items: flex-start; gap: 10px; max-width: 200px; }
  .nid .n-hero--vue.n-hero--empty { grid-template-columns: minmax(0, 1fr) auto; }
}

/* ---------------------------------------------------------------- contenu */
.nid .n-main { padding-block: 22px 8px; }
.nid .n-main > .n-wrap { display: flex; flex-direction: column; gap: 18px; }
.nid .n-grid2 { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@container nid (min-width: 860px) { .nid .n-grid2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } .nid .n-grid2--bud { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.nid .n-card { background: var(--n-surface); border: 1px solid var(--n-line); border-radius: var(--n-r); padding: clamp(16px, 2.4cqi, 22px); display: flex; flex-direction: column; gap: 14px; min-width: 0; box-shadow: var(--n-shadow); scroll-margin-top: 120px; }
.nid .n-card.is-flash { animation: n-flash 1.4s ease-out; }
@keyframes n-flash { 0% { box-shadow: 0 0 0 3px var(--n-accent-fill), var(--n-shadow); } 100% { box-shadow: 0 0 0 0 transparent, var(--n-shadow); } }
.nid .n-card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.nid .n-card-h > div:first-child { min-width: 0; }
.nid .n-card-eb { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; letter-spacing: .085em; text-transform: uppercase; color: var(--n-ink-3); margin-bottom: 2px; }
.nid .n-card h2 { font-family: var(--n-display); font-weight: 650; font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.nid .n-card-a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nid .n-card-f { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding-top: 2px; }
.nid .n-empty { color: var(--n-ink-2); font-size: 14.5px; }
.nid .n-help { font-size: 13px; color: var(--n-ink-3); line-height: 1.45; }
.nid .n-fine { font-size: 12px; color: var(--n-ink-3); }
.nid .n-muted { color: var(--n-ink-3); }
.nid .n-lead { font-size: 15.5px; color: var(--n-ink-2); max-width: 62ch; }
.nid .n-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nid .pos { color: var(--n-pos); }
.nid .neg { color: var(--n-neg); }

.nid .n-banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; padding: 14px 18px; border-radius: var(--n-r); background: var(--n-surface); border: 1px solid var(--n-line); font-size: 14.5px; }
.nid .n-banner p { max-width: 70ch; color: var(--n-ink-2); }
.nid .n-banner b { color: var(--n-ink); }
.nid .n-banner--demo { background: var(--n-accent-wash); border-color: transparent; }
.nid .n-banner--bad { background: var(--n-neg-wash); border-color: transparent; }

/* tuiles */
.nid .n-tiles { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container nid (min-width: 600px) { .nid .n-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container nid (min-width: 900px) { .nid .n-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .nid .n-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container nid (max-width: 420px) { .nid .n-tiles { grid-template-columns: minmax(0, 1fr); } }
.nid .n-tile { background: var(--n-surface); border: 1px solid var(--n-line); border-radius: var(--n-r); padding: 15px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; box-shadow: var(--n-shadow); }
.nid .n-tile-l { font-size: 13px; font-weight: 550; color: var(--n-ink-2); }
.nid .n-tile-v { font-size: clamp(22px, 3.2cqi, 28px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; color: var(--n-ink); overflow-wrap: anywhere; }
.nid .n-tile-v small { font-size: 14px; font-weight: 550; color: var(--n-ink-3); letter-spacing: 0; }
.nid .n-tile-s { font-size: 12.5px; color: var(--n-ink-3); line-height: 1.4; }
.nid .n-meter { position: relative; height: 6px; border-radius: 99px; background: var(--n-accent-wash); margin-block: 6px 2px; }
.nid .n-meter b { display: block; height: 100%; border-radius: 99px; background: var(--n-accent); }
.nid .n-meter i { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 2px; background: var(--n-ink-2); }
.nid .n-meter.is-over b { background: var(--n-neg); }

/* boutons & liens */
.nid .n-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 12px; font-size: 14.5px; font-weight: 600; background: var(--n-surface-2); color: var(--n-ink); border: 1px solid var(--n-line); transition: transform .12s, background .15s, filter .15s; white-space: nowrap; text-decoration: none; }
.nid .n-btn:hover { filter: brightness(.97); }
.nid .n-btn:active { transform: translateY(1px); }
.nid .n-btn[disabled] { opacity: .5; cursor: not-allowed; }
.nid .n-btn--gold { background: var(--n-accent-fill); color: var(--n-on-accent); border-color: transparent; box-shadow: 0 6px 18px -8px rgba(201, 133, 18, .7); }
.nid .n-btn--gold:hover { filter: brightness(1.05); }
.nid .n-btn--band { background: rgba(255, 255, 255, .08); color: var(--n-band-ink); border-color: var(--n-band-line); }
.nid .n-btn--band:hover { background: rgba(255, 255, 255, .13); filter: none; }
.nid .n-btn--ghost { background: transparent; border-color: transparent; color: var(--n-ink-2); }
.nid .n-btn--ghost:hover { background: var(--n-surface-2); filter: none; }
.nid .n-btn--bad { background: var(--n-neg); color: #fff; border-color: transparent; }
.nid .n-ibtn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--n-ink-3); transition: background .15s, color .15s; flex: none; }
.nid .n-ibtn:hover { background: var(--n-surface-2); color: var(--n-ink); }
.nid .n-ibtn--band { color: var(--n-band-ink-2); }
.nid .n-ibtn--band:hover { background: rgba(255, 255, 255, .08); color: var(--n-band-ink); }
.nid .n-link { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; color: var(--n-accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--n-accent-ink) 40%, transparent); }
.nid .n-link:hover { text-decoration-color: currentColor; }
.nid .n-link .n-ic { width: 16px; height: 16px; }
.nid .n-link--bad { color: var(--n-neg); text-decoration-color: color-mix(in srgb, var(--n-neg) 40%, transparent); }
.nid .n-tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--n-surface-2); color: var(--n-ink-3); vertical-align: 1px; white-space: nowrap; }

/* légende */
.nid .n-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--n-ink-2); }
.nid .n-legend li { display: inline-flex; align-items: center; gap: 7px; }
.nid .n-legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--k); flex: none; }
.nid .n-legend i.is-line { width: 18px; height: 0; border-radius: 0; background: none; border-top: 2px solid var(--k); }
.nid .n-legend i.is-line.is-dash { border-top-style: dashed; }
.nid .n-legend--band { color: var(--n-band-ink-2); margin-top: 6px; }

/* graphiques */
.nid .n-chart { position: relative; width: 100%; outline: none; --ch-grid: var(--n-grid); --ch-base: var(--n-axis); --ch-lab: var(--n-ink-3); --ch-ink: var(--n-ink-2); --ch-surface: var(--n-surface); --ch-ref: var(--n-ink-3); --ch-x: var(--n-ink-3); }
.nid .n-chart--band { --ch-grid: var(--n-band-line); --ch-base: rgba(241, 246, 242, .28); --ch-lab: var(--n-band-ink-2); --ch-ink: var(--n-band-ink); --ch-surface: var(--n-band); --ch-ref: var(--n-band-ink-2); --ch-x: var(--n-band-ink-2); }
.nid .n-chart:focus-visible { outline: 2px solid var(--n-focus); outline-offset: 4px; border-radius: 8px; }
.nid .n-chart--band:focus-visible { outline-color: var(--n-band-gold); }
.nid .n-chart svg text { font-family: var(--n-font); }
.nid .ch-grid { stroke: var(--ch-grid); stroke-width: 1; }
.nid .ch-base { stroke: var(--ch-base); stroke-width: 1; }
.nid .ch-lab { fill: var(--ch-lab); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.nid .ch-ref { stroke: var(--ch-ref); stroke-width: 1.25; stroke-dasharray: 3 4; }
.nid .ch-reflab { fill: var(--ch-ink); font-size: 12px; font-weight: 600; }
.nid .ch-mark { fill: var(--ch-ink); font-size: 12px; font-weight: 650; paint-order: stroke; stroke: var(--ch-surface); stroke-width: 4px; stroke-linejoin: round; }
.nid .ch-x { stroke: var(--ch-x); stroke-width: 1; }
.nid .ch-band.is-on { fill: var(--ch-grid); fill-opacity: .55; }
.nid .n-chart-empty { display: grid; place-items: center; height: 100%; font-size: 14px; color: var(--ch-lab); text-align: center; padding: 12px; }
.nid .n-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 150px; max-width: 260px; padding: 9px 11px; border-radius: 11px; background: var(--n-surface); color: var(--n-ink); border: 1px solid var(--n-line); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .35); font-size: 12.5px; }
.nid .n-tip-h { font-size: 12px; color: var(--n-ink-3); margin-bottom: 5px; font-weight: 550; }
.nid .n-tip-r { display: grid; grid-template-columns: 16px auto 1fr; align-items: center; gap: 7px; padding-block: 2px; }
.nid .n-tip-r i { width: 14px; height: 2px; border-radius: 2px; }
.nid .n-tip-r i.is-dash { -webkit-mask: repeating-linear-gradient(90deg, #000 0 4px, transparent 4px 7px); mask: repeating-linear-gradient(90deg, #000 0 4px, transparent 4px 7px); }
.nid .n-tip-r b { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.nid .n-tip-r span { color: var(--n-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nid .n-tip-x { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--n-line); color: var(--n-ink-2); font-weight: 600; }

/* barre segmentée (une part du tout) */
.nid .n-seg { display: flex; gap: 2px; height: 28px; width: 100%; }
.nid .n-seg-b { flex-basis: 0; min-width: 3px; border-radius: 4px; display: flex; align-items: center; padding-inline: 8px; overflow: hidden; }
.nid .n-seg-b span { font-size: 12px; font-weight: 650; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nid .n-seg-b span.is-dk { color: var(--n-on-c4); }
.nid .n-ref { display: flex; gap: 2px; margin-top: 6px; }
.nid .n-ref span { flex-basis: 0; font-size: 11px; color: var(--n-ink-3); border-top: 2px solid var(--n-axis); padding-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nid .n-ribbon { display: flex; flex-direction: column; }

.nid .n-alloc { display: flex; flex-direction: column; }
.nid .n-alloc li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 42px; grid-template-areas: "dot lab val pct" ". bar bar bar"; align-items: center; column-gap: 10px; row-gap: 5px; padding-block: 8px; border-bottom: 1px solid var(--n-line); }
.nid .n-alloc li:last-child { border-bottom: 0; }
.nid .n-alloc i { grid-area: dot; width: 10px; height: 10px; border-radius: 3px; }
.nid .n-alloc-l { grid-area: lab; font-size: 14px; font-weight: 550; min-width: 0; overflow-wrap: anywhere; }
.nid .n-alloc-v { grid-area: val; font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px; }
.nid .n-alloc-p { grid-area: pct; text-align: right; font-variant-numeric: tabular-nums; color: var(--n-ink-3); font-size: 13px; }
.nid .n-alloc-b { grid-area: bar; height: 4px; background: var(--n-surface-2); border-radius: 99px; overflow: hidden; }
.nid .n-alloc-b b { display: block; height: 100%; border-radius: 99px; opacity: .9; }
.nid .n-liq { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.nid .n-liq-h { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--n-ink-2); flex-wrap: wrap; }
.nid .n-liq-h b { color: var(--n-ink); }
.nid .n-liq-bar { display: flex; gap: 2px; height: 8px; border-radius: 99px; background: var(--n-surface-2); overflow: hidden; }
.nid .n-liq-bar b { display: block; height: 100%; background: var(--n-ink-2); }
.nid .n-liq-bar i { display: block; height: 100%; background: var(--n-axis); }

/* pistes */
.nid .n-tips { display: flex; flex-direction: column; gap: 10px; }
.nid .n-tipi { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 12px; background: var(--n-surface-2); }
.nid .n-tipi-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; }
.nid .n-tipi--attention .n-tipi-ic { background: var(--n-warn-wash); color: var(--n-warn); }
.nid .n-tipi--idee .n-tipi-ic { background: var(--n-accent-wash); color: var(--n-accent-ink); }
.nid .n-tipi--bravo .n-tipi-ic { background: var(--n-pos-wash); color: var(--n-pos); }
.nid .n-tipi-k { font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--n-ink-3); }
.nid .n-tipi--attention .n-tipi-k { color: var(--n-warn); }
.nid .n-tipi--bravo .n-tipi-k { color: var(--n-pos); }
.nid .n-tipi-t { font-weight: 650; font-size: 14.5px; margin-top: 1px; }
.nid .n-tipi-p { font-size: 13.5px; color: var(--n-ink-2); margin-top: 3px; }
.nid .n-tipi-a { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 7px; }
.nid .n-tipi-a .n-link { font-size: 13px; }

/* étapes */
.nid .n-steps { display: flex; flex-direction: column; position: relative; }
.nid .n-steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding-block: 9px; position: relative; }
.nid .n-steps li::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--n-line); }
.nid .n-steps li:first-child::before { top: 16px; }
.nid .n-steps li:last-child::before { bottom: calc(100% - 16px); }
.nid .n-step-dot { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--n-axis); background: var(--n-surface); display: grid; place-items: center; color: var(--n-on-accent); margin-top: 1px; }
.nid .n-step-dot .n-ic { width: 13px; height: 13px; stroke-width: 2.6; }
.nid .n-steps li.is-done .n-step-dot { background: var(--n-accent-fill); border-color: var(--n-accent-fill); }
.nid .n-steps li.is-key .n-step-dot { border-color: var(--n-accent); box-shadow: 0 0 0 4px var(--n-accent-wash); }
.nid .n-step-t { display: flex; flex-direction: column; min-width: 0; }
.nid .n-step-t b { font-size: 14.5px; }
.nid .n-step-t span { font-size: 12.5px; color: var(--n-ink-3); }
.nid .n-step-d { text-align: right; display: flex; flex-direction: column; font-size: 14px; font-variant-numeric: tabular-nums; }
.nid .n-step-d span { font-size: 12px; color: var(--n-ink-3); }
.nid .n-steps li.is-done .n-step-d b { color: var(--n-accent-ink); }

.nid .n-mini { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.nid .n-mini div { display: flex; flex-direction: column; }
.nid .n-mini dt { font-size: 12px; color: var(--n-ink-3); }
.nid .n-mini dd { font-weight: 650; font-variant-numeric: tabular-nums; }
.nid .n-alert { display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 550; color: var(--n-neg); background: var(--n-neg-wash); padding: 8px 12px; border-radius: 10px; }

/* tableaux */
.nid .n-scroll { position: relative; overflow-x: auto; margin-inline: -4px; padding-inline: 4px; -webkit-overflow-scrolling: touch; }   /* relative : le libellé masqué des en-têtes (n-sr, absolu) reste dans la boîte, sinon la page s’élargit de 15 px sur téléphone */
.nid .n-table, .nid .n-rtab, .nid .n-btab, .nid .n-ptab { font-size: 14px; }
.nid .n-table th, .nid .n-table td { padding: 10px 10px; border-bottom: 1px solid var(--n-line); vertical-align: middle; text-align: left; }
.nid .n-table thead th, .nid .n-rtab thead th, .nid .n-btab thead th, .nid .n-ptab thead th { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--n-ink-3); padding-top: 4px; white-space: nowrap; }
.nid .n-table tbody tr:hover { background: var(--n-surface-2); }
.nid .n-table tfoot th, .nid .n-table tfoot td { border-bottom: 0; padding-top: 12px; }
.nid .n-table tr.is-arch { opacity: .6; }
.nid .n-table thead th.n-num, .nid .n-btab thead th.n-num, .nid .n-rtab thead th.n-num, .nid .n-ptab thead th.n-num { text-align: right; }
.nid .n-table td.n-num { text-align: right; }   /* montants alignés sous leur en-tête */
.nid .n-acc { display: flex; flex-direction: column; gap: 3px; text-align: left; min-width: 150px; border-radius: 6px; }
.nid .n-acc b { font-size: 14.5px; }
.nid .n-acc:hover b { color: var(--n-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.nid .n-acc > span { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.nid .n-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--n-ink-2); }
.nid .n-cat i { width: 8px; height: 8px; border-radius: 2px; }
.nid .n-cat--debt { color: var(--n-neg); }
.nid .n-inst { font-size: 12px; color: var(--n-ink-3); }
.nid .n-d { font-weight: 600; }
.nid .n-rtab th, .nid .n-rtab td { padding: 7px 6px; border-bottom: 1px solid var(--n-line); text-align: left; }
.nid .n-rtab tbody tr:last-child > * { border-bottom: 0; }
.nid .n-rtab tbody th { display: flex; align-items: center; gap: 8px; font-weight: 550; }
.nid .n-rtab tbody th i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.nid .n-btab th, .nid .n-btab td { padding: 4px 4px; border-bottom: 1px solid var(--n-line); text-align: left; vertical-align: middle; }
.nid .n-btab tbody th { font-weight: 500; padding-block: 6px; min-width: 120px; }
.nid .n-btab tbody tr:last-child > * { border-bottom: 0; }
.nid .n-btab tfoot th, .nid .n-btab tfoot td { border-top: 1px solid var(--n-axis); border-bottom: 0; font-weight: 650; padding-top: 8px; }
.nid .n-btab td.n-diff { font-size: 13px; font-weight: 600; padding-inline: 8px 2px; }
.nid .n-btab td.n-num { text-align: right; }
.nid .n-btab .n-c { text-align: center; }
.nid .n-row-a { width: 36px; text-align: right; }
.nid .n-row-a .n-ibtn { width: 30px; height: 30px; opacity: .55; }
.nid .n-btab tr:hover .n-row-a .n-ibtn, .nid .n-row-a .n-ibtn:focus-visible { opacity: 1; }
.nid .n-ln { overflow-wrap: anywhere; }
.nid .n-cats { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@container nid (min-width: 860px) { .nid .n-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.nid .n-catc { gap: 10px; }
.nid .n-bk { width: 8px; height: 8px; border-radius: 2px; }
.nid .n-cat-tot { font-size: 13px; color: var(--n-ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nid .n-cat-tot b { color: var(--n-ink); font-size: 15px; }
.nid .n-bud-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.nid .n-bud-help { margin-block: -4px -6px; }

/* champs */
.nid .n-in { width: 100%; min-height: 40px; padding: 8px 11px; border-radius: var(--n-r-s); border: 1px solid var(--n-field-line); background: var(--n-field); color: var(--n-field-ink); -webkit-text-fill-color: var(--n-field-ink); caret-color: var(--n-accent); font-size: 15px; transition: border-color .15s, background .15s; -webkit-appearance: none; appearance: none; box-shadow: none; }
.nid select.n-in { background-image: linear-gradient(45deg, transparent 50%, var(--n-ink-3) 50%), linear-gradient(135deg, var(--n-ink-3) 50%, transparent 50%); background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.nid .n-in:hover { border-color: var(--n-field-line-h); }
.nid .n-in:focus { outline: none; border-color: var(--n-accent); background: var(--n-field-focus); box-shadow: 0 0 0 3px var(--n-accent-wash); }
.nid .n-in[aria-invalid="true"] { border-color: var(--n-neg); box-shadow: 0 0 0 3px var(--n-neg-wash); }
/* valeur par défaut affichée en grisé : lisible (6:1 en sombre), mais nettement moins blanche qu’un chiffre tapé */
.nid .n-in::placeholder { color: var(--n-ph); -webkit-text-fill-color: var(--n-ph); opacity: 1; }
.nid .n-in--cell { min-height: 34px; padding: 5px 8px; text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; background: transparent; border-color: transparent; min-width: 76px; }
.nid .n-in--cell:hover { background: var(--n-surface-2); border-color: var(--n-line); }
.nid .n-in--cell:focus { background: var(--n-field-focus); }
.nid .n-field { display: flex; flex-direction: column; gap: 5px; }
.nid .n-field > label, .nid .n-lab, .nid .n-range-h label { font-size: 13.5px; font-weight: 600; color: var(--n-ink); }
.nid .n-inwrap { position: relative; display: flex; align-items: center; }
.nid .n-inwrap .n-in { padding-right: 52px; }
.nid .n-inwrap .n-in--cell { padding-right: 22px; }
.nid .n-unit { position: absolute; right: 11px; font-size: 13px; color: var(--n-ink-3); pointer-events: none; white-space: nowrap; }
.nid .n-inwrap .n-in--cell + .n-unit { right: 7px; }
.nid .n-err { font-size: 13px; color: var(--n-neg); font-weight: 550; }
.nid .n-chk { display: inline-flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 550; cursor: pointer; }
.nid .n-chk input, .nid .n-ptab input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--n-accent-fill); margin-top: 1px; flex: none; }
.nid .n-radio { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--n-surface-2); border: 1px solid var(--n-line); gap: 2px; align-self: flex-start; }
.nid .n-radio label { position: relative; }
.nid .n-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.nid .n-radio span { display: block; padding: 6px 16px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--n-ink-2); }
.nid .n-radio input:checked + span { background: var(--n-surface); color: var(--n-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.nid .n-radio input:focus-visible + span { outline: 2px solid var(--n-focus); outline-offset: 1px; }
.nid input[type=range] { width: 100%; accent-color: var(--n-accent-fill); height: 28px; background: transparent; }
.nid .n-range-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.nid .n-range-h output { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--n-accent-ink); }
.nid .n-fgroup { display: flex; flex-direction: column; gap: 14px; padding-block: 4px 12px; border-bottom: 1px solid var(--n-line); }
.nid .n-fgroup:last-child { border-bottom: 0; padding-bottom: 0; }
.nid .n-fgroup-t { font-size: 11.5px; font-weight: 650; letter-spacing: .085em; text-transform: uppercase; color: var(--n-ink-3); }

/* mois */
.nid .n-months { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 10px; margin-bottom: 6px; }
.nid .n-months::-webkit-scrollbar { display: none; }
.nid .n-mchip { flex: none; padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--n-band-ink-2); background: rgba(255, 255, 255, .06); border: 1px solid var(--n-band-line); display: inline-flex; align-items: center; gap: 4px; }
.nid .n-mchip .n-ic { width: 15px; height: 15px; }
.nid .n-mchip:hover { color: var(--n-band-ink); }
.nid .n-mchip.is-on { background: var(--n-band-ink); color: var(--n-band); border-color: transparent; }
.nid .n-mchip--add { border-style: dashed; }

/* liberté */
.nid .n-lib { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@container nid (min-width: 980px) { .nid .n-lib { grid-template-columns: minmax(290px, 340px) minmax(0, 1fr); } .nid .n-lib-in { position: sticky; top: 120px; } .nid--embed .n-lib-in { position: static; } }
.nid .n-lib-out { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.nid .n-lib-out > .n-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container nid (max-width: 560px) { .nid .n-lib-out > .n-tiles--3 { grid-template-columns: minmax(0, 1fr); } }
.nid .n-segctl { display: flex; flex-wrap: wrap; gap: 6px; }
.nid .n-segbtn { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--n-ink-2); background: var(--n-surface-2); border: 1px solid var(--n-line); }
.nid .n-segbtn:hover { color: var(--n-ink); }
.nid .n-segbtn.is-on { background: var(--n-ink); color: var(--n-surface); border-color: transparent; }
.nid .n-levers { display: flex; flex-direction: column; }
.nid .n-levers li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-block: 10px; border-bottom: 1px solid var(--n-line); }
.nid .n-levers li:last-child { border-bottom: 0; }
.nid .n-levers li div { display: flex; flex-direction: column; min-width: 0; }
.nid .n-levers b { font-size: 14.5px; }
.nid .n-levers span { font-size: 12.5px; color: var(--n-ink-3); }
.nid .n-gain { font-weight: 650; font-size: 14px; text-align: right; color: var(--n-ink-3); white-space: nowrap; }
.nid .n-gain.is-pos { color: var(--n-pos); }
.nid .n-goal { display: flex; flex-direction: column; gap: 6px; }
.nid .n-goal b { font-size: clamp(24px, 3.6cqi, 30px); font-weight: 650; letter-spacing: -0.02em; color: var(--n-ink); }
.nid .n-goal span { font-size: 14px; color: var(--n-ink-2); }

/* comprendre */
.nid .n-edu { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@container nid (min-width: 820px) { .nid .n-edu { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container nid (min-width: 1180px) { .nid .n-edu { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nid .n-edu-c { gap: 12px; }
.nid .n-edu-b { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--n-ink-2); max-width: 64ch; }
.nid .n-edu-b b { color: var(--n-ink); }
.nid .n-ul { display: flex; flex-direction: column; gap: 6px; }
.nid .n-ul li { padding-left: 16px; position: relative; }
.nid .n-ul li::before { content: ""; position: absolute; left: 2px; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--n-accent-fill); }
.nid .n-formula { font-size: 13.5px; font-weight: 600; padding: 8px 12px; border-radius: 10px; background: var(--n-surface-2); color: var(--n-ink); font-variant-numeric: tabular-nums; border-left: 3px solid var(--n-axis); }
.nid .n-mine { padding: 11px 13px; border-radius: 12px; background: var(--n-accent-wash); font-size: 14px; }
.nid .n-mine-k { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--n-accent-ink); margin-bottom: 3px; }
.nid .n-edu-l a { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--n-accent-ink); }
.nid .n-split { display: flex; gap: 2px; height: 26px; }
.nid .n-split span { flex-basis: 0; display: flex; align-items: center; padding-inline: 8px; border-radius: 4px; font-size: 12px; font-weight: 650; white-space: nowrap; overflow: hidden; }
.nid .n-split span:first-child { background: var(--n-surface-2); color: var(--n-ink-2); border: 1px solid var(--n-line); }
.nid .n-split span:last-child { background: var(--n-accent-fill); color: var(--n-on-accent); }
.nid .n-cta { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--n-band); color: var(--n-band-ink); border-color: transparent; }
.nid .n-cta .n-card-eb { color: var(--n-band-gold); }
.nid .n-cta p { color: var(--n-band-ink-2); max-width: 56ch; font-size: 14.5px; }
.nid .n-edu .n-cta { grid-column: 1 / -1; }

/* bienvenue */
.nid .n-wel { display: flex; flex-direction: column; gap: 16px; }
.nid .n-wel li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; }
.nid .n-wel-n { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-family: var(--n-display); font-weight: 700; font-size: 17px; background: var(--n-accent-wash); color: var(--n-accent-ink); }
.nid .n-wel b { font-size: 15.5px; }
.nid .n-wel p { font-size: 14px; color: var(--n-ink-2); margin-block: 2px 8px; max-width: 60ch; }
.nid .n-card--welcome { border-color: var(--n-accent-fill); }

/* patrimoine */
.nid .n-points { display: flex; flex-direction: column; }
.nid .n-points li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding-block: 9px; border-bottom: 1px solid var(--n-line); }
.nid .n-points li:last-child { border-bottom: 0; }
.nid .n-points li > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.nid .n-points li > div:first-child span { font-size: 12.5px; color: var(--n-ink-3); }
.nid .n-points-a { display: flex; gap: 2px; }

/* fenêtres */
.nid .n-ov { position: fixed; inset: 0; z-index: 2147483000; background: rgba(6, 14, 11, .55); backdrop-filter: blur(3px); display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); animation: n-fade .16s ease-out; }
@keyframes n-fade { from { opacity: 0; } }
.nid .n-dlg { width: min(520px, 100%); min-width: 0; container: n-dlg / inline-size; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; background: var(--n-surface); color: var(--n-ink); border-radius: 20px; border: 1px solid var(--n-line); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); animation: n-rise .2s ease-out; }
.nid .n-dlg--wide { width: min(720px, 100%); }
@keyframes n-rise { from { transform: translateY(12px); opacity: 0; } }
.nid .n-dlg-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px 10px 22px; }
.nid .n-dlg-h h2 { font-family: var(--n-display); font-size: 20px; font-weight: 650; line-height: 1.2; }
.nid .n-dlg-b { padding: 6px 22px 16px; overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.nid .n-dlg-b > * { flex-shrink: 0; }   /* le contenu défile au lieu d’écraser le tableau du point (téléphone) */
.nid .n-dlg-b > p { color: var(--n-ink-2); font-size: 14.5px; }
.nid .n-dlg-f { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 12px 18px 16px; border-top: 1px solid var(--n-line); }
.nid .n-ptab th, .nid .n-ptab td { padding: 6px 4px; border-bottom: 1px solid var(--n-line); text-align: left; vertical-align: middle; }
.nid .n-ptab tbody th { display: flex; flex-direction: column; min-width: 150px; }
.nid .n-ptab tbody th span { font-size: 12px; color: var(--n-ink-3); font-weight: 400; }
.nid .n-ptab td:nth-child(2) { width: 150px; }
.nid .n-ptab .n-in--cell { background: var(--n-surface-2); border-color: var(--n-line); min-width: 110px; }
.nid .n-c { text-align: center; }
.nid .n-danger { padding-top: 10px; border-top: 1px dashed var(--n-line); }
.nid .n-fgrid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .nid .n-fgrid { grid-template-columns: 1fr 1fr; } }
.nid .n-fgrid > div { display: flex; flex-direction: column; gap: 12px; }
.nid .n-data { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--n-line); }
.nid .n-data-b { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }

.nid .n-toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); z-index: 2147483001; background: var(--n-ink); color: var(--n-surface); font-size: 14px; font-weight: 550; padding: 10px 16px; border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); text-align: center; }
.nid .n-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* chargement */
.nid .n-skel { display: inline-block; height: 24px; width: 60%; border-radius: 8px; background: linear-gradient(90deg, var(--n-surface-2), var(--n-line), var(--n-surface-2)); background-size: 200% 100%; animation: n-shim 1.4s linear infinite; }
.nid .n-skel--s { height: 12px; width: 80%; }
.nid .n-skel--block { display: block; width: 100%; height: 150px; }
@keyframes n-shim { to { background-position: -200% 0; } }

/* pied */
.nid .n-foot { padding-block: 18px 30px; }
.nid .n-foot p { font-size: 12.5px; color: var(--n-ink-3); max-width: 90ch; }
.nid .n-foot b { color: var(--n-ink-2); }
.nid .n-foot-l { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; }
.nid .n-foot-l a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--n-ink-2); }
.nid .n-foot-l .n-ic { width: 14px; height: 14px; }

/* nav : onglets + niveau de détail */
.nid .n-navrow { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; }
.nid .n-navrow .n-tabs { flex: 1 1 auto; min-width: 0; }
.nid .n-lvl { flex: none; display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--n-band-line); margin-bottom: 10px; }
@container nid (min-width: 900px) { .nid .n-lvl { margin-block: 0 4px; } }
.nid .n-lvl-b { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--n-band-ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.nid .n-lvl-b:hover { color: var(--n-band-ink); }
.nid .n-lvl-b.is-on { background: var(--n-band-ink); color: var(--n-band); }
.nid .n-lvl-b:focus-visible { outline-color: var(--n-band-gold); }
.nid .n-lvl--card { background: var(--n-surface-2); border-color: var(--n-line); margin: 0; align-self: flex-start; }
.nid .n-lvl--card .n-lvl-b { color: var(--n-ink-2); font-size: 13.5px; padding: 6px 14px; }
.nid .n-lvl--card .n-lvl-b:hover { color: var(--n-ink); }
.nid .n-lvl--card .n-lvl-b.is-on { background: var(--n-ink); color: var(--n-surface); }
.nid .n-lvl--card .n-lvl-b:focus-visible { outline-color: var(--n-focus); }

/* espaces (1.11) : sections d’un espace, avec leur ancre (#patrimoine, #revenus, #outils, #comprendre) */
.nid .n-sec { display: flex; flex-direction: column; gap: 18px; min-width: 0; scroll-margin-top: 120px; }
.nid .n-sec-h { font-family: var(--n-display); font-weight: 650; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; color: var(--n-ink); display: flex; align-items: center; gap: 12px; padding-top: 14px; }
.nid .n-sec-h::after { content: ""; flex: 1; height: 1px; background: var(--n-line); }
/* bandeau : liens vers une section plus bas dans l’espace */
.nid .n-hero-jumps { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 6px; }
.nid .n-jump { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 14px; font-weight: 600; color: var(--n-band-gold); }
.nid .n-jump .n-ic { width: 16px; height: 16px; }
.nid .n-jump:hover { text-decoration: underline; text-underline-offset: 3px; }
.nid .n-jump:focus-visible { outline-color: var(--n-band-gold); }
/* téléphone, page plein écran : les quatre espaces dans une barre en bas de l’écran */
.nid .n-dock { display: none; }
.nid .n-dock-i { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 50px; border-radius: 12px; font-size: 11.5px; font-weight: 600; color: var(--n-ink-3); -webkit-tap-highlight-color: transparent; }
.nid .n-dock-i .n-ic { width: 24px; height: 24px; }
.nid .n-dock-i.is-on { color: var(--n-accent-ink); font-weight: 700; }
.nid .n-dock-i.is-on .n-ic { stroke-width: 2.1; }
.nid .n-dock-i:focus-visible { outline-offset: -3px; }
@media (max-width: 719px) {
  .nid--app.has-dock > .n-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--n-surface); border-top: 1px solid var(--n-line); box-shadow: 0 -8px 24px -18px rgba(15, 28, 23, .35); padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
  .nid--app.has-dock.is-typing > .n-dock { display: none; }
  .nid--app.has-dock .n-navrow .n-tabs { display: none; }
  .nid--app.has-dock > .n-shell { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .nid--app.has-dock > .n-toast { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .nid .n-dock { display: none !important; } }
.nid .n-wel-lvl { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--n-accent-wash); }
.nid .n-wel-lvl .n-help { color: var(--n-ink-2); }

/* revenus : bandeau */
@container nid (min-width: 900px) { .nid .n-hero--rev { grid-template-columns: minmax(250px, .85fr) minmax(0, 1.7fr); } .nid .n-hero--rev.n-hero--empty { grid-template-columns: minmax(0, 1fr); } }
.nid .n-band .n-seg { height: 24px; max-width: 420px; margin-top: 8px; }
.nid .n-band .n-seg-b span.is-dk { color: #10231B; }
.nid .n-hero-ph { border: 1px dashed var(--n-band-line); border-radius: 14px; padding: 18px; color: var(--n-band-ink-2); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 14px; max-width: 520px; }
.nid .n-hero-ph b { color: var(--n-band-ink); }

/* revenus : cap */
.nid .n-capf { display: grid; gap: 12px; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
@container nid (max-width: 420px) { .nid .n-capf { grid-template-columns: minmax(0, 1fr); } }
.nid .n-cap-p { display: flex; flex-direction: column; gap: 2px; }
.nid .n-cap-ph { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--n-ink-2); }
.nid .n-cap-ph span:last-child { font-variant-numeric: tabular-nums; color: var(--n-ink-3); }
.nid .n-cap-lev { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--n-ink-2); padding: 10px 12px; border-radius: 12px; background: var(--n-pos-wash); }
.nid .n-cap-lev .n-ic { color: var(--n-pos); margin-top: 1px; }
.nid .n-cap-lev b { color: var(--n-pos); }

/* revenus : taux d’épargne */
.nid .n-rates { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.nid .n-rates-k { font-size: 12.5px; color: var(--n-ink-3); font-weight: 550; }
.nid .n-rates-v { font-size: clamp(26px, 3.8cqi, 34px); font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.nid .n-rates-v.is-gold { color: var(--n-accent-ink); }
.nid .n-rates-arrow { color: var(--n-ink-3); align-self: flex-end; margin-bottom: 6px; }
.nid .n-rates .n-delta { align-self: flex-end; margin-bottom: 6px; }
.nid .n-seg-b.is-neutral { box-shadow: inset 0 0 0 1px var(--n-line); }
.nid .n-seg-b.is-neutral span { color: var(--n-ink-2); }
.nid .n-rtab tbody th i.is-neutral { box-shadow: inset 0 0 0 1px var(--n-axis); }

/* revenus : placements */
.nid .n-ytab tbody th { min-width: 170px; }
.nid .n-ytab-n { display: flex; align-items: center; gap: 8px; }
.nid .n-ytab-n i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.nid .n-ytab-n b { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.nid .n-ytab-s { display: block; font-size: 12px; color: var(--n-ink-3); padding-left: 16px; font-weight: 400; }
.nid .n-ytab td:nth-child(2), .nid .n-ytab td:nth-child(3) { width: 116px; }
.nid .n-ytab .n-in--cell { min-width: 86px; background: var(--n-surface-2); border-color: var(--n-line); }
.nid .n-ytab .n-in--cell:focus { background: var(--n-surface); border-color: var(--n-accent); }
.nid .n-ytab input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--n-accent-fill); }
.nid .n-ytab tfoot td.n-num { font-size: 15px; }
.nid .n-ytab-r { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--n-ink-2); cursor: pointer; }
.nid .n-ytab-r span, .nid .n-ytab-u { display: none; }
.nid .n-ytab-u { font-size: 12px; color: var(--n-ink-3); font-weight: 400; }
/* téléphone : une ligne par placement devient un petit bloc (nom + case, puis les deux champs et le résultat) */
@container nid (max-width: 560px) {
  .nid .n-ytab, .nid .n-ytab tbody, .nid .n-ytab tfoot { display: block; width: 100%; }
  .nid .n-ytab thead { display: none; }
  .nid .n-ytab tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; grid-template-areas: "n n c" "r a p"; gap: 6px 10px; align-items: center; padding-block: 10px; border-bottom: 1px solid var(--n-line); }
  .nid .n-ytab tbody tr > * { border: 0; padding: 0; min-width: 0; }
  .nid .n-ytab tbody th { grid-area: n; min-width: 0; padding: 0; }
  .nid .n-ytab tbody td:nth-child(2) { grid-area: r; width: auto; }
  .nid .n-ytab tbody td:nth-child(3) { grid-area: a; width: auto; }
  .nid .n-ytab tbody td:nth-child(4) { grid-area: p; min-width: 64px; }
  .nid .n-ytab tbody td:nth-child(5) { grid-area: c; text-align: right; }
  .nid .n-ytab .n-in--cell { min-width: 0; }
  .nid .n-ytab-r span, .nid .n-ytab-u { display: inline; }
  .nid .n-ytab tfoot tr { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; }
  .nid .n-ytab tfoot th, .nid .n-ytab tfoot td { border: 0; padding: 0; }
  .nid .n-ytab tfoot td:empty { display: none; }
}

/* revenus : parcours */
.nid .n-career { display: flex; flex-direction: column; }
.nid .n-career li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 34px; gap: 12px; align-items: center; padding-block: 9px; position: relative; }
.nid .n-career li::before { content: ""; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--n-line); }
.nid .n-career li:first-child::before { top: 50%; }
.nid .n-career li:last-child::before { bottom: 50%; }
.nid .n-career li:only-child::before { display: none; }
.nid .n-career-dot { position: relative; z-index: 1; width: 12px; height: 12px; margin-left: 5px; border-radius: 50%; background: var(--n-accent-fill); box-shadow: 0 0 0 3px var(--n-surface); }
.nid .n-career li.is-now .n-career-dot { width: 16px; height: 16px; margin-left: 3px; box-shadow: 0 0 0 3px var(--n-surface), 0 0 0 6px var(--n-accent-wash); }
.nid .n-career-t { display: flex; flex-direction: column; min-width: 0; }
.nid .n-career-t b { font-size: 14.5px; overflow-wrap: anywhere; }
.nid .n-career-t span { font-size: 12.5px; color: var(--n-ink-3); }
.nid .n-career-v { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nid .n-career-v b { font-size: 15px; }
.nid .n-career-v span { font-size: 12px; color: var(--n-ink-3); }
.nid .n-career-v .pos { color: var(--n-pos); }
.nid .n-career-v .neg { color: var(--n-neg); }

/* liberté : hypothèses en niveau Essentiel, sensibilité en Expert */
.nid .n-hyp { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--n-surface-2); font-size: 13.5px; color: var(--n-ink-2); }
.nid .n-hyp b { color: var(--n-ink); }
/* feuille de route : objectif, fourchette selon les marchés, très longue liberté */
.nid .n-hero-range { font-size: 13.5px; color: var(--n-band-gold); font-weight: 550; }
.nid .n-egg-range { color: var(--n-band-gold); }
.nid .n-hyp-lead { color: var(--n-ink-2); font-size: 13.5px; }
.nid .n-road-lead { font-size: 15.5px; line-height: 1.55; color: var(--n-ink-2); }
.nid .n-road-lead b { color: var(--n-ink); }
.nid .n-road-bar { position: relative; height: 10px; margin: 6px 4px 0; border-radius: 999px; background: linear-gradient(90deg, var(--n-accent-fill), color-mix(in srgb, var(--n-accent-fill) 22%, var(--n-surface-2))); }
.nid .n-road-bar i { position: absolute; inset: -4px -4px; border-radius: 999px; border: 1px dashed color-mix(in srgb, var(--n-accent) 45%, transparent); }
.nid .n-road-bar span { position: absolute; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--n-surface); border: 4px solid var(--n-accent); box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.nid .n-road-ends { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--n-ink-3); }
.nid .n-road-ends p { display: flex; flex-direction: column; gap: 1px; }
.nid .n-road-ends p:last-child { text-align: right; align-items: flex-end; }
.nid .n-road-ends b { font-size: 14px; color: var(--n-ink); font-variant-numeric: tabular-nums; }
.nid .n-road-warn { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--n-warn-wash); color: var(--n-ink-2); font-size: 14px; border-left: 3px solid var(--n-warn); }
.nid .n-road-warn b { color: var(--n-ink); }
.nid .n-road-life { font-size: 14px; color: var(--n-ink-2); }
.nid .n-heat { border-collapse: separate; border-spacing: 3px; font-size: 13px; width: auto; min-width: 100%; }
.nid .n-heat th { font-size: 11.5px; font-weight: 600; color: var(--n-ink-3); padding: 4px 6px; text-align: center; white-space: nowrap; }
.nid .n-heat tbody th { text-align: right; padding-right: 10px; }
.nid .n-heat td { text-align: center; padding: 9px 4px; border-radius: 6px; font-variant-numeric: tabular-nums; font-weight: 600; min-width: 58px; color: var(--n-ink-3); }
.nid .n-heat td.is-cur { outline: 2px solid var(--n-ink); outline-offset: -2px; }

/* vue d’ensemble : budget en deux colonnes quand il a la place */
.nid .n-snap > div { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.nid .n-snap { display: flex; flex-direction: column; gap: 14px; }
@container nid (min-width: 860px) { .nid .n-snap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px 32px; align-items: start; } }

/* comprendre : séparation par niveau */
.nid .n-edu-sep { grid-column: 1 / -1; font-family: var(--n-display); font-weight: 650; font-size: 17px; color: var(--n-ink-2); padding-top: 6px; display: flex; align-items: center; gap: 12px; }
.nid .n-edu-sep::after { content: ""; flex: 1; height: 1px; background: var(--n-line); }

/* fenêtre compte : rendement */
.nid [data-acc-cat] { display: flex; flex-direction: column; gap: 14px; }
.nid .n-yfields { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.nid .n-yfields .n-in { padding-right: 64px; }
.nid .n-or { font-size: 13px; color: var(--n-ink-3); }

/* boîte à outils */
@container nid (min-width: 760px) { .nid .n-hero--tool { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } .nid .n-hero--tool .n-kv { margin-top: 0; justify-content: flex-end; } }
.nid .n-tgroup { display: flex; flex-direction: column; gap: 12px; }
.nid .n-tgroups { display: grid; gap: 26px 18px; grid-template-columns: minmax(0, 1fr); }
@container nid (min-width: 1000px) { .nid .n-tgroups { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nid .n-tgroup:first-child { grid-column: 1 / -1; } .nid .n-tgroup:not(:first-child) .n-tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.nid .n-tgroup-t { font-family: var(--n-display); font-size: 18px; font-weight: 650; color: var(--n-ink); }
.nid .n-tgrid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@container nid (min-width: 560px) { .nid .n-tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container nid (min-width: 1000px) { .nid .n-tgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nid .n-tcard { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--n-surface); border: 1px solid var(--n-line); color: var(--n-ink); text-decoration: none; box-shadow: var(--n-shadow); transition: border-color .15s, transform .15s; min-height: 156px; }
.nid .n-tcard:hover { border-color: var(--n-accent); transform: translateY(-1px); }
.nid .n-tcard:focus-visible { outline: 2px solid var(--n-focus); outline-offset: 2px; }
.nid .n-tcard-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--n-accent-wash); color: var(--n-accent-ink); margin-bottom: 4px; }
.nid .n-tcard-t { font-weight: 650; font-size: 15.5px; }
.nid .n-tcard-d { font-size: 13.5px; color: var(--n-ink-2); line-height: 1.45; flex: 1; }
.nid .n-tcard-f { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; margin-top: 6px; }
.nid .n-tcard-f i { font-style: normal; color: var(--n-ink-3); }
.nid .n-tcard-f b { color: var(--n-accent-ink); font-weight: 650; margin-left: auto; }
.nid .n-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.nid .n-toolbar .n-btn { margin-left: auto; }
.nid .n-back { font-weight: 600; }
.nid .n-src a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.nid .n-rtab td.n-num { text-align: right; }
.nid .n-dtab { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.nid .n-dtab th, .nid .n-dtab td { padding: 7px 8px; border-bottom: 1px solid var(--n-line); text-align: right; white-space: nowrap; }
.nid .n-dtab thead th { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--n-ink-3); padding-top: 4px; }
.nid .n-dtab th:first-child { text-align: left; }
.nid .n-dtab tbody th { font-weight: 550; white-space: normal; }
.nid .n-dtab tbody tr:last-child > * { border-bottom: 0; }
.nid .n-dtab .pos { color: var(--n-pos); }
.nid .n-dtab .neg { color: var(--n-neg); }
.nid .n-tool .n-card--inputs .n-card-a .n-link { font-size: 12.5px; }

body.nid-lock { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .nid *, .nid *::before, .nid *::after { animation: none !important; transition: none !important; }
}

/* brut → net : échelle des salaires, comparaison des statuts */
.nid .n-ladder { list-style: none; margin: 6px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nid .n-ladder li { display: grid; grid-template-columns: minmax(0, 12em) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 9px; font-size: 13.5px; color: var(--n-ink-2); }
.nid .n-ladder-b { height: 6px; border-radius: 999px; background: var(--n-surface-2); overflow: hidden; }
.nid .n-ladder-b i { display: block; height: 100%; border-radius: inherit; background: var(--n-ink-3); opacity: .5; }
.nid .n-ladder-v { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--n-ink); text-align: right; min-width: 5.5em; }
.nid .n-ladder li.is-you { background: var(--n-accent-wash); color: var(--n-ink); font-weight: 650; }
.nid .n-ladder li.is-you .n-ladder-b i { background: var(--n-gold); opacity: 1; }
@container nid (max-width: 480px) {
  .nid .n-ladder li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .nid .n-ladder-b { grid-column: 1 / -1; grid-row: 2; }
}
.nid .n-dtab tr.is-cur th, .nid .n-dtab tr.is-cur td { background: var(--n-accent-wash); }
.nid .n-dtab th em { font-style: normal; font-weight: 500; color: var(--n-ink-3); }
.nid .n-muted { color: var(--n-ink-3); font-weight: 400; }
.nid .n-chips .n-segbtn { font-variant-numeric: tabular-nums; }

/* intégration dans un thème : un conteneur « inline-size » n'a pas de largeur propre ; sans largeur explicite,
   une colonne flexible du thème se réduit à presque rien. On demande la largeur utile, bornée au conteneur. */
.nid.nid--embed { width: 1152px; max-width: 100%; box-sizing: border-box; }

/* page du Nid en plein écran (modèle du plugin) : l’espace remplit la fenêtre, sans le thème autour */
body.nid-app-page { margin: 0 !important; padding: 0 !important; background: var(--n-bg) !important; }
body.nid-app-page .nid.nid--app { width: 100%; max-width: none; min-height: 100vh; min-height: 100dvh; border: 0; border-radius: 0; }
body.admin-bar.nid-app-page .nid--app .n-top { top: var(--wp-admin--admin-bar--height, 32px); }
.nid.nid--gate-page { width: 100%; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; border: 0; border-radius: 0; }
.nid.nid--gate-page > .n-band { flex: 1; display: flex; align-items: center; }
.nid.nid--gate-page > .n-band > .n-wrap { width: 100%; }
.nid .n-gate-back { margin: 0 0 28px; font-size: 14px; }
.nid .n-gate-back a { color: var(--n-band-ink-2); text-decoration: none; }
.nid .n-gate-back a:hover { color: var(--n-band-ink); text-decoration: underline; }

/* ------------------------------------------------- page de présentation (visiteurs) */
.nid--land { min-height: 100vh; min-height: 100dvh; }
.nid .n-btn--sm { min-height: 34px; padding: 6px 12px; font-size: 13.5px; border-radius: 10px; }
.nid .n-btn--sm .n-ic { width: 16px; height: 16px; }
.nid .n-btn--block { width: 100%; }
.nid .n-land-hero { display: grid; gap: 28px 44px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "a" "c" "m"; padding-block: 26px 40px; align-items: start; }
.nid .n-land-a { grid-area: a; } .nid .n-land-c { grid-area: c; } .nid .n-land-m { grid-area: m; min-width: 0; }
@container nid (min-width: 900px) { .nid .n-land-hero { grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); grid-template-areas: "a c" "m c"; row-gap: 8px; padding-block: 44px 56px; } }
.nid .n-land-a { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.nid .n-land-h { font-family: var(--n-display); font-weight: 700; font-size: clamp(32px, 5.4cqi, 52px); line-height: 1.04; letter-spacing: -0.025em; color: var(--n-band-ink); text-wrap: balance; max-width: 18ch; font-variation-settings: "opsz" 72; }
.nid .n-land-lead { font-size: 16.5px; line-height: 1.55; color: var(--n-band-ink-2); max-width: 46ch; }
.nid .n-land-mock { max-width: 470px; border-radius: 18px; padding: 16px 18px 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--n-band-line); box-shadow: 0 22px 50px -32px rgba(0, 0, 0, .7); }
.nid .n-mock-h { display: flex; justify-content: space-between; align-items: center; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--n-band-ink-2); font-weight: 600; }
.nid .n-mock-h em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--n-band); background: var(--n-band-gold); border-radius: 999px; padding: 1px 9px; font-size: 11.5px; font-weight: 650; }
.nid .n-mock-v { font-size: 34px; font-weight: 650; letter-spacing: -0.02em; color: var(--n-band-ink); margin-top: 4px; }
.nid .n-mock-d { font-size: 13.5px; color: #8FDDB2; font-weight: 550; }
.nid .n-land-mock svg { width: 100%; height: 72px; margin: 8px 0 10px; }
.nid .n-mock-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--n-band-line); padding-top: 10px; }
.nid .n-mock-k span { display: block; font-size: 11.5px; color: var(--n-band-ink-2); }
.nid .n-mock-k b { font-size: 14.5px; color: var(--n-band-ink); white-space: nowrap; }
.nid .n-login { background: var(--n-surface); color: var(--n-ink); border-radius: 20px; padding: 22px 20px 18px; box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .55); display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 96px; }
.nid .n-login h2 { font-family: var(--n-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.nid .n-login-f { display: flex; flex-direction: column; gap: 12px; }
.nid .n-login-f .n-in { min-height: 44px; font-size: 16px; }
.nid .n-login-msg { font-size: 14px; line-height: 1.45; border-radius: 12px; padding: 10px 12px; background: var(--n-neg-wash); color: var(--n-neg); font-weight: 550; }
.nid .n-login-msg--ok { background: var(--n-pos-wash); color: var(--n-pos); }
.nid .n-login-msg--info { background: var(--n-warn-wash); color: var(--n-warn); }
.nid .n-login-links { text-align: center; }
.nid .n-login-note { font-size: 13.5px; color: var(--n-ink-3); border-top: 1px solid var(--n-line); padding-top: 12px; }
.nid .n-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; color: var(--n-ink-3); border-radius: 8px; }
.nid .n-eye[aria-pressed="true"] { color: var(--n-accent-ink); }
/* inscription / connexion : onglets, Google, séparateur, champ piège */
.nid--land .n-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 14px; background: var(--n-surface-2); border: 1px solid var(--n-line); margin: 0; overflow: visible; }
.nid--land .n-tab { min-height: 40px; padding: 8px 10px; border-radius: 11px; font-size: 14.5px; font-weight: 650; color: var(--n-ink-2); transition: background .15s, color .15s; }
.nid--land .n-tab:hover { color: var(--n-ink); background: transparent; }
.nid--land .n-tab.is-on { background: var(--n-surface); color: var(--n-ink); box-shadow: 0 1px 3px rgba(16, 35, 27, .14), 0 0 0 1px var(--n-line); }
.nid .n-pane { display: flex; flex-direction: column; gap: 14px; }
.nid .n-pane[hidden] { display: none; }
.nid .n-social { display: flex; flex-direction: column; gap: 10px; }
.nid .n-btn--google, .nid .n-btn--facebook { min-height: 46px; background: var(--n-surface); border-color: var(--n-line-2, var(--n-line)); font-size: 15px; }
.nid .n-btn--google:hover, .nid .n-btn--facebook:hover { background: var(--n-surface-2); filter: none; }
.nid .n-or { display: flex; align-items: center; gap: 10px; color: var(--n-ink-3); font-size: 13px; }
.nid .n-or::before, .nid .n-or::after { content: ""; flex: 1; height: 1px; background: var(--n-line); }
.nid .n-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.nid .n-login-msg .n-link { font-weight: 650; }
/* Mon compte : suppression */
.nid .n-acc-danger .n-fgroup-t { color: var(--n-neg); }
.nid .n-acc-danger .n-acc-row p { color: var(--n-ink-2); font-size: 14px; }
.nid .n-land { display: flex; flex-direction: column; gap: 44px; padding-block: 36px 40px; }
.nid .n-eyebrow--ink { color: var(--n-accent-ink); }
.nid .n-land-t { font-family: var(--n-display); font-weight: 700; font-size: clamp(24px, 3.4cqi, 32px); letter-spacing: -0.015em; line-height: 1.12; margin-top: 4px; text-wrap: balance; }
.nid .n-feats { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 18px; }
@container nid (min-width: 620px) { .nid .n-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container nid (min-width: 980px) { .nid .n-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nid .n-feat { background: var(--n-surface); border: 1px solid var(--n-line); border-radius: var(--n-r); padding: 18px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--n-shadow); }
.nid .n-feat-i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--n-accent-wash); color: var(--n-accent-ink); margin-bottom: 4px; }
.nid .n-feat h3 { font-weight: 650; font-size: 16.5px; line-height: 1.3; }
.nid .n-feat p { color: var(--n-ink-2); font-size: 14.5px; }
.nid .n-land-2 { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: center; }
@container nid (min-width: 900px) { .nid .n-land-2 { grid-template-columns: 1.3fr 1fr; gap: 32px; } }
.nid .n-land-steps { counter-reset: nst; display: grid; gap: 10px; margin-top: 16px; }
.nid .n-land-steps li { counter-increment: nst; display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: center; background: var(--n-surface); border: 1px solid var(--n-line); border-radius: 14px; padding: 12px 14px; }
.nid .n-land-steps li::before { content: counter(nst); grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--n-band); color: var(--n-band-gold); }
.nid .n-land-steps b { font-weight: 650; }
.nid .n-land-steps span { color: var(--n-ink-2); font-size: 14.5px; }
.nid .n-land-priv { background: var(--n-band); color: var(--n-band-ink); border-radius: var(--n-r); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.nid .n-land-priv .n-ic { color: var(--n-band-gold); width: 26px; height: 26px; }
.nid .n-land-priv h3 { font-weight: 650; font-size: 17px; }
.nid .n-land-priv p { color: var(--n-band-ink-2); font-size: 14.5px; }
.nid .n-land-cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; background: var(--n-surface); border: 1px solid var(--n-line); border-radius: 20px; padding: 28px 20px; }
.nid .n-land-cta p { color: var(--n-ink-2); max-width: 52ch; }
.nid .n-land-cta .n-hero-btns { justify-content: center; }

/* ------------------------------------------------------------------ partage */
.nid .n-share-url { display: flex; gap: 8px; }
.nid .n-share-url .n-in { flex: 1; min-width: 0; font-size: 14px; }
.nid .n-share { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 520px) { .nid .n-share { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nid .n-share-b { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: var(--n-surface-2); border: 1px solid var(--n-line); font-size: 13px; font-weight: 600; color: var(--n-ink); text-align: center; transition: background .15s; }
.nid .n-share-b:hover { background: var(--n-accent-wash); }
.nid .n-share-b .n-ic { width: 22px; height: 22px; color: var(--n-accent-ink); }

/* ---------------------------------------------------------------- mon compte */
.nid .n-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--n-band); color: var(--n-band-gold); font-weight: 700; font-size: 17px; flex: none; letter-spacing: .02em; }
.nid .n-avbtn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--n-band-gold); color: var(--n-band); font-weight: 750; font-size: 13px; letter-spacing: .02em; flex: none; margin-left: 2px; }
.nid .n-avbtn:focus-visible { outline-color: var(--n-band-gold); }
.nid .n-acc-h { display: flex; align-items: center; gap: 14px; }
.nid .n-acc-h div b { display: block; font-size: 17px; font-weight: 650; }
.nid .n-acc-h div span { font-size: 13px; color: var(--n-ink-3); }
.nid .n-acc-sec { border-top: 1px solid var(--n-line); padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.nid .n-acc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.nid .n-acc-row p { font-size: 14px; color: var(--n-ink-2); }
.nid .n-bkl { display: flex; flex-direction: column; gap: 6px; }
.nid .n-bkl li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; background: var(--n-surface-2); border-radius: 10px; font-size: 13.5px; }
.nid .n-bkl li span { display: block; color: var(--n-ink-3); font-size: 12.5px; }
.nid .n-acc-ok { font-size: 13.5px; color: var(--n-pos); font-weight: 600; }

/* téléphone : barre du haut sur une ligne (le point vert suffit quand tout est enregistré, le texte reste lu) */
@container nid (max-width: 480px) {
  .nid .n-bar { gap: 8px; }
  .nid .n-brand-t span { display: none; }
  .nid .n-brand-t b { white-space: nowrap; }
  .nid .n-sync--ok { font-size: 0; gap: 0; padding: 7px; }
  /* démo : « Se connecter » devient une icône (le bandeau de la démo garde le bouton en toutes lettres) */
  .nid .n-btn--login { padding-inline: 10px; gap: 0; }
  .nid .n-btn--login span { display: none; }
}
/* téléphone : en descendant, onglets et niveaux se rangent sous la barre ; ils reviennent dès qu’on remonte */
@container nid (max-width: 719px) {
  .nid--app .n-top { -webkit-clip-path: inset(0 0 -2px 0); clip-path: inset(0 0 -2px 0); transition: clip-path .24s ease, -webkit-clip-path .24s ease; }
  .nid--app .n-top.is-tuck { -webkit-clip-path: inset(0 0 var(--n-navh, 0px) 0); clip-path: inset(0 0 var(--n-navh, 0px) 0); }
  .nid--app .n-top .n-navrow { transition: opacity .2s ease, transform .24s ease; }
  .nid--app .n-top.is-tuck .n-navrow { opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .16s ease, transform .24s ease, visibility 0s linear .24s; }
  .nid--app .n-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: var(--n-navh, 0px); height: 1px; background: var(--n-band-line); opacity: 0; transition: opacity .2s; pointer-events: none; }
  .nid--app .n-top.is-tuck::after { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .nid--app .n-top, .nid--app .n-top .n-navrow, .nid--app .n-top::after { transition: none !important; } }

/* versé ou gagné */
.nid .n-perf-lead { font-size: 15.5px; line-height: 1.55; color: var(--n-ink-2); }
.nid .n-perf-lead b { color: var(--n-ink); }
.nid .n-perf-lead b.pos { color: var(--n-pos); }
.nid .n-perf-lead b.neg { color: var(--n-neg); }
.nid .n-perf-rate { font-size: 14px; color: var(--n-ink-2); }
.nid .n-table--perf .n-sub { display: block; font-size: 12px; color: var(--n-ink-3); font-weight: 500; }
/* téléphone : une fiche par compte (nom et plus-value, puis versé, valeur, rendement) au lieu d’un tableau à faire défiler */
@container nid (max-width: 560px) {
  .nid .n-table--perf, .nid .n-table--perf tbody { display: block; width: 100%; }
  .nid .n-table--perf thead { display: none; }
  .nid .n-table--perf tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "n n g" "v w r"; gap: 10px 12px; align-items: start; padding-block: 12px; border-bottom: 1px solid var(--n-line); }
  .nid .n-table--perf tbody tr:hover { background: none; }
  .nid .n-table--perf tbody tr > * { border: 0; padding: 0; min-width: 0; }
  .nid .n-table--perf tbody th { grid-area: n; }
  .nid .n-table--perf .n-acc { min-width: 0; }
  .nid .n-table--perf td.n-pv { grid-area: v; text-align: left; }
  .nid .n-table--perf td.n-pw { grid-area: w; text-align: left; }
  .nid .n-table--perf td.n-pg { grid-area: g; }
  .nid .n-table--perf td.n-pr { grid-area: r; }
  .nid .n-table--perf td[data-l]::before { content: attr(data-l); display: block; margin-bottom: 2px; font-size: 11.5px; font-weight: 600; color: var(--n-ink-3); font-variant-numeric: normal; }
}
.nid .n-ptab--flows td:nth-child(4) { width: 150px; }
@media (pointer: coarse) { .nid .n-in { font-size: 16px; } }   /* iPhone : sous 16 px, Safari zoome sur le champ touché */
.nid .n-pte label { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; }
.nid .n-pte-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nid .n-ptab td.n-c { text-align: center; }
/* point sur téléphone : une fiche par compte, le tableau ne tient pas en largeur */
@container n-dlg (max-width: 579px) {
  .nid .n-ptab, .nid .n-ptab tbody { display: block; }
  .nid .n-ptab thead { display: none; }
  .nid .n-ptab tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "n n" "v e"; gap: 8px 12px; align-items: end; padding-block: 12px; border-bottom: 1px solid var(--n-line); }
  .nid .n-ptab--flows tr { grid-template-areas: "n n" "v c" "e e"; }
  .nid .n-ptab--flows tr.n-ptr--debt { grid-template-areas: "n n" "v e"; }
  .nid .n-ptab th, .nid .n-ptab td { padding: 0; border: 0; }
  .nid .n-ptab tbody th { grid-area: n; min-width: 0; }
  .nid .n-ptab td.n-ptv { grid-area: v; width: auto; }
  .nid .n-ptab td.n-ptc { grid-area: c; width: auto; }
  .nid .n-ptab td.n-pte { grid-area: e; text-align: left; }
  .nid .n-ptab td.n-ptc--na { display: none; }
  .nid .n-ptab td[data-l]::before { content: attr(data-l); display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; color: var(--n-ink-3); }
  .nid .n-ptab .n-in--cell { min-width: 0; }
  .nid .n-pte-l { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-size: 13.5px; color: var(--n-ink-2); }
}
