@font-face {
  font-family: "Filonio Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/assets/fonts/NotoSans-latin.woff2") format("woff2");
}

/* Généré par `npm run tokens` depuis tokens/tokens.json (Nova (Filonio), v2) — ne pas éditer. */

html[data-filonio="on"] {
  color-scheme: light;

  /* Couleurs */
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --surface-3: #edeff3;
  --surface-raised: #ffffff;
  --overlay: #0f172acc;
  --border: #d5d9e0;
  --border-strong: #7f8896;
  --text: #1b1f27;
  --text-2: #4b5563;
  --text-3: #5f6b7a;
  --text-inverse: #ffffff;
  --text-disabled: #9aa3b0;
  --brand: #2b5fd9;
  --brand-hover: #2350b8;
  --brand-soft: #e6eefc;
  --on-brand: #ffffff;
  --success: #17703f;
  --success-soft: #e3f5ea;
  --warning: #9a5b00;
  --warning-soft: #fdf1d8;
  --danger: #c42b2b;
  --danger-soft: #fce8e8;
  --info: var(--brand);
  --info-soft: var(--brand-soft);
  --focus: var(--brand);
  --status-new: #2b5fd9;
  --status-progress: #9a5b00;
  --status-done: #17703f;
  --status-blocked: #c42b2b;
  --status-neutral: #5f6b7a;
  --priority-low: #5f6b7a;
  --priority-normal: #2b5fd9;
  --priority-high: #9a5b00;
  --priority-urgent: #c42b2b;
  --sidebar-bg: #f6f7f9;
  --sidebar-active: var(--brand-soft);
  --topbar-bg: var(--surface);
  --button-tonal: var(--surface-3);
  --button-ghost-hover: var(--surface-3);
  --row-hover: var(--surface-2);
  --row-action-hover: var(--surface-3);

  /* Espacements */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Rayons */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-full: 999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.10), 0 1px 2px rgba(15,23,42,0.06);
  --shadow-lg: 0 16px 40px rgba(15,23,42,0.16), 0 2px 6px rgba(15,23,42,0.08);

  /* Tailles */
  --control-sm: 32px;
  --control-md: 36px;
  --control-lg: 40px;
  --icon-sm: 14px;
  --icon-md: 18px;
  --icon-lg: 20px;
  --topbar-h: 56px;
  --sidebar-w: 240px;
  --sidebar-w-compact: 64px;
  --panel-w: 320px;
  --content-max: 1600px;

  /* Points de rupture (information : non utilisables dans @media) */
  --bp-sm: 640px;
  --bp-md: 1024px;
  --bp-lg: 1280px;
  --bp-xl: 1600px;

  /* Durées et courbes */
  --duration-fast: 100ms;
  --duration-base: 160ms;
  --duration-slow: 240ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);

  /* Plans */
  --z-sticky: 100;
  --z-dropdown: 1000;
  --z-drawer: 1200;
  --z-modal: 1300;
  --z-toast: 1400;
  --z-tooltip: 1500;

  /* Typographie */
  --font-sans: "Filonio Sans", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  --text-display-size: 28px;
  --text-display-line: 36px;
  --text-display-weight: 600;
  --text-display-tracking: -0.01em;
  --font-display: var(--text-display-weight) var(--text-display-size) / var(--text-display-line) var(--font-sans);
  --text-h1-size: 24px;
  --text-h1-line: 32px;
  --text-h1-weight: 600;
  --text-h1-tracking: -0.01em;
  --font-h1: var(--text-h1-weight) var(--text-h1-size) / var(--text-h1-line) var(--font-sans);
  --text-h2-size: 18px;
  --text-h2-line: 26px;
  --text-h2-weight: 600;
  --font-h2: var(--text-h2-weight) var(--text-h2-size) / var(--text-h2-line) var(--font-sans);
  --text-h3-size: 15px;
  --text-h3-line: 22px;
  --text-h3-weight: 600;
  --font-h3: var(--text-h3-weight) var(--text-h3-size) / var(--text-h3-line) var(--font-sans);
  --text-body-size: 14px;
  --text-body-line: 20px;
  --text-body-weight: 400;
  --font-body: var(--text-body-weight) var(--text-body-size) / var(--text-body-line) var(--font-sans);
  --text-body-strong-size: 14px;
  --text-body-strong-line: 20px;
  --text-body-strong-weight: 600;
  --font-body-strong: var(--text-body-strong-weight) var(--text-body-strong-size) / var(--text-body-strong-line) var(--font-sans);
  --text-body-sm-size: 13px;
  --text-body-sm-line: 18px;
  --text-body-sm-weight: 400;
  --font-body-sm: var(--text-body-sm-weight) var(--text-body-sm-size) / var(--text-body-sm-line) var(--font-sans);
  --text-label-size: 13px;
  --text-label-line: 18px;
  --text-label-weight: 500;
  --font-label: var(--text-label-weight) var(--text-label-size) / var(--text-label-line) var(--font-sans);
  --text-caption-size: 12px;
  --text-caption-line: 16px;
  --text-caption-weight: 400;
  --font-caption: var(--text-caption-weight) var(--text-caption-size) / var(--text-caption-line) var(--font-sans);
  --text-overline-size: 11px;
  --text-overline-line: 16px;
  --text-overline-weight: 600;
  --text-overline-tracking: 0.06em;
  --font-overline: var(--text-overline-weight) var(--text-overline-size) / var(--text-overline-line) var(--font-sans);
  --text-code-size: 13px;
  --text-code-line: 20px;
  --text-code-weight: 400;
  --font-code: var(--text-code-weight) var(--text-code-size) / var(--text-code-line) var(--font-mono);
  --text-code-inline-size: 0.9em;
  --text-code-inline-line: 1;
  --text-code-inline-weight: 400;
  --font-code-inline: var(--text-code-inline-weight) var(--text-code-inline-size) / var(--text-code-inline-line) var(--font-mono);

  /* Tokens composés (densité confortable) */
  --cell-padding-x: var(--space-3);
  --table-row-h: calc(var(--control-lg) + var(--space-2));
  --table-head-h: var(--control-lg);
  --rail-item: calc(var(--control-lg) + var(--space-1));
  --focus-ring-w: calc(var(--space-1) / 2);
  --focus-ring-offset: calc(var(--space-1) / 2);
  --hairline: calc(var(--space-1) / 4);
  --btn-padding-x: calc(var(--space-3) + var(--space-1) / 2);
  --icon-btn: calc(var(--icon-sm) + var(--space-1) / 2);
  --search-w: calc(var(--space-12) * 4 + var(--space-6) + var(--space-1));
  --initials-tracking: calc(var(--text-overline-tracking) / 3);
  --col-id: calc(var(--space-12) + var(--space-8));
  --col-tracker: calc(var(--space-12) * 2 + var(--space-6));
  --col-status: calc(var(--space-12) * 2 + var(--space-10) + var(--space-1));
  --col-priority: calc(var(--space-12) + var(--space-10));
  --col-assignee: calc(var(--space-12) * 3);
  --col-due: calc(var(--space-12) * 4 + var(--space-4));
  --col-updated: calc(var(--space-12) * 2 + var(--space-6));
  --col-actions: calc(var(--space-12) + var(--space-2));
  --subject-min: calc(var(--space-12) * 5 + var(--space-10));
  --subject-max: calc(var(--content-max) / 3 - var(--space-4) - var(--space-1) / 2);
  --page-title-tracking: calc(2 * var(--text-display-tracking));

  /* Délais système (hors mouvement réduit) */
  --reveal-timeout: 960ms;
}

html[data-filonio="on"][data-theme="dark"] {
  color-scheme: dark;
  --surface: #15181e;
  --surface-2: #1c2027;
  --surface-3: #242932;
  --surface-raised: #1c2027;
  --overlay: #000000b3;
  --border: #2f353f;
  --border-strong: #656f7e;
  --text: #edeff3;
  --text-2: #b6bdc8;
  --text-3: #8b93a1;
  --text-inverse: #15181e;
  --text-disabled: #5c6574;
  --brand: #7fa3f5;
  --brand-hover: #9cb8f8;
  --brand-soft: #1e2c4a;
  --on-brand: #15181e;
  --success: #5ccb8a;
  --success-soft: #173324;
  --warning: #f0b35b;
  --warning-soft: #3a2a0f;
  --danger: #f27e7e;
  --danger-soft: #3f1c1c;
  --info: var(--brand);
  --info-soft: var(--brand-soft);
  --focus: var(--brand);
  --status-new: #7fa3f5;
  --status-progress: #f0b35b;
  --status-done: #5ccb8a;
  --status-blocked: #f27e7e;
  --status-neutral: #8b93a1;
  --priority-low: #8b93a1;
  --priority-normal: #7fa3f5;
  --priority-high: #f0b35b;
  --priority-urgent: #f27e7e;
  --sidebar-bg: #1c2027;
  --sidebar-active: var(--brand-soft);
  --topbar-bg: var(--surface);
  --button-tonal: var(--surface-3);
  --button-ghost-hover: var(--surface-3);
  --row-hover: var(--surface-3);
  --row-action-hover: var(--border);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.4);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.4);
}

@media (prefers-color-scheme: dark) {
  html[data-filonio="on"]:not([data-theme="light"], [data-theme="dark"]) {
    color-scheme: dark;
    --surface: #15181e;
    --surface-2: #1c2027;
    --surface-3: #242932;
    --surface-raised: #1c2027;
    --overlay: #000000b3;
    --border: #2f353f;
    --border-strong: #656f7e;
    --text: #edeff3;
    --text-2: #b6bdc8;
    --text-3: #8b93a1;
    --text-inverse: #15181e;
    --text-disabled: #5c6574;
    --brand: #7fa3f5;
    --brand-hover: #9cb8f8;
    --brand-soft: #1e2c4a;
    --on-brand: #15181e;
    --success: #5ccb8a;
    --success-soft: #173324;
    --warning: #f0b35b;
    --warning-soft: #3a2a0f;
    --danger: #f27e7e;
    --danger-soft: #3f1c1c;
    --info: var(--brand);
    --info-soft: var(--brand-soft);
    --focus: var(--brand);
    --status-new: #7fa3f5;
    --status-progress: #f0b35b;
    --status-done: #5ccb8a;
    --status-blocked: #f27e7e;
    --status-neutral: #8b93a1;
    --priority-low: #8b93a1;
    --priority-normal: #7fa3f5;
    --priority-high: #f0b35b;
    --priority-urgent: #f27e7e;
    --sidebar-bg: #1c2027;
    --sidebar-active: var(--brand-soft);
    --topbar-bg: var(--surface);
    --button-tonal: var(--surface-3);
    --button-ghost-hover: var(--surface-3);
    --row-hover: var(--surface-3);
    --row-action-hover: var(--border);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.4);
  }
}

.nv-island {
  color-scheme: light;

  /* Couleurs */
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --surface-3: #edeff3;
  --surface-raised: #ffffff;
  --overlay: #0f172acc;
  --border: #d5d9e0;
  --border-strong: #7f8896;
  --text: #1b1f27;
  --text-2: #4b5563;
  --text-3: #5f6b7a;
  --text-inverse: #ffffff;
  --text-disabled: #9aa3b0;
  --brand: #2b5fd9;
  --brand-hover: #2350b8;
  --brand-soft: #e6eefc;
  --on-brand: #ffffff;
  --success: #17703f;
  --success-soft: #e3f5ea;
  --warning: #9a5b00;
  --warning-soft: #fdf1d8;
  --danger: #c42b2b;
  --danger-soft: #fce8e8;
  --info: var(--brand);
  --info-soft: var(--brand-soft);
  --focus: var(--brand);
  --status-new: #2b5fd9;
  --status-progress: #9a5b00;
  --status-done: #17703f;
  --status-blocked: #c42b2b;
  --status-neutral: #5f6b7a;
  --priority-low: #5f6b7a;
  --priority-normal: #2b5fd9;
  --priority-high: #9a5b00;
  --priority-urgent: #c42b2b;
  --sidebar-bg: #f6f7f9;
  --sidebar-active: var(--brand-soft);
  --topbar-bg: var(--surface);
  --button-tonal: var(--surface-3);
  --button-ghost-hover: var(--surface-3);
  --row-hover: var(--surface-2);
  --row-action-hover: var(--surface-3);

  /* Espacements */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Rayons */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 16px;
  --radius-full: 999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.10), 0 1px 2px rgba(15,23,42,0.06);
  --shadow-lg: 0 16px 40px rgba(15,23,42,0.16), 0 2px 6px rgba(15,23,42,0.08);

  /* Tailles */
  --control-sm: 32px;
  --control-md: 36px;
  --control-lg: 40px;
  --icon-sm: 14px;
  --icon-md: 18px;
  --icon-lg: 20px;
  --topbar-h: 56px;
  --sidebar-w: 240px;
  --sidebar-w-compact: 64px;
  --panel-w: 320px;
  --content-max: 1600px;

  /* Points de rupture (information : non utilisables dans @media) */
  --bp-sm: 640px;
  --bp-md: 1024px;
  --bp-lg: 1280px;
  --bp-xl: 1600px;

  /* Durées et courbes */
  --duration-fast: 100ms;
  --duration-base: 160ms;
  --duration-slow: 240ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);

  /* Plans */
  --z-sticky: 100;
  --z-dropdown: 1000;
  --z-drawer: 1200;
  --z-modal: 1300;
  --z-toast: 1400;
  --z-tooltip: 1500;

  /* Typographie */
  --font-sans: "Filonio Sans", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  --text-display-size: 28px;
  --text-display-line: 36px;
  --text-display-weight: 600;
  --text-display-tracking: -0.01em;
  --font-display: var(--text-display-weight) var(--text-display-size) / var(--text-display-line) var(--font-sans);
  --text-h1-size: 24px;
  --text-h1-line: 32px;
  --text-h1-weight: 600;
  --text-h1-tracking: -0.01em;
  --font-h1: var(--text-h1-weight) var(--text-h1-size) / var(--text-h1-line) var(--font-sans);
  --text-h2-size: 18px;
  --text-h2-line: 26px;
  --text-h2-weight: 600;
  --font-h2: var(--text-h2-weight) var(--text-h2-size) / var(--text-h2-line) var(--font-sans);
  --text-h3-size: 15px;
  --text-h3-line: 22px;
  --text-h3-weight: 600;
  --font-h3: var(--text-h3-weight) var(--text-h3-size) / var(--text-h3-line) var(--font-sans);
  --text-body-size: 14px;
  --text-body-line: 20px;
  --text-body-weight: 400;
  --font-body: var(--text-body-weight) var(--text-body-size) / var(--text-body-line) var(--font-sans);
  --text-body-strong-size: 14px;
  --text-body-strong-line: 20px;
  --text-body-strong-weight: 600;
  --font-body-strong: var(--text-body-strong-weight) var(--text-body-strong-size) / var(--text-body-strong-line) var(--font-sans);
  --text-body-sm-size: 13px;
  --text-body-sm-line: 18px;
  --text-body-sm-weight: 400;
  --font-body-sm: var(--text-body-sm-weight) var(--text-body-sm-size) / var(--text-body-sm-line) var(--font-sans);
  --text-label-size: 13px;
  --text-label-line: 18px;
  --text-label-weight: 500;
  --font-label: var(--text-label-weight) var(--text-label-size) / var(--text-label-line) var(--font-sans);
  --text-caption-size: 12px;
  --text-caption-line: 16px;
  --text-caption-weight: 400;
  --font-caption: var(--text-caption-weight) var(--text-caption-size) / var(--text-caption-line) var(--font-sans);
  --text-overline-size: 11px;
  --text-overline-line: 16px;
  --text-overline-weight: 600;
  --text-overline-tracking: 0.06em;
  --font-overline: var(--text-overline-weight) var(--text-overline-size) / var(--text-overline-line) var(--font-sans);
  --text-code-size: 13px;
  --text-code-line: 20px;
  --text-code-weight: 400;
  --font-code: var(--text-code-weight) var(--text-code-size) / var(--text-code-line) var(--font-mono);
  --text-code-inline-size: 0.9em;
  --text-code-inline-line: 1;
  --text-code-inline-weight: 400;
  --font-code-inline: var(--text-code-inline-weight) var(--text-code-inline-size) / var(--text-code-inline-line) var(--font-mono);

  /* Tokens composés (densité confortable) */
  --cell-padding-x: var(--space-3);
  --table-row-h: calc(var(--control-lg) + var(--space-2));
  --table-head-h: var(--control-lg);
  --rail-item: calc(var(--control-lg) + var(--space-1));
  --focus-ring-w: calc(var(--space-1) / 2);
  --focus-ring-offset: calc(var(--space-1) / 2);
  --hairline: calc(var(--space-1) / 4);
  --btn-padding-x: calc(var(--space-3) + var(--space-1) / 2);
  --icon-btn: calc(var(--icon-sm) + var(--space-1) / 2);
  --search-w: calc(var(--space-12) * 4 + var(--space-6) + var(--space-1));
  --initials-tracking: calc(var(--text-overline-tracking) / 3);
  --col-id: calc(var(--space-12) + var(--space-8));
  --col-tracker: calc(var(--space-12) * 2 + var(--space-6));
  --col-status: calc(var(--space-12) * 2 + var(--space-10) + var(--space-1));
  --col-priority: calc(var(--space-12) + var(--space-10));
  --col-assignee: calc(var(--space-12) * 3);
  --col-due: calc(var(--space-12) * 4 + var(--space-4));
  --col-updated: calc(var(--space-12) * 2 + var(--space-6));
  --col-actions: calc(var(--space-12) + var(--space-2));
  --subject-min: calc(var(--space-12) * 5 + var(--space-10));
  --subject-max: calc(var(--content-max) / 3 - var(--space-4) - var(--space-1) / 2);
  --page-title-tracking: calc(2 * var(--text-display-tracking));

  /* Délais système (hors mouvement réduit) */
  --reveal-timeout: 960ms;
}

@media (prefers-color-scheme: dark) {
  .nv-island {
    color-scheme: dark;
    --surface: #15181e;
    --surface-2: #1c2027;
    --surface-3: #242932;
    --surface-raised: #1c2027;
    --overlay: #000000b3;
    --border: #2f353f;
    --border-strong: #656f7e;
    --text: #edeff3;
    --text-2: #b6bdc8;
    --text-3: #8b93a1;
    --text-inverse: #15181e;
    --text-disabled: #5c6574;
    --brand: #7fa3f5;
    --brand-hover: #9cb8f8;
    --brand-soft: #1e2c4a;
    --on-brand: #15181e;
    --success: #5ccb8a;
    --success-soft: #173324;
    --warning: #f0b35b;
    --warning-soft: #3a2a0f;
    --danger: #f27e7e;
    --danger-soft: #3f1c1c;
    --info: var(--brand);
    --info-soft: var(--brand-soft);
    --focus: var(--brand);
    --status-new: #7fa3f5;
    --status-progress: #f0b35b;
    --status-done: #5ccb8a;
    --status-blocked: #f27e7e;
    --status-neutral: #8b93a1;
    --priority-low: #8b93a1;
    --priority-normal: #7fa3f5;
    --priority-high: #f0b35b;
    --priority-urgent: #f27e7e;
    --sidebar-bg: #1c2027;
    --sidebar-active: var(--brand-soft);
    --topbar-bg: var(--surface);
    --button-tonal: var(--surface-3);
    --button-ghost-hover: var(--surface-3);
    --row-hover: var(--surface-3);
    --row-action-hover: var(--border);
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 40px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.4);
  }
}

html[data-filonio="on"][data-density="compact"] {
  --control-md: 28px;
  --text-body-size: 13px;
  --cell-padding-x: var(--space-2);
  --table-row-h: var(--control-lg);
}

@media (prefers-reduced-motion: reduce) {
  html[data-filonio="on"] {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
  }
}

html[data-filonio="on"][data-motion="reduce"] {
  --duration-fast: 0ms;
  --duration-base: 0ms;
  --duration-slow: 0ms;
}

/* Site produit Filonio : mise en page des pages publiques. Couleurs, rayons, espacements, typographie et durées
   viennent des tokens Nova (theme/src/tokens.css, concaténé avant cette feuille au build) ; html[data-filonio="on"]
   les active, et le thème sombre suit prefers-color-scheme. Seules les grandeurs propres au site (titres de page,
   largeur de colonne) sont dérivées ici des tokens, par calc(). */

html[data-filonio="on"] {
  --site-max: calc(var(--content-max) * 0.75);
  --site-gutter: var(--space-4);
  --site-text-size: calc(var(--text-body-size) + var(--space-1) / 2);
  --site-lead-size: calc(var(--text-h2-size) + var(--space-1) / 2);
  --site-hero-size: clamp(calc(var(--text-display-size) * 1.15), 2rem + 3vw, calc(var(--text-display-size) * 2));
  --site-h1-size: clamp(var(--text-display-size), 1.5rem + 1.5vw, calc(var(--text-display-size) * 1.45));
  --site-h2-size: clamp(var(--text-h1-size), 1.2rem + 1vw, var(--text-display-size));
  --site-section: clamp(var(--space-12), 6vw, calc(var(--space-12) * 2));
  --site-tap: calc(var(--control-lg) + var(--space-1));

  scroll-padding-top: calc(var(--topbar-h) + var(--space-4));
  text-size-adjust: 100%;
}

@media (width >= 768px) {
  html[data-filonio="on"] {
    --site-gutter: var(--space-8);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html[data-filonio="on"] {
    scroll-behavior: smooth;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--site-text-size);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;

  /* Pages courtes (« Bientôt disponible », 404) : le pied de page reste en bas de la fenêtre */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: var(--text-display-tracking);
  text-wrap: balance;
}

h1 {
  font-size: var(--site-h1-size);
  font-weight: var(--text-display-weight);
}

h2 {
  font-size: var(--site-h2-size);
  font-weight: var(--text-h1-weight);
}

h3 {
  font-size: var(--text-h2-size);
  font-weight: var(--text-h2-weight);
}

p {
  margin: 0;
}

a {
  color: var(--brand);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-hover);
}

:focus-visible {
  outline: var(--focus-ring-w) solid var(--focus);
  outline-offset: var(--focus-ring-offset);
  border-radius: var(--radius-sm);
}

code,
pre {
  font-family: var(--font-mono);
  font-size: var(--text-code-size);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: calc(var(--site-max) + 2 * var(--site-gutter));
  margin-inline: auto;
  padding-inline: var(--site-gutter);
}

.muted {
  color: var(--text-3);
}

/* Lien d'évitement */
.skip-link {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: var(--z-tooltip);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--brand);
  color: var(--on-brand);
  font-weight: var(--text-label-weight);
  transform: translateY(calc(-100% - var(--space-4)));
}

.skip-link:focus-visible {
  transform: none;
  color: var(--on-brand);
}

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  border-bottom: var(--hairline) solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(var(--space-2));
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-6);
  min-height: var(--topbar-h);
  padding-block: var(--space-2);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: var(--site-tap);
  margin-right: auto;
}

.brand img {
  width: auto;
  height: var(--space-10);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--site-tap);
  padding: 0 var(--space-4);
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: var(--text-label-weight);
  cursor: pointer;
}

.nav-toggle svg {
  width: var(--icon-md);
  height: var(--icon-md);
}

.nav-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a,
.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: var(--site-tap);
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  color: var(--text-2);
  font-weight: var(--text-label-weight);
  text-decoration: none;
}

.nav-list a:hover,
.lang-switch:hover {
  background: var(--button-ghost-hover);
  color: var(--text);
}

.nav-list a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--text);
}

.lang-switch {
  border: var(--hairline) solid var(--border);
}

/* Petits écrans : avec JavaScript, la navigation se replie derrière le bouton Menu ; sans, elle reste dépliée. */
@media (width < 1024px) {
  @media (scripting: enabled) {
    .nav-toggle {
      display: inline-flex;
    }

    .site-nav:not(.is-open) .nav-panel {
      display: none;
    }

    .site-nav {
      display: contents;
    }

    .nav-panel {
      flex-basis: 100%;
      flex-direction: column;
      align-items: stretch;
      padding-block: var(--space-2) var(--space-4);
    }

    .nav-list {
      flex-direction: column;
    }

    .nav-panel .btn {
      justify-content: center;
    }
  }
}

/* Boutons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--site-tap);
  padding: 0 calc(var(--space-4) + var(--space-1));
  border: var(--hairline) solid transparent;
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: var(--text-h3-weight);
  text-align: center;
  text-decoration: none;
  transition: background-color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard);
}

.btn-primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn-primary:hover {
  background: var(--brand-hover);
  color: var(--on-brand);
}

.btn-secondary {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--button-ghost-hover);
  color: var(--text);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Valeur encore inconnue (config.mjs) : visible, jamais déguisée en vraie valeur */
.ph {
  display: inline-block;
  padding: 0 var(--space-1);
  border: var(--hairline) dashed var(--warning);
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  color: var(--warning);
  font-family: var(--font-mono);
  font-size: 0.8em;
  font-weight: var(--text-label-weight);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* Sections */
.section {
  padding-block: var(--site-section);
}

.section + .section {
  padding-top: 0;
}

.section-alt {
  background: var(--surface-2);
}

.section-alt + .section {
  padding-top: var(--site-section);
}

.section-head {
  display: grid;
  gap: var(--space-3);
  max-width: calc(var(--site-max) * 0.6);
  margin-bottom: var(--space-8);
}

.section-head p {
  color: var(--text-2);
}

.overline {
  color: var(--brand);
  font-size: var(--text-overline-size);
  font-weight: var(--text-overline-weight);
  letter-spacing: var(--text-overline-tracking);
  text-transform: uppercase;
}

.lead {
  color: var(--text-2);
  font-size: var(--site-lead-size);
  line-height: 1.55;
}

.page-head {
  display: grid;
  gap: var(--space-3);
  max-width: calc(var(--site-max) * 0.7);
  padding-block: var(--site-section) var(--space-8);
}

/* Accueil : promesse */
.hero {
  padding-block: var(--site-section);
}

.hero-text {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  max-width: calc(var(--site-max) * 0.68);
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  font-size: var(--site-hero-size);
  letter-spacing: var(--page-title-tracking);
}

.hero .btn-row {
  justify-content: center;
  margin-top: var(--space-2);
}

.hero-note {
  color: var(--text-3);
  font-size: var(--text-body-sm-size);
}

.hero-shot {
  margin-top: var(--space-12);
}

/* Captures */
.shot {
  margin: 0;
}

.frame {
  overflow: hidden;
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.frame-phone {
  width: min(100%, calc(var(--space-12) * 6 + var(--space-3)));
  margin-inline: auto;
  border: var(--space-2) solid var(--surface-3);
  border-radius: calc(var(--radius-xl) * 2);
}

.shot figcaption {
  margin-top: var(--space-3);
  color: var(--text-3);
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line);
  text-align: center;
}

/* Grilles de fonctions */
.grid {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (width >= 640px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width >= 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  padding: var(--space-6);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}

.card-title {
  font-size: var(--text-h2-size);
  font-weight: var(--text-h2-weight);
}

.card p {
  color: var(--text-2);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: var(--space-10);
  height: var(--space-10);
  margin-bottom: var(--space-2);
  border-radius: var(--radius-md);
  background: var(--brand-soft);
  color: var(--brand);
}

.icon svg {
  width: var(--icon-lg);
  height: var(--icon-lg);
}

/* Lignes texte + capture */
.showcase {
  display: grid;
  gap: calc(var(--site-section) * 0.9);
}

.row {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

.row-text {
  display: grid;
  gap: var(--space-3);
}

.row-text p {
  color: var(--text-2);
}

@media (width >= 1024px) {
  .row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-12);
  }

  .row-reverse {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .row-reverse .row-text {
    order: 2;
  }

  .row-phone {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .row-phone.row-reverse {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

.checks {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: grid;
  grid-template-columns: var(--icon-md) 1fr;
  gap: var(--space-2);
  color: var(--text-2);
}

.checks svg {
  width: var(--icon-md);
  height: var(--icon-md);
  margin-top: 0.2em;
  color: var(--success);
}

/* Bloc option et appel final */
.teaser {
  display: grid;
  gap: var(--space-4);
  padding: clamp(var(--space-6), 4vw, var(--space-12));
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--brand-soft);
}

.teaser p:not(.overline) {
  max-width: calc(var(--site-max) * 0.6);
  color: var(--text-2);
}

.cta {
  display: grid;
  justify-items: center;
  gap: var(--space-4);
  padding: clamp(var(--space-8), 5vw, calc(var(--space-12) * 1.5)) var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--surface-2);
  text-align: center;
}

.cta p {
  max-width: calc(var(--site-max) * 0.5);
  color: var(--text-2);
}

.cta .btn-row {
  justify-content: center;
}

/* Tarifs */
.plans {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 2 cartes côte à côte dès 640 px ; 4 cartes (Tarifs : essai et trois offres) en 2 × 2, puis en ligne dès 1280 px */
@media (width >= 640px) {
  .plans-2,
  .plans-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (width >= 1024px) {
  .plans-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (width >= 1280px) {
  .plans-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.plan {
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: var(--space-4);
  padding: var(--space-6);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}

.plan-featured {
  border: var(--focus-ring-w) solid var(--brand);
  box-shadow: var(--shadow-md);
}

.plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.plan-tag {
  padding: 0 var(--space-2);
  border-radius: var(--radius-full);
  background: var(--brand);
  color: var(--on-brand);
  font-size: var(--text-caption-size);
  font-weight: var(--text-label-weight);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-1) var(--space-2);
}

.price-amount {
  font-size: var(--site-h2-size);
  font-weight: var(--text-display-weight);
  line-height: 1.2;
}

.price-period,
.price-unit {
  color: var(--text-3);
  font-size: var(--text-body-sm-size);
}

.price-unit {
  flex-basis: 100%;
}

.plan > p {
  color: var(--text-2);
}

.plan .btn {
  width: 100%;
}

.plans-note {
  margin-top: var(--space-6);
  color: var(--text-3);
  font-size: var(--text-body-sm-size);
}

/* Étapes */
.steps {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (width >= 768px) {
  .steps {
    grid-template-columns: repeat(auto-fit, minmax(calc(var(--space-12) * 4), 1fr));
  }
}

.steps li {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  padding: var(--space-6);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: var(--control-sm);
  height: var(--control-sm);
  border-radius: var(--radius-full);
  background: var(--brand);
  color: var(--on-brand);
  font-weight: var(--text-h3-weight);
}

.steps p {
  color: var(--text-2);
}

/* Questions fréquentes */
.faq {
  display: grid;
  gap: var(--space-2);
  max-width: calc(var(--site-max) * 0.75);
}

.faq details {
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--site-tap);
  padding: var(--space-3) var(--space-4);
  font-weight: var(--text-h3-weight);
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--text-3);
  font-size: var(--text-h2-size);
}

.faq details[open] summary::after {
  content: "−";
}

.faq details > div {
  padding: 0 var(--space-4) var(--space-4);
  color: var(--text-2);
}

/* Tableaux */
.table-scroll {
  overflow-x: auto;
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line);
}

th,
td {
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--hairline) solid var(--border);
  text-align: left;
  vertical-align: top;
}

tr:last-child td {
  border-bottom: 0;
}

thead th {
  background: var(--surface-2);
  color: var(--text-2);
  font-size: var(--text-label-size);
  font-weight: var(--text-h3-weight);
  white-space: nowrap;
}

tbody th {
  font-weight: var(--text-h3-weight);
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0 var(--space-2);
  border-radius: var(--radius-full);
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: var(--space-2);
  height: var(--space-2);
  border-radius: var(--radius-full);
  background: currentcolor;
}

.badge-ok {
  background: var(--success-soft);
  color: var(--success);
}

.badge-beta {
  background: var(--warning-soft);
  color: var(--warning);
}

/* Illustration de la charge (option) */
.workload td {
  min-width: calc(var(--space-12) * 2.5);
}

.load {
  display: grid;
  gap: var(--space-1);
}

.load-bar {
  display: block;
  width: 100%;
  height: var(--space-2);
}

.load-track {
  fill: var(--surface-3);
}

.load-fill {
  fill: var(--brand);
}

.load-over .load-fill {
  fill: var(--danger);
}

.load-off .load-fill {
  fill: var(--status-neutral);
}

.load-label {
  color: var(--text-2);
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line);
}

/* Texte long : documentation et pages légales */
.prose {
  max-width: calc(var(--site-max) * 0.62);
}

.prose > * + * {
  margin-top: var(--space-4);
}

.prose h2 {
  margin-top: var(--space-10);
  font-size: var(--text-h1-size);
}

.prose h3 {
  margin-top: var(--space-8);
}

.prose ul,
.prose ol {
  padding-left: var(--space-6);
}

.prose li + li {
  margin-top: var(--space-1);
}

.prose li > * + * {
  margin-top: var(--space-2);
}

.prose :not(pre) > code {
  padding: 0 var(--space-1);
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  font-size: var(--text-code-inline-size);
  overflow-wrap: anywhere;
}

.prose pre {
  overflow-x: auto;
  padding: var(--space-4);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-2);
  line-height: var(--text-code-line);
}

.prose blockquote {
  margin-inline: 0;
  padding: var(--space-3) var(--space-4);
  border-left: var(--space-1) solid var(--brand);
  border-radius: var(--radius-sm);
  background: var(--info-soft);
}

.prose table {
  min-width: calc(var(--space-12) * 10);
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-8);
  padding-block: var(--space-8) var(--site-section);
}

@media (width >= 1024px) {
  .docs-layout {
    grid-template-columns: minmax(0, 1fr) calc(var(--panel-w) * 0.8);
    align-items: start;
  }

  .toc {
    position: sticky;
    top: calc(var(--topbar-h) + var(--space-6));
  }
}

.toc {
  padding: var(--space-4);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  font-size: var(--text-body-sm-size);
}

.toc h2 {
  margin-bottom: var(--space-2);
  color: var(--text-3);
  font-size: var(--text-overline-size);
  letter-spacing: var(--text-overline-tracking);
  text-transform: uppercase;
}

.toc ul {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: inline-block;
  padding-block: var(--space-1);
  color: var(--text-2);
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: var(--site-tap);
  font-weight: var(--text-label-weight);
}

.doc-source {
  margin-top: var(--space-10);
  color: var(--text-3);
  font-size: var(--text-body-sm-size);
}

.doc-list {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (width >= 768px) {
  .doc-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.doc-list a {
  display: grid;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-6);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  text-decoration: none;
}

.doc-list a:hover {
  border-color: var(--brand);
  background: var(--row-hover);
}

.doc-list strong {
  color: var(--brand);
  font-size: var(--text-h2-size);
}

.doc-list span {
  color: var(--text-2);
}

/* Pied de page */
.site-footer {
  margin-top: var(--site-section);
  padding-block: var(--space-10);
  border-top: var(--hairline) solid var(--border);
  background: var(--surface-2);
  color: var(--text-3);
  font-size: var(--text-body-sm-size);
}

.footer-inner {
  display: grid;
  gap: var(--space-4);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--site-tap);
  padding-inline: var(--space-2);
  color: var(--text-2);
}

.not-found {
  display: grid;
  justify-items: start;
  gap: var(--space-4);
  padding-block: var(--site-section);
}

/* Notes de version : une carte par version, ancre #<version> (notes_url du manifeste des versions) */
.releases {
  display: grid;
  gap: var(--space-6);
  max-width: calc(var(--site-max) * 0.7 - 2 * var(--site-gutter));
  margin-inline: auto;
}

.release {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}

@media (width >= 768px) {
  .release {
    padding: var(--space-8);
  }
}

.release-head {
  display: grid;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: var(--hairline) solid var(--border);
}

.release-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-8);
  margin: 0;
}

.release-meta dt {
  color: var(--text-3);
  font-size: var(--text-overline-size);
  font-weight: var(--text-overline-weight);
  letter-spacing: var(--text-overline-tracking);
  text-transform: uppercase;
}

.release-meta dd {
  margin: 0;
  font-weight: var(--text-label-weight);
}

.release > p:not(.release-upgrade) {
  color: var(--text-2);
}

.release h3 {
  margin-top: var(--space-2);
}

.release-list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding-left: var(--space-6);
}

.release-upgrade {
  padding-top: var(--space-4);
  border-top: var(--hairline) solid var(--border);
}
