/* Zoana skin tokens — generated from templates/tokens/default.json
   Swiss editorial: ink on cool paper, one signal colour, a tight grotesk. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/preview/_assets/fonts/bricolage-latin-opsz-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/preview/_assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/preview/_assets/fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
}

:root {
  --zoana-font-heading: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --zoana-font-body: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --zoana-font-mono: "Geist Mono", ui-monospace, Menlo, Monaco, monospace;
  --zoana-radius: 1rem;
  --zoana-spacing-section: 6rem;
  --zoana-label: var(--zoana-muted);
  --zoana-ink: #121211;
  --zoana-signal: #ff5a1f;
  --zoana-signal-soft: #ffe3d6;
  --zoana-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --zoana-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-pop: 0 1px 2px rgb(18 18 17 / 6%), 0 24px 60px -12px rgb(18 18 17 / 28%);
  --shadow-sheet: 0 -12px 40px rgb(18 18 17 / 16%);
  --shadow-card: 0 1px 0 rgb(18 18 17 / 4%), 0 12px 32px -16px rgb(18 18 17 / 22%);
  --zoana-vv-inset: 0px;
  --zoana-banner-h: 0px;
}

[data-palette="clair"],
:root {
  color-scheme: light;
  --zoana-signal: #ff5a1f;
  --zoana-bg: #f2f1ec;
  --zoana-surface: #fbfbf8;
  --zoana-text: #121211;
  --zoana-muted: #62615b;
  --zoana-accent: #121211;
  --zoana-accent-hover: #ff5a1f;
  --zoana-border: #e0dfd8;
  --zoana-control: #82817a;
  --zoana-link: #c2410c;
  --zoana-focus: #c2410c;
  --zoana-danger: #b42318;
  --zoana-danger-wash: #fdeceb;
  --zoana-success: #1f6b4a;
  --zoana-success-wash: #e9f4ee;
  --zoana-attention: #8a4b00;
  --zoana-attention-wash: #fdf1df;
  --zoana-on-accent: #fbfbf8;
  --zoana-on-accent-hover: #121211;
  --zoana-warm: #c2410c;
  --zoana-warm-border: #f4c7b2;
  --zoana-paper: #fbfbf8;
  --zoana-wash: #e8e7e0;
  --zoana-body: #2b2b28;
  --zoana-secondary: #4a4945;
  --zoana-line: #d3d2ca;
}

[data-palette="sombre"] {
  color-scheme: dark;
  --zoana-signal: #ff5a1f;
  --zoana-bg: #0e0e0d;
  --zoana-surface: #191917;
  --zoana-text: #f2f1ec;
  --zoana-muted: #a19f97;
  --zoana-accent: #f2f1ec;
  --zoana-accent-hover: #ff5a1f;
  --zoana-border: #2b2a27;
  --zoana-control: #77756e;
  --zoana-link: #ff8a5c;
  --zoana-focus: #ff8a5c;
  --zoana-danger: #ff9a8f;
  --zoana-danger-wash: #33201d;
  --zoana-success: #7fd1a8;
  --zoana-success-wash: #16271f;
  --zoana-attention: #f2b866;
  --zoana-attention-wash: #30251a;
  --zoana-on-accent: #0e0e0d;
  --zoana-on-accent-hover: #0e0e0d;
  --zoana-warm: #ff8a5c;
  --zoana-warm-border: #5a2a17;
  --zoana-paper: #191917;
  --zoana-wash: #222220;
  --zoana-body: #d9d8d1;
  --zoana-secondary: #bdbbb3;
  --zoana-line: #3a3935;
  --zoana-signal-soft: #3a1c10;
}

[data-palette="sauge"] {
  color-scheme: light;
  --zoana-bg: #e4eee3;
  --zoana-surface: #f7fbf4;
  --zoana-text: #193f32;
  --zoana-muted: #4d6456;
  --zoana-accent: #2c614a;
  --zoana-accent-hover: #1e4a37;
  --zoana-border: #c5d7c5;
  --zoana-control: #738973;
  --zoana-link: #2c614a;
  --zoana-focus: #2c614a;
  --zoana-danger: #b42318;
  --zoana-danger-wash: #fdeceb;
  --zoana-success: #1f6b4a;
  --zoana-success-wash: #e9f4ee;
  --zoana-attention: #8a4b00;
  --zoana-attention-wash: #fdf1df;
  --zoana-signal: #a3d49d;
  --zoana-signal-soft: #d6e6d4;
  --zoana-on-accent: #f7fbf4;
  --zoana-on-accent-hover: #f7fbf4;
  --zoana-warm: #2c614a;
  --zoana-warm-border: #c5d7c5;
  --zoana-paper: #f7fbf4;
  --zoana-wash: #d6e6d4;
  --zoana-body: #193f32;
  --zoana-secondary: #4d6456;
  --zoana-line: #c5d7c5;
}

[data-palette="lagon"] {
  color-scheme: light;
  --zoana-bg: #dfedf3;
  --zoana-surface: #f4fbfe;
  --zoana-text: #123c54;
  --zoana-muted: #466372;
  --zoana-accent: #155d80;
  --zoana-accent-hover: #104765;
  --zoana-border: #c1d7e2;
  --zoana-control: #648394;
  --zoana-link: #155d80;
  --zoana-focus: #155d80;
  --zoana-danger: #b42318;
  --zoana-danger-wash: #fdeceb;
  --zoana-success: #1f6b4a;
  --zoana-success-wash: #e9f4ee;
  --zoana-attention: #8a4b00;
  --zoana-attention-wash: #fdf1df;
  --zoana-signal: #85cbe9;
  --zoana-signal-soft: #d1e4ed;
  --zoana-on-accent: #f4fbfe;
  --zoana-on-accent-hover: #f4fbfe;
  --zoana-warm: #155d80;
  --zoana-warm-border: #c1d7e2;
  --zoana-paper: #f4fbfe;
  --zoana-wash: #d1e4ed;
  --zoana-body: #123c54;
  --zoana-secondary: #466372;
  --zoana-line: #c1d7e2;
}

[data-palette="argile"] {
  color-scheme: light;
  --zoana-bg: #f5e6dc;
  --zoana-surface: #fff8f1;
  --zoana-text: #583025;
  --zoana-muted: #745749;
  --zoana-accent: #923f2e;
  --zoana-accent-hover: #743020;
  --zoana-border: #e3cabb;
  --zoana-control: #977563;
  --zoana-link: #923f2e;
  --zoana-focus: #923f2e;
  --zoana-danger: #b42318;
  --zoana-danger-wash: #fdeceb;
  --zoana-success: #1f6b4a;
  --zoana-success-wash: #e9f4ee;
  --zoana-attention: #8a4b00;
  --zoana-attention-wash: #fdf1df;
  --zoana-signal: #f3ae87;
  --zoana-signal-soft: #edd8c9;
  --zoana-on-accent: #fff8f1;
  --zoana-on-accent-hover: #fff8f1;
  --zoana-warm: #923f2e;
  --zoana-warm-border: #e3cabb;
  --zoana-paper: #fff8f1;
  --zoana-wash: #edd8c9;
  --zoana-body: #583025;
  --zoana-secondary: #745749;
  --zoana-line: #e3cabb;
}

[data-palette="iris"] {
  color-scheme: light;
  --zoana-bg: #ece5f5;
  --zoana-surface: #fbf8ff;
  --zoana-text: #402d58;
  --zoana-muted: #665476;
  --zoana-accent: #6b4184;
  --zoana-accent-hover: #532f6b;
  --zoana-border: #dacde6;
  --zoana-control: #887496;
  --zoana-link: #6b4184;
  --zoana-focus: #6b4184;
  --zoana-danger: #b42318;
  --zoana-danger-wash: #fdeceb;
  --zoana-success: #1f6b4a;
  --zoana-success-wash: #e9f4ee;
  --zoana-attention: #8a4b00;
  --zoana-attention-wash: #fdf1df;
  --zoana-signal: #c8aae4;
  --zoana-signal-soft: #e2d7ed;
  --zoana-on-accent: #fbf8ff;
  --zoana-on-accent-hover: #fbf8ff;
  --zoana-warm: #6b4184;
  --zoana-warm-border: #dacde6;
  --zoana-paper: #fbf8ff;
  --zoana-wash: #e2d7ed;
  --zoana-body: #402d58;
  --zoana-secondary: #665476;
  --zoana-line: #dacde6;
}

[data-palette="sable"] {
  color-scheme: light;
  --zoana-bg: #f3ead9;
  --zoana-surface: #fdf8ee;
  --zoana-text: #3d2f14;
  --zoana-muted: #6b5a3c;
  --zoana-accent: #85560f;
  --zoana-accent-hover: #6a430a;
  --zoana-border: #e2d3b5;
  --zoana-control: #94805a;
  --zoana-link: #85560f;
  --zoana-focus: #85560f;
  --zoana-danger: #b42318;
  --zoana-danger-wash: #fdeceb;
  --zoana-success: #1f6b4a;
  --zoana-success-wash: #e9f4ee;
  --zoana-attention: #8a4b00;
  --zoana-attention-wash: #fdf1df;
  --zoana-signal: #e6c478;
  --zoana-signal-soft: #eadfc8;
  --zoana-on-accent: #fdf8ee;
  --zoana-on-accent-hover: #fdf8ee;
  --zoana-warm: #85560f;
  --zoana-warm-border: #e2d3b5;
  --zoana-paper: #fdf8ee;
  --zoana-wash: #eadfc8;
  --zoana-body: #3d2f14;
  --zoana-secondary: #6b5a3c;
  --zoana-line: #e2d3b5;
}

[data-palette="petale"] {
  color-scheme: light;
  --zoana-bg: #f7e6e8;
  --zoana-surface: #fff7f8;
  --zoana-text: #56202f;
  --zoana-muted: #7a5560;
  --zoana-accent: #a23a55;
  --zoana-accent-hover: #802a41;
  --zoana-border: #e8cbd1;
  --zoana-control: #9c7480;
  --zoana-link: #a23a55;
  --zoana-focus: #a23a55;
  --zoana-danger: #b42318;
  --zoana-danger-wash: #fdeceb;
  --zoana-success: #1f6b4a;
  --zoana-success-wash: #e9f4ee;
  --zoana-attention: #8a4b00;
  --zoana-attention-wash: #fdf1df;
  --zoana-signal: #f0a9b8;
  --zoana-signal-soft: #f0d9dd;
  --zoana-on-accent: #fff7f8;
  --zoana-on-accent-hover: #fff7f8;
  --zoana-warm: #a23a55;
  --zoana-warm-border: #e8cbd1;
  --zoana-paper: #fff7f8;
  --zoana-wash: #f0d9dd;
  --zoana-body: #56202f;
  --zoana-secondary: #7a5560;
  --zoana-line: #e8cbd1;
}

[data-palette="ardoise"] {
  color-scheme: light;
  --zoana-bg: #e6e9ed;
  --zoana-surface: #f8f9fb;
  --zoana-text: #1f2a37;
  --zoana-muted: #556170;
  --zoana-accent: #334155;
  --zoana-accent-hover: #1f2937;
  --zoana-border: #cdd3db;
  --zoana-control: #77818f;
  --zoana-link: #334155;
  --zoana-focus: #334155;
  --zoana-danger: #b42318;
  --zoana-danger-wash: #fdeceb;
  --zoana-success: #1f6b4a;
  --zoana-success-wash: #e9f4ee;
  --zoana-attention: #8a4b00;
  --zoana-attention-wash: #fdf1df;
  --zoana-signal: #9fb4cc;
  --zoana-signal-soft: #dadfe5;
  --zoana-on-accent: #f8f9fb;
  --zoana-on-accent-hover: #f8f9fb;
  --zoana-warm: #334155;
  --zoana-warm-border: #cdd3db;
  --zoana-paper: #f8f9fb;
  --zoana-wash: #dadfe5;
  --zoana-body: #1f2a37;
  --zoana-secondary: #556170;
  --zoana-line: #cdd3db;
}

[data-palette="nuit"] {
  color-scheme: dark;
  --zoana-bg: #0d1420;
  --zoana-surface: #151e2d;
  --zoana-text: #e9eef7;
  --zoana-muted: #9aa6ba;
  --zoana-accent: #e9eef7;
  --zoana-accent-hover: #8fb8ff;
  --zoana-border: #26324a;
  --zoana-control: #6b7a94;
  --zoana-link: #9cc2ff;
  --zoana-focus: #9cc2ff;
  --zoana-danger: #ff9a8f;
  --zoana-danger-wash: #33201d;
  --zoana-success: #7fd1a8;
  --zoana-success-wash: #16271f;
  --zoana-attention: #f2b866;
  --zoana-attention-wash: #30251a;
  --zoana-signal: #8fb8ff;
  --zoana-signal-soft: #1a2b47;
  --zoana-on-accent: #0d1420;
  --zoana-on-accent-hover: #0d1420;
  --zoana-warm: #9cc2ff;
  --zoana-warm-border: #2c4470;
  --zoana-paper: #151e2d;
  --zoana-wash: #1c2738;
  --zoana-body: #d3dbe8;
  --zoana-secondary: #b3bed0;
  --zoana-line: #34425c;
}

[data-palette="foret"] {
  color-scheme: dark;
  --zoana-bg: #0f1713;
  --zoana-surface: #17211c;
  --zoana-text: #ecf3ee;
  --zoana-muted: #9cada3;
  --zoana-accent: #ecf3ee;
  --zoana-accent-hover: #8fd6ae;
  --zoana-border: #26362e;
  --zoana-control: #6c8176;
  --zoana-link: #9adbb8;
  --zoana-focus: #9adbb8;
  --zoana-danger: #ff9a8f;
  --zoana-danger-wash: #33201d;
  --zoana-success: #7fd1a8;
  --zoana-success-wash: #16271f;
  --zoana-attention: #f2b866;
  --zoana-attention-wash: #30251a;
  --zoana-signal: #8fd6ae;
  --zoana-signal-soft: #1b3327;
  --zoana-on-accent: #0f1713;
  --zoana-on-accent-hover: #0f1713;
  --zoana-warm: #9adbb8;
  --zoana-warm-border: #2b5340;
  --zoana-paper: #17211c;
  --zoana-wash: #1d2a24;
  --zoana-body: #d5e0d9;
  --zoana-secondary: #b4c2ba;
  --zoana-line: #36493f;
}

[data-palette="prune"] {
  color-scheme: dark;
  --zoana-bg: #17101a;
  --zoana-surface: #211826;
  --zoana-text: #f4ecf6;
  --zoana-muted: #ad9fb3;
  --zoana-accent: #f4ecf6;
  --zoana-accent-hover: #d9a8ec;
  --zoana-border: #35283b;
  --zoana-control: #80708a;
  --zoana-link: #dcb1ee;
  --zoana-focus: #dcb1ee;
  --zoana-danger: #ff9a8f;
  --zoana-danger-wash: #33201d;
  --zoana-success: #7fd1a8;
  --zoana-success-wash: #16271f;
  --zoana-attention: #f2b866;
  --zoana-attention-wash: #30251a;
  --zoana-signal: #d9a8ec;
  --zoana-signal-soft: #33203d;
  --zoana-on-accent: #17101a;
  --zoana-on-accent-hover: #17101a;
  --zoana-warm: #dcb1ee;
  --zoana-warm-border: #553566;
  --zoana-paper: #211826;
  --zoana-wash: #2a1f30;
  --zoana-body: #e0d5e4;
  --zoana-secondary: #c2b5c8;
  --zoana-line: #483852;
}

body {
  font-family: var(--zoana-font-body);
  font-size: 17px;
  line-height: 1.6;
  background-color: var(--zoana-bg);
  color: var(--zoana-body);
  font-feature-settings: "ss01", "cv11";
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
summary {
  color: var(--zoana-text);
}

html {
  scrollbar-gutter: stable;
}

::selection {
  background: var(--zoana-signal);
  color: var(--zoana-ink);
}

:focus-visible {
  outline: 2px solid var(--zoana-focus);
  outline-offset: 2px;
}

.font-heading {
  font-family: var(--zoana-font-heading);
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.03em;
}

.font-mono {
  font-family: var(--zoana-font-mono);
}

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

.text-accent {
  color: var(--zoana-accent);
}

.bg-surface {
  background-color: var(--zoana-surface);
}

.bg-accent {
  background-color: var(--zoana-accent);
}

.border-token {
  border-color: var(--zoana-border);
}

.rounded-token {
  border-radius: var(--zoana-radius);
}

/* Tailwind's display utilities beat the [hidden] attribute; make hidden win so
   `element.hidden = true` works on any node (CTA swaps, draft chips, spinners). */
[hidden] {
  display: none !important;
}

.zoana-demo-notice {
  margin-bottom: 1.5rem;
}

.zoana-skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 60;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--zoana-accent);
  color: var(--zoana-on-accent);
  padding: 0.55rem 0.9rem;
  font-size: 14px;
  text-decoration: none;
}

.zoana-skip:focus {
  transform: none;
}

/* The skip link lands focus on <main>; a reader hears it, the eye needs no ring. */
#contenu:focus {
  outline: none;
}

.zoana-demo-banner {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  height: 40px;
  min-height: 40px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--zoana-border);
  background: color-mix(in srgb, var(--zoana-bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 0 0.75rem;
  text-align: center;
}

.zoana-demo-banner > p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--zoana-secondary);
  font-family: var(--zoana-font-mono);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zoana-demo-banner > p .short {
  display: none;
}

.zoana-artisan {
  margin: 0;
  max-width: 28rem;
}

/* Blur makes the banner a containing block for fixed children. The open sheet
   and backdrop must use the viewport, not the forty-pixel banner. */
.zoana-demo-banner:has(.zoana-artisan[open]) {
  height: auto;
  overflow: visible;
  flex-wrap: wrap;
  align-items: flex-start;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.zoana-artisan summary {
  display: inline-flex;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--zoana-border);
  border-radius: 999px;
  overflow: hidden;
}

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

.zoana-seg {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  min-height: 32px;
  font-size: 12px;
  color: var(--zoana-muted);
  white-space: nowrap;
}

.zoana-seg::before {
  content: "";
  position: absolute;
  inset: -6px 0;
}

.zoana-artisan:not([open]) .zoana-seg-client,
.zoana-artisan[open] .zoana-seg-artisan {
  background: var(--zoana-text);
  color: var(--zoana-surface);
}

.zoana-transcript-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgb(18 18 17 / 45%);
}

.zoana-artisan[open] summary {
  position: relative;
  z-index: 41;
}

.zoana-transcript {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  max-height: min(70dvh, 36rem);
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  background: var(--zoana-surface);
  padding: 4px 16px max(16px, env(safe-area-inset-bottom));
  box-shadow: var(--shadow-sheet);
  text-align: left;
}

.zoana-transcript-head {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.zoana-transcript-title {
  margin: 0;
  color: var(--zoana-secondary);
  font-family: var(--zoana-font-mono);
  font-size: 13px;
  font-weight: 500;
}

.zoana-transcript .z-confirm-card {
  width: 100%;
}

.zoana-transcript .z-bubble {
  max-width: 85%;
}

.zoana-transcript .z-bubble-out {
  align-self: flex-end;
}

@media (min-width: 640px) {
  .zoana-transcript {
    inset: auto 0 24px 0;
    width: min(36rem, calc(100% - 48px));
    margin-inline: auto;
    border-radius: 16px;
    padding-bottom: 16px;
    box-shadow: var(--shadow-pop);
  }
}

@media (min-width: 1024px) {
  .zoana-transcript {
    right: max(1.5rem, calc((100% - 75rem) / 2 + 1.5rem));
    left: auto;
    width: min(36rem, calc(100% - 3rem));
    margin-inline: 0;
  }
}

.zoana-transcript-close {
  flex: none;
  display: inline-flex;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0 0.35rem;
  color: var(--zoana-secondary);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

@media (max-width: 420px) {
  .zoana-demo-banner > p .long {
    display: none;
  }

  .zoana-demo-banner > p .short {
    display: inline;
  }
}

@media (max-height: 500px) {
  .zoana-demo-banner {
    position: static;
  }
}


footer a,
.z-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.zoana-slug-bad,
.z-field.is-invalid {
  border-color: var(--zoana-danger) !important;
  box-shadow: none !important;
}

.zoana-hint-bad {
  color: var(--zoana-danger);
}

.zoana-hint-bad::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 0.4rem;
  border-radius: 999px;
  background: var(--zoana-danger);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  vertical-align: -0.15rem;
}

.zoana-field::placeholder {
  color: var(--zoana-muted);
  opacity: 1;
}

/* Section label: a mono index, never a shouted all-caps kicker. */
.zoana-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-family: var(--zoana-font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--zoana-secondary);
}

.zoana-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 2px;
  background: var(--zoana-signal);
}

.zoana-rule {
  width: 2.75rem;
  height: 2px;
  border-radius: 2px;
  background: var(--zoana-signal);
}

.zoana-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: zoana-spin 0.65s linear infinite;
}

@keyframes zoana-spin {
  to {
    transform: rotate(360deg);
  }
}

/* First paint: sections rise into place. */
.zoana-reveal {
  animation: zoana-reveal-up 0.8s var(--zoana-ease-out) both;
}

.zoana-d1 {
  animation-delay: 0.08s;
}

.zoana-d2 {
  animation-delay: 0.16s;
}

.zoana-d3 {
  animation-delay: 0.26s;
}

@keyframes zoana-reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Show-effect ring after a chat confirm re-renders the page. */
.zoana-effect-ring {
  animation: zoana-effect-ring 1.4s var(--zoana-ease-out) both;
  border-radius: var(--zoana-radius);
}

@keyframes zoana-effect-ring {
  0% {
    box-shadow: 0 0 0 0 rgb(255 90 31 / 55%);
  }
  70% {
    box-shadow: 0 0 0 14px rgb(255 90 31 / 0%);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(255 90 31 / 0%);
  }
}

[data-zoana-offer-id].is-selected {
  box-shadow: inset 0 0 0 1.5px var(--zoana-text);
}

.zoana-footer-activate {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: var(--zoana-accent);
  color: var(--zoana-on-accent);
  min-height: 44px;
  padding: 0.45rem 1rem;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  touch-action: manipulation;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.zoana-footer-activate:hover {
  background: var(--zoana-accent-hover);
  color: var(--zoana-on-accent-hover);
}

.zoana-admin-chip {
  position: fixed;
  top: max(0.6rem, env(safe-area-inset-top, 0px));
  right: max(0.6rem, env(safe-area-inset-right, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  pointer-events: auto;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--zoana-text) 14%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--zoana-surface) 86%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  min-height: 44px;
  min-width: 44px;
  padding: 0.25rem 0.95rem;
  color: var(--zoana-text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  touch-action: manipulation;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--zoana-ease-out), border-color 0.2s ease;
}

.zoana-admin-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--zoana-signal);
}

.zoana-admin-chip:hover {
  border-color: var(--zoana-text);
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .zoana-admin-chip {
    position: absolute;
  }
}

html.zc-chat-open .zoana-admin-chip,
html.zc-chat-open .zoana-footer-activate {
  visibility: hidden;
  pointer-events: none;
}

@media (min-width: 768px) and (min-height: 560px) {
  html.zc-chat-open body.zoana-site {
    padding-right: 26.25rem;
  }
}

.zoana-phone-url {
  display: block;
  margin: 0 auto;
  max-width: 92%;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e7e0;
  padding: 0.22rem 0.6rem;
  color: var(--zoana-secondary);
  font-family: var(--zoana-font-mono);
  font-size: 13px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zoana-apercu-stamp {
  position: absolute;
  top: 1.05rem;
  left: -0.35rem;
  z-index: 4;
  border: 1px solid var(--zoana-warm-border);
  border-radius: 4px;
  background: var(--zoana-surface);
  padding: 0.22rem 0.5rem;
  color: var(--zoana-warm);
  font-family: var(--zoana-font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: rotate(-12deg);
  pointer-events: none;
}

.zoana-create-modal-rule {
  position: absolute;
  top: 0.5rem;
  left: 50%;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--zoana-line);
  transform: translateX(-50%);
}

.zoana-field-pulse {
  animation: zoana-field-pulse 0.9s ease;
}

@keyframes zoana-field-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(255 90 31 / 45%);
  }
  70% {
    box-shadow: 0 0 0 10px rgb(255 90 31 / 0%);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(255 90 31 / 0%);
  }
}

@media (min-width: 768px) {
  .zoana-create-modal-rule {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
   Design system: one field, three buttons, two shadows.
   ------------------------------------------------------------------------ */
.z-h1 {
  font-family: var(--zoana-font-heading);
  font-size: clamp(2.75rem, 1rem + 6.25vw, 7rem);
  font-weight: 650;
  line-height: 0.94;
  letter-spacing: -0.045em;
}

.z-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--zoana-secondary);
}

.z-muted {
  font-size: 15px;
  line-height: 1.6;
  color: var(--zoana-secondary);
}

.z-container,
.z-section {
  margin-inline: auto;
  width: 100%;
  max-width: 80rem;
  padding-inline: 1.25rem;
}

@media (min-width: 640px) {
  .z-container,
  .z-section {
    padding-inline: 2rem;
  }
}

.z-section {
  padding-block: 4rem;
}

@media (min-width: 1024px) {
  .z-section {
    padding-block: 7rem;
  }
}

.z-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--zoana-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.z-field {
  display: flex;
  align-items: center;
  min-height: 52px;
  border: 1.5px solid var(--zoana-line);
  border-radius: 14px;
  background: var(--zoana-paper);
  padding-right: 16px;
  padding-left: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.z-field:hover {
  border-color: var(--zoana-control);
}

.z-field:focus-within {
  border-color: var(--zoana-text);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--zoana-signal) 22%, transparent);
  outline: 2px solid transparent;
}

.z-field input,
.z-field textarea {
  width: 100%;
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.8rem 0;
  color: var(--zoana-text);
  font-family: var(--zoana-font-body);
  font-size: 16px;
  outline: none;
}

.z-field textarea {
  resize: vertical;
  min-height: 6.5rem;
}

.z-field input::placeholder,
.z-field textarea::placeholder {
  color: var(--zoana-muted);
  font-family: var(--zoana-font-body);
  opacity: 1;
}

.z-suffix {
  flex: none;
  border-left: 1px solid var(--zoana-line);
  padding-left: 14px;
  color: var(--zoana-secondary);
  font-family: var(--zoana-font-mono);
  font-size: 15px;
}

.z-check {
  flex: none;
  margin-right: 0.45rem;
  color: var(--zoana-success);
}

.z-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.z-btn,
.z-btn-outline,
.z-btn-link {
  position: relative;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  padding: 0 1.6rem;
  font-family: var(--zoana-font-body);
  font-size: 16px;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s var(--zoana-ease-out);
}

.z-btn {
  border: 0;
  background: var(--zoana-accent);
  color: var(--zoana-on-accent);
}

.z-btn::after {
  content: "→";
  content: "→" / "";
  display: inline-block;
  width: 0;
  overflow: hidden;
  opacity: 0;
  transition: width 0.25s var(--zoana-ease-out), opacity 0.2s ease;
}

.z-btn:hover {
  background: var(--zoana-accent-hover);
  color: var(--zoana-on-accent-hover);
}

.z-btn:hover::after {
  width: 1em;
  opacity: 1;
}

.z-btn:active {
  transform: scale(0.98);
}

.z-btn-outline {
  border: 1.5px solid color-mix(in srgb, var(--zoana-text) 26%, transparent);
  background: transparent;
  color: var(--zoana-text);
}

.z-btn-outline:hover {
  border-color: var(--zoana-text);
  background: var(--zoana-surface);
}

.z-btn-link {
  min-height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--zoana-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.z-btn-block {
  width: 100%;
}

.z-btn:disabled,
.z-btn-link:disabled {
  cursor: default;
  opacity: 0.45;
}

.z-btn:disabled:hover {
  background: var(--zoana-accent);
  color: var(--zoana-on-accent);
}

.z-btn:disabled::after,
.z-btn[aria-busy="true"]::after,
.z-btn-block::after,
.z-btn-compact::after {
  display: none;
}

.z-btn[aria-busy="true"] {
  cursor: wait;
  opacity: 1;
}

.z-fieldset {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .z-btn,
  .z-btn-outline {
    min-height: 52px;
    width: auto;
  }

  .z-btn-block {
    width: 100%;
  }
}

.z-btn-compact {
  min-height: 44px;
  padding: 0 1.1rem;
  font-size: 14px;
}

/* The price line and « Créer ma page » share one cell, to the left of
   « Se connecter », so the right edge never moves. */
.z-header-slot {
  display: grid;
  align-items: center;
}

.z-header-slot > * {
  grid-area: 1 / 1;
  justify-self: end;
}

.z-header-price {
  display: none;
  margin: 0;
  color: var(--zoana-secondary);
  font-family: var(--zoana-font-mono);
  font-size: 13px;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 160ms ease;
}

@media (min-width: 640px) {
  .z-header-price {
    display: block;
  }
}

.z-header-slot:has(#zoana-header-create:not([data-hidden])) .z-header-price {
  visibility: hidden;
  opacity: 0;
}

#zoana-header-create {
  opacity: 1;
  transform: none;
  transition: opacity 200ms ease, transform 300ms var(--zoana-ease-out);
}

#zoana-header-create[data-hidden] {
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.z-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .z-actions {
    flex-direction: row;
    align-items: center;
  }
}

.z-shadow-pop {
  box-shadow: var(--shadow-pop);
}

.z-hint:empty {
  display: none;
  margin: 0;
}

/* One dialog look: landing sign-up and login, the owner chat sign-in, the legal reader. */
.z-dialog {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 30rem;
  border: 1px solid var(--zoana-border);
  border-radius: 28px;
  background: var(--zoana-surface);
  padding: 2.25rem 1.75rem 1.75rem;
  color: var(--zoana-text);
  animation: z-dialog-in 0.45s var(--zoana-ease-out) both;
}

@keyframes z-dialog-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.z-dialog-wide {
  display: flex;
  max-width: 56rem;
  max-height: min(92svh, 56rem);
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}

.z-dialog-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: 999px;
  color: var(--zoana-secondary);
  font-size: 14px;
  padding: 0 0.8rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.z-dialog-close-inline {
  position: static;
}

.z-dialog-close:hover {
  background: var(--zoana-wash);
  color: var(--zoana-text);
}

.z-dialog-close:disabled {
  cursor: default;
  opacity: 0.4;
}

.z-dialog-close:disabled:hover {
  background: transparent;
  color: var(--zoana-secondary);
}

.z-dialog-title {
  margin: 0.75rem 2.5rem 0 0;
  font-family: var(--zoana-font-heading);
  font-size: 34px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--zoana-text);
}

.z-dialog-lead {
  margin: 0.6rem 0 0;
  color: var(--zoana-secondary);
  font-size: 15px;
  line-height: 1.5;
}

.z-dialog-fine {
  margin: 0;
  text-align: center;
  color: var(--zoana-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.z-modal {
  background: rgb(18 18 17 / 55%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);
}

@media (max-width: 639px) {
  .z-modal-panel {
    max-height: calc(100dvh - var(--zoana-vv-inset, 0px));
    overflow-y: auto;
    scroll-padding-bottom: 5rem;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  .z-dialog-wide {
    max-height: calc(100dvh - var(--zoana-vv-inset, 0px));
  }

  .z-sheet-action {
    position: sticky;
    bottom: 0;
    padding-top: 0.65rem;
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Live preview of the address being chosen, inside the create dialog. */
.z-dialog-url {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.1rem 0 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--zoana-wash);
  padding: 0.5rem 0.9rem;
  color: var(--zoana-secondary);
  font-family: var(--zoana-font-mono);
  font-size: 13px;
  white-space: nowrap;
}

.z-dialog-url b {
  overflow: hidden;
  color: var(--zoana-text);
  font-weight: 600;
  text-overflow: ellipsis;
}

.z-dialog-url::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 999px;
  background: var(--zoana-success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--zoana-success) 22%, transparent);
}

.z-faq summary {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

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

.z-faq summary::after {
  content: "+";
  display: grid;
  width: 36px;
  height: 36px;
  flex: none;
  place-items: center;
  border: 1px solid var(--zoana-line);
  border-radius: 999px;
  font-family: var(--zoana-font-body);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  transition:
    transform 0.35s var(--zoana-ease-out),
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.z-faq details[open] summary::after {
  border-color: var(--zoana-text);
  background: var(--zoana-text);
  color: var(--zoana-bg);
  transform: rotate(45deg);
}

.z-faq summary:hover {
  color: var(--zoana-link);
}

.z-faq details[open] > p {
  animation: zoana-reveal-up 0.5s var(--zoana-ease-out) both;
}

.z-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  background: var(--zoana-text);
  padding: 0.4rem 0.85rem;
  color: var(--zoana-bg);
  font-family: var(--zoana-font-mono);
  font-size: 13px;
  font-weight: 500;
}

.z-price {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .z-price {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 4rem;
  }
}

.z-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.z-list li {
  position: relative;
  padding-left: 1.75rem;
}

.z-list li::before {
  content: "";
  position: absolute;
  top: 0.4em;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%23121211' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 14px no-repeat,
    var(--zoana-signal);
}

.z-aide-layout {
  display: block;
}

@media (min-width: 1024px) {
  .z-aide-layout {
    display: grid;
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
  }

  .z-toc {
    position: sticky;
    top: 6rem;
  }
}

.z-toc a {
  display: block;
  min-height: 44px;
  padding-top: 0.5rem;
  border-left: 2px solid var(--zoana-border);
  padding-left: 0.9rem;
  color: var(--zoana-secondary);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.z-toc a:hover {
  border-color: var(--zoana-signal);
  color: var(--zoana-text);
}

.z-thread {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.z-thread .z-bubble {
  max-width: 85%;
}

.z-thread .z-bubble-out {
  align-self: flex-end;
}

.z-bubble {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  border: 0;
  border-radius: 18px;
  padding: 9px 15px;
  font-family: inherit;
  font-size: 16px;
  font-weight: inherit;
  line-height: 24px;
  text-align: left;
  overflow-wrap: anywhere;
}

button.z-bubble {
  cursor: pointer;
}

.z-bubble-in {
  background: var(--zoana-wash);
  color: var(--zoana-body);
  border-bottom-left-radius: 6px;
}

.z-bubble-out {
  background: #121211;
  color: #f2f1ec;
  border-bottom-right-radius: 6px;
}

.z-bubble.is-copied {
  outline: 2px solid var(--zoana-link);
}

.z-bubble-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 40rem;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.z-bubble-note {
  margin: 4px 0 0;
  color: var(--zoana-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.z-confirm-card {
  margin-top: 10px;
  border: 1px solid var(--zoana-border);
  border-radius: 18px;
  background: var(--zoana-surface);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
}

.z-confirm-label {
  margin: 0 0 8px;
  font-family: var(--zoana-font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--zoana-secondary);
}

.z-confirm-text {
  margin: 4px 0 0;
  color: var(--zoana-body);
  font-size: 14px;
  line-height: 1.5;
}

/* ---- Shared components ---- */
.z-link,
.z-prose a:not([class]),
.z-prose-page a:not([class]) {
  color: var(--zoana-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.z-link:hover,
.z-prose a:not([class]):hover {
  text-decoration-thickness: 2px;
}

.z-status {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 14px;
  line-height: 1.4;
  background: var(--zoana-wash);
  color: var(--zoana-text);
}

.z-status::before {
  content: "i";
  display: inline-grid;
  flex: none;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 999px;
  background: currentColor;
  color: var(--zoana-wash);
  font-size: 11px;
  font-weight: 700;
}

.z-status--ok {
  background: var(--zoana-success-wash);
  color: var(--zoana-success);
}

.z-status--ok::before {
  content: "\2713";
  color: var(--zoana-success-wash);
}

.z-status--attention {
  background: var(--zoana-attention-wash);
  color: var(--zoana-attention);
}

.z-status--attention::before {
  content: "!";
  color: var(--zoana-attention-wash);
}

.z-status--error {
  background: var(--zoana-danger-wash);
  color: var(--zoana-danger);
}

.z-status--error::before {
  content: "!";
  color: var(--zoana-danger-wash);
}

.z-facts {
  display: grid;
  gap: 0.4rem;
  margin: 10px 0 0;
}

.z-facts > div {
  display: grid;
  grid-template-columns: minmax(5.5rem, max-content) minmax(0, 1fr);
  gap: 0.75rem;
}

.z-facts dt {
  color: var(--zoana-secondary);
  font-size: 14px;
}

.z-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.z-facts--money dd {
  text-align: end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow-wrap: normal;
}

.z-facts .is-due dt,
.z-facts .is-due dd {
  color: var(--zoana-text);
  font-weight: 600;
}

.z-facts .is-balance {
  border-top: 1px solid var(--zoana-line);
  padding-top: 0.35rem;
}

/* One service row: name left, price right, terms below, mark slot at the end. */
.z-offer {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto 2rem;
  align-items: center;
  gap: 0.2rem 1rem;
  border: 1px solid var(--zoana-border);
  border-radius: 18px;
  background: var(--zoana-surface);
  padding: 1.05rem 1.1rem 1.05rem 1.25rem;
  color: var(--zoana-text);
  font-family: var(--zoana-font-body);
  text-align: left;
  transition:
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    transform 0.3s var(--zoana-ease-out);
}

button.z-offer {
  cursor: pointer;
}

button.z-offer:hover {
  border-color: var(--zoana-control);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.z-offer-name {
  min-width: 0;
  font-family: var(--zoana-font-heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.z-offer-price {
  font-family: var(--zoana-font-mono);
  font-size: 16px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: end;
}

.z-offer-meta,
.z-offer-desc {
  grid-column: 1 / 3;
  margin: 0;
  color: var(--zoana-secondary);
  font-size: 14px;
  line-height: 1.45;
}

.z-offer-meta {
  font-family: var(--zoana-font-mono);
  font-size: 13px;
}

.z-offer-mark {
  display: grid;
  grid-column: 3;
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: var(--zoana-wash);
  color: var(--zoana-text);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.35s var(--zoana-ease-spring);
}

.z-offer-mark svg {
  width: 18px;
  height: 18px;
}

button.z-offer:hover .z-offer-mark {
  background: var(--zoana-text);
  color: var(--zoana-bg);
  transform: translateX(2px);
}

.z-offer-mark .z-offer-check {
  display: none;
}

.z-offer.is-selected {
  border-color: var(--zoana-text);
  box-shadow: inset 0 0 0 1px var(--zoana-text);
}

.z-offer.is-selected .z-offer-mark {
  background: var(--zoana-signal);
  color: var(--zoana-ink);
  transform: scale(1.06);
}

.z-offer.is-selected .z-offer-arrow {
  display: none;
}

.z-offer.is-selected .z-offer-check {
  display: block;
}

html.zb-paused .z-offer-hint {
  display: none;
}

.z-offer-hint {
  margin: 0 0 0.9rem;
  color: var(--zoana-secondary);
  font-size: 14px;
}

html.zb-paused [data-zoana-offer-id] {
  cursor: default;
  opacity: 0.7;
  pointer-events: none;
}

.z-prose {
  max-width: 70ch;
}

/* Help: a phrase to copy, as a full-width row with its action named. */
.z-example {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--zoana-border);
  border-radius: 14px;
  background: var(--zoana-surface);
  padding: 0.55rem 1rem;
  color: var(--zoana-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.25s var(--zoana-ease-out);
}

.z-example:hover {
  border-color: var(--zoana-text);
  transform: translateX(2px);
}

.z-example-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.z-example-action {
  flex: none;
  color: var(--zoana-link);
  font-family: var(--zoana-font-mono);
  font-size: 13px;
  font-weight: 500;
}

.z-example.is-copied {
  border-color: var(--zoana-success);
  background: var(--zoana-success-wash);
}

.z-example.is-copied .z-example-action {
  color: var(--zoana-success);
}

.z-example-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.6rem;
  color: var(--zoana-muted);
  font-family: var(--zoana-font-mono);
  font-size: 12px;
}

/* Client booking page (move or cancel from the SMS link). */
.z-manage {
  min-height: 100vh;
  background: var(--zoana-bg);
  color: var(--zoana-text);
  font-family: var(--zoana-font-body);
}

.z-manage-main {
  margin-inline: auto;
  max-width: 32rem;
  padding: 3rem 1.25rem;
}

.z-manage-shop {
  margin: 0;
  color: var(--zoana-secondary);
  font-family: var(--zoana-font-mono);
  font-size: 13px;
}

.z-manage-title {
  margin: 0.4rem 0 0;
  font-family: var(--zoana-font-heading);
  font-size: 40px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.04em;
}

.z-manage-line,
.z-manage-address {
  margin: 0.6rem 0 0;
  color: var(--zoana-body);
}

.z-manage-status {
  margin: 1rem 0 0;
  color: var(--zoana-secondary);
  font-size: 15px;
  font-weight: 600;
}

.z-manage-actions {
  margin-top: 1.75rem;
}

.z-manage-chat {
  margin: 1rem 0 0;
  font-size: 15px;
}

.zb-link-calendar {
  /* The manage page marks the calendar download. Utilities do the layout. */
}

/* Tailwind drops these: a slash after var() and a comma inside min(). */
.bg-\[var\(--zoana-bg\)\]\/95 {
  background-color: color-mix(in srgb, var(--zoana-bg) 95%, transparent);
}
.bg-\[var\(--zoana-surface\)\]\/95 {
  background-color: color-mix(in srgb, var(--zoana-surface) 95%, transparent);
}
.max-h-\[min\(92svh\,56rem\)\] {
  max-height: min(92svh, 56rem);
}

/* ---------------------------------------------------------------------------
   Apex chrome: header and footer shared by the homepage, help, legal, 404.
   ------------------------------------------------------------------------ */
.z-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--zoana-bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.z-topbar.is-scrolled,
.z-topbar:not([data-zl-home]) {
  border-bottom-color: var(--zoana-border);
}

.z-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.34em;
  color: var(--zoana-text);
  font-family: var(--zoana-font-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  text-decoration: none;
}

.z-wordmark .z-mark {
  width: 1.2em;
  height: 1.2em;
}

/* The mark: a paper Z and the signal dot on an ink tile. It follows the
   palette, so it stays legible on a dark skin. */
.z-mark {
  display: block;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  overflow: visible;
}

.z-mark-small {
  width: 1.25rem;
  height: 1.25rem;
}

.z-mark-tile {
  fill: var(--zoana-text);
}

.z-mark-z {
  fill: var(--zoana-bg);
  stroke: var(--zoana-bg);
  stroke-width: 12;
  stroke-linejoin: round;
}

.z-mark-dot {
  fill: var(--zoana-signal);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform 0.45s var(--zoana-ease-spring);
}

.z-wordmark:hover .z-mark-dot {
  transform: translateY(-150%);
}

/* Loading: the dot hops on the spot, lands, waits a beat. */
.z-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0;
  color: var(--zoana-muted);
  font-family: var(--zoana-font-body);
  font-size: 0.875rem;
  text-align: center;
  animation: z-loader-in 0.4s 0.15s ease both;
}

.z-loader .z-mark-dot {
  animation: z-mark-hop 1.15s infinite;
}

@keyframes z-loader-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes z-mark-hop {
  0% {
    transform: none;
    animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  30% {
    transform: translateY(-190%);
    animation-timing-function: cubic-bezier(0.7, 0, 0.9, 0.5);
  }
  56% {
    transform: scale(1.18, 0.8);
    animation-timing-function: ease-out;
  }
  70%,
  100% {
    transform: none;
  }
}

/* Moving between Zoana pages cross-fades where the browser supports it. */
@view-transition {
  navigation: auto;
}

.z-footer {
  position: relative;
  overflow: hidden;
  background: var(--zoana-ink);
  color: #d9d8d1;
}

.z-footer a {
  color: #f2f1ec;
}

.z-footer .z-wordmark.z-footer-giant {
  --zoana-signal: var(--zoana-ink);
  margin: 0;
  padding-block: 0.2em 0.3em;
  color: #a19f97;
  font-size: clamp(2.5rem, 10vw, 8rem);
  user-select: none;
}

.z-footer-giant .z-mark-tile {
  fill: currentColor;
}

.z-footer-giant .z-mark-z {
  fill: var(--zoana-ink);
  stroke: var(--zoana-ink);
}

.z-footer-giant:hover .z-mark-dot {
  transform: none;
}

.z-footer-legal {
  color: #a19f97;
}

.z-footer-legal a {
  color: #d9d8d1;
}

/* ---------------------------------------------------------------------------
   Mini-site: big identity band, offers on the left, a sticky booking card.
   ------------------------------------------------------------------------ */
.zoana-page-band {
  position: relative;
  overflow: clip;
  padding: 3.5rem 1.25rem 2rem;
}

.zoana-page-band::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  bottom: 0;
  left: 1.25rem;
  height: 1px;
  background: var(--zoana-border);
}

.zoana-page-band-inner,
.zoana-page {
  margin-inline: auto;
  max-width: 76rem;
}

.zoana-band-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  color: var(--zoana-secondary);
  font-family: var(--zoana-font-mono);
  font-size: 13px;
  animation: zoana-reveal-up 0.7s var(--zoana-ease-out) both;
}

.zoana-band-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--zoana-success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--zoana-success) 20%, transparent);
}

.zoana-identity {
  display: flex;
  align-items: center;
  gap: clamp(0.875rem, 2.5vw, 2rem);
}

.zoana-identity-copy {
  min-width: 0;
}

.zoana-band-logo {
  display: block;
  flex-shrink: 0;
  width: clamp(3.5rem, 14vw, 7.5rem);
  height: clamp(3.5rem, 14vw, 7.5rem);
  margin: 0;
  object-fit: contain;
  animation: zoana-reveal-up 0.7s 0.05s var(--zoana-ease-out) both;
}

.zoana-title {
  margin: 0;
  max-width: 16ch;
  color: var(--zoana-text);
  font-family: var(--zoana-font-heading);
  font-size: clamp(3rem, 1.625rem + 6vw, 7.5rem);
  font-weight: 650;
  line-height: 0.92;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
  animation: zoana-title-in 1s 0.1s var(--zoana-ease-out) both;
}

@keyframes zoana-title-in {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(0.3em);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 -20% 0);
    transform: none;
  }
}

.zoana-tagline {
  margin: 1rem 0 0;
  color: var(--zoana-secondary);
  font-size: 15px;
}

.zoana-page {
  padding: 2rem 0 0;
}

.zoana-page-main > section:first-child {
  margin-top: 0;
}

.zoana-bio {
  margin: 0;
  max-width: 40ch;
  color: var(--zoana-body);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.zoana-address {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  border: 1px solid var(--zoana-border);
  border-radius: 999px;
  background: var(--zoana-surface);
  padding: 0.4rem 0.9rem 0.4rem 0.7rem;
  color: var(--zoana-secondary);
  font-family: var(--zoana-font-mono);
  font-size: 13px;
}

.zoana-address svg {
  width: 14px;
  height: 14px;
  color: var(--zoana-text);
}

/* The map under the address. Nothing is fetched from Google before the click. */
/* Photos under the presentation: a strip that scrolls sideways and snaps. */
.zoana-photos {
  position: relative;
  margin: 1.1rem 0 0;
}

.zoana-photos-track {
  display: flex;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  list-style: none;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 20px;
}

.zoana-photos-track::-webkit-scrollbar {
  display: none;
}

.zoana-photo {
  flex: 0 0 86%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 20px;
  background: var(--zoana-border);
  scroll-snap-align: start;
}

.zoana-photos-single .zoana-photo {
  flex-basis: 100%;
}

.zoana-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zoana-photos-nav {
  position: absolute;
  top: 50%;
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 1px solid color-mix(in srgb, var(--zoana-text) 14%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--zoana-surface) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 0;
  color: var(--zoana-text);
  cursor: pointer;
}

.zoana-photos-nav svg {
  width: 16px;
  height: 16px;
}

.zoana-photos-prev {
  left: 0.6rem;
}

.zoana-photos-next {
  right: 0.6rem;
}

.zoana-photos-track:focus-visible,
.zoana-photos-nav:focus-visible {
  outline: 2px solid var(--zoana-accent);
  outline-offset: 2px;
}

.zoana-photos:focus-within .zoana-photos-nav {
  display: inline-flex;
}

/* A finger swipes the strip. A mouse gets the two arrows. */
@media (hover: hover) and (pointer: fine) {
  .zoana-photos-nav {
    display: inline-flex;
  }
}

@media (min-width: 640px) {
  .zoana-photo {
    flex-basis: 62%;
  }
}

.zoana-map {
  margin: 0.75rem 0 0;
  max-width: 34rem;
}

.zoana-map-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.zoana-map-load,
.zoana-map-route {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  border: 1px solid var(--zoana-border);
  border-radius: 999px;
  background: var(--zoana-surface);
  padding: 0 1rem;
  color: var(--zoana-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.zoana-map-load:hover,
.zoana-map-route:hover {
  border-color: var(--zoana-text);
}

.zoana-map-load:focus-visible,
.zoana-map-route:focus-visible {
  outline: 2px solid var(--zoana-accent);
  outline-offset: 2px;
}

.zoana-map-load svg {
  width: 16px;
  height: 16px;
}

.zoana-map-frame {
  display: block;
  width: 100%;
  height: 240px;
  margin: 0 0 0.6rem;
  border: 1px solid var(--zoana-border);
  border-radius: 16px;
  background: var(--zoana-surface);
  /* Google's colours fight every palette: the map is shown in grey. */
  filter: grayscale(1) contrast(1.05);
}

.zoana-map-note {
  margin: 0.5rem 0 0;
  color: var(--zoana-secondary);
  font-size: 12px;
}

.zoana-page-book #reservation {
  scroll-margin-top: 1rem;
}

@media (min-width: 640px) {
  .zoana-page-band {
    padding: 4.5rem 2rem 2.5rem;
  }

  .zoana-page-band::after {
    right: 2rem;
    left: 2rem;
  }

  .zoana-page {
    padding-top: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .zoana-page-band {
    padding: 6rem 2rem 3.5rem;
  }

  .zoana-page {
    max-width: 80rem;
    padding: 3.5rem 2rem 5rem;
  }

  .zoana-page-band::after {
    right: max(2rem, calc((100% - 76rem) / 2));
    left: max(2rem, calc((100% - 76rem) / 2));
  }

  /* Several offers: the booking region stays empty until one is chosen.
     A quiet outline keeps the column from looking broken meanwhile. */
  .zoana-page-book:has(#zoana-booking[data-zb-state="idle"])::before {
    content: "← Choisis une prestation";
    display: grid;
    min-height: 22rem;
    place-items: center;
    border: 1.5px dashed var(--zoana-line);
    border-radius: 28px;
    color: var(--zoana-muted);
    font-family: var(--zoana-font-mono);
    font-size: 13px;
  }

  .zoana-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 30rem);
    gap: 4rem;
    align-items: start;
  }

  .zoana-page-book {
    position: sticky;
    top: 1.5rem;
  }

  .zoana-page-book #zoana-booking:not([data-zb-state="idle"]):not([data-zb-state="paused"]) {
    border: 1px solid var(--zoana-border);
    box-shadow: var(--shadow-card);
  }

  .zoana-page-main section,
  .zoana-page-book section {
    max-width: none;
    margin-right: 0;
    margin-left: 0;
    padding-right: 0;
    padding-left: 0;
    text-align: left;
  }

  .zoana-page-book section {
    margin-top: 0;
  }
}

/* ---------------------------------------------------------------------------
   Finish: the quiet details. Light, depth and motion, all from the palette.
   ------------------------------------------------------------------------ */

/* A wash of the palette's signal colour falls on the band from the top right. */
.zoana-page-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60rem 26rem at 88% -6rem, color-mix(in srgb, var(--zoana-signal) 13%, transparent), transparent 70%),
    radial-gradient(40rem 20rem at 0% 0%, color-mix(in srgb, var(--zoana-surface) 70%, transparent), transparent 70%);
  pointer-events: none;
}

.zoana-page-band {
  isolation: isolate;
}

/* The rule under the band is drawn from the left and starts on the signal. */
.zoana-page-band::after {
  background: linear-gradient(
    90deg,
    var(--zoana-signal) 0 2.75rem,
    transparent 2.75rem 3.25rem,
    var(--zoana-border) 3.25rem
  );
  transform-origin: left;
  animation: zoana-rule-draw 1.1s 0.35s var(--zoana-ease-out) both;
}

@keyframes zoana-rule-draw {
  from {
    transform: scaleX(0);
  }
}

/* The « en ligne » dot breathes, slowly. */
.zoana-band-status::before {
  animation: zoana-live 3.2s 1.2s ease-out infinite;
}

@keyframes zoana-live {
  0% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--zoana-success) 20%, transparent);
  }
  65% {
    box-shadow: 0 0 0 11px color-mix(in srgb, var(--zoana-success) 0%, transparent);
  }
  66% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--zoana-success) 0%, transparent);
  }
  100% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--zoana-success) 20%, transparent);
  }
}

.zoana-title {
  text-wrap: balance;
  font-kerning: normal;
}

.zoana-bio {
  text-wrap: pretty;
}

.zoana-address {
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--zoana-surface) 60%, transparent);
}

/* Offer cards arrive one after the other, catch the light on top, and give
   under the finger. */
.z-offer {
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent),
    0 1px 2px rgb(18 18 17 / 3%);
  animation: zoana-reveal-up 0.7s var(--zoana-ease-out) backwards;
}

[data-palette="sombre"] .z-offer,
[data-palette="nuit"] .z-offer,
[data-palette="foret"] .z-offer,
[data-palette="prune"] .z-offer {
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
}

.z-offer:nth-child(1) {
  animation-delay: 0.22s;
}

.z-offer:nth-child(2) {
  animation-delay: 0.29s;
}

.z-offer:nth-child(3) {
  animation-delay: 0.36s;
}

.z-offer:nth-child(n + 4) {
  animation-delay: 0.43s;
}

button.z-offer:hover {
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 55%, transparent),
    0 1px 2px rgb(18 18 17 / 4%),
    0 18px 40px -20px color-mix(in srgb, var(--zoana-text) 38%, transparent);
}

button.z-offer:active {
  transform: translateY(0) scale(0.992);
  transition-duration: 0.08s;
}

button.z-offer:focus-visible {
  outline: 2px solid var(--zoana-focus);
  outline-offset: 3px;
}

.z-offer.is-selected {
  box-shadow:
    inset 0 0 0 1px var(--zoana-text),
    0 18px 40px -22px color-mix(in srgb, var(--zoana-text) 45%, transparent);
}

.z-offer-price {
  letter-spacing: -0.01em;
}

/* Footer links: the underline slides in instead of snapping. */
[data-zoana-platform-bar] a {
  text-decoration-color: transparent;
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
}

[data-zoana-platform-bar] a:hover {
  color: var(--zoana-text);
  text-decoration-color: currentColor;
}

.zoana-site {
  scrollbar-color: var(--zoana-line) transparent;
  accent-color: var(--zoana-accent);
  -webkit-tap-highlight-color: transparent;
}

/* Espace pro: a hairline of light on top of the glass. */
.zoana-admin-chip {
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 45%, transparent),
    var(--shadow-card);
}

/* First visit on a phone: the chip calls for attention while the note is up. */
html.zoana-admin-hint .zoana-admin-chip {
  border-color: var(--zoana-text);
  animation: zoana-chip-call 1.8s 1.1s ease-out infinite;
}

@keyframes zoana-chip-call {
  0% {
    box-shadow:
      0 0 0 0 color-mix(in srgb, var(--zoana-signal) 70%, transparent),
      var(--shadow-card);
  }
  70%,
  100% {
    box-shadow:
      0 0 0 14px color-mix(in srgb, var(--zoana-signal) 0%, transparent),
      var(--shadow-card);
  }
}

/* Couleurs gallery: the page cross-fades from one palette to the next. */
html.zoana-palette-shift body,
html.zoana-palette-shift body > :not(#zoana-chat-root),
html.zoana-palette-shift body > :not(#zoana-chat-root) * {
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease !important;
}

/* A page that was just created assembles itself once. */
html.zoana-launch .zoana-page-band,
html.zoana-launch .zoana-page-main > *,
html.zoana-launch .zoana-page-book {
  animation: zoana-launch-in 1.1s var(--zoana-ease-out) both;
}

html.zoana-launch .zoana-page-main > :nth-child(1) {
  animation-delay: 0.25s;
}

html.zoana-launch .zoana-page-main > :nth-child(2) {
  animation-delay: 0.4s;
}

html.zoana-launch .zoana-page-book {
  animation-delay: 0.55s;
}

html.zoana-launch .zoana-title {
  animation: zoana-title-in 1.2s 0.1s var(--zoana-ease-out) both;
}

@keyframes zoana-launch-in {
  from {
    opacity: 0;
    transform: translateY(48px) scale(0.98);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .z-loader,
  .z-loader .z-mark-dot {
    animation: none;
  }

  .z-mark-dot {
    transition: none;
  }

  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }

  .zoana-spinner {
    animation: none;
    border-right-color: currentColor;
    opacity: 0.55;
  }

  .z-offer,
  .zoana-page-band::after,
  .zoana-band-status::before,
  html.zoana-admin-hint .zoana-admin-chip {
    animation: none;
  }

  html.zoana-palette-shift body,
  html.zoana-palette-shift body > :not(#zoana-chat-root),
  html.zoana-palette-shift body > :not(#zoana-chat-root) * {
    transition: none !important;
  }

  .zoana-reveal,
  .zoana-effect-ring,
  .zoana-field-pulse,
  .zoana-title,
  .zoana-band-status,
  .zoana-band-logo,
  .z-dialog,
  html.zoana-launch .zoana-page-band,
  html.zoana-launch .zoana-page-main > *,
  html.zoana-launch .zoana-page-book {
    animation: none;
  }

  .zoana-reveal,
  .zoana-title {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .z-btn,
  .z-offer {
    transition: none;
  }

  .zb-check {
    animation: none;
  }
}
