/* Toolify — page de présentation.
   Tokens repris du portail (assets/react/portal/style.css) : canevas gris clair, une grande feuille blanche,
   Inter, pastilles pastel, action graphite en pilule, focus violet. Ajouts propres à la page : titres en
   Newsreader, trames de points et statue en similigravure. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-ext-opsz-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Newsreader, instance figée en optique 72 et graisse 400 : la seule utilisée par les titres. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/newsreader-display-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/newsreader-display-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Portail : surfaces, filets, textes */
  --canvas: #f5f5f5; --surface: #fff; --surface-subtle: #fafafa; --surface-muted: #f5f5f5;
  --nav-active: #ececec; --nav-hover: #efefef;
  --border: #e5e5e5; --border-control: #e7e7e7; --border-button: #e3e2e8; --border-hover: #d9d8de;
  --divider: #eeeeee; --divider-soft: #ededed;
  --ink-strong: #000; --ink: #1b1b1b; --text-nav: #616269; --slate: #646876; --text-secondary: #6e6e6e;
  --text-header: #6f7479; --muted: #767676; --faint: #a3a3a3; --ghost: #b1b1b1;
  --icon-ink: #110d24; --icon-soft: #a3a2ab; --icon-control: #636363;
  /* Portail : états (fond, point, texte) */
  --green-bg: #e6fff9; --green: #00ac7e; --green-text: #00805f; --green-line: #c9f3e7;
  --indigo-bg: #f6f6fe; --indigo: #4a56fa; --indigo-text: #4a56fa;
  --amber-bg: #fff8eb; --amber: #c57b06; --amber-text: #a05f07; --amber-line: #f2dcb9;
  --violet-bg: #f4f0ff; --violet: #7a4fff; --violet-text: #6b3ff5;
  --gray-bg: #f2f2f2; --gray: #8a8a8a; --gray-text: #6c6c6c;
  --red-bg: #fff1f1; --red: #e0455a; --red-text: #b8383e; --red-line: #f8dcdd;
  --focus: #7a4fff;
  /* Portail : formes et profondeur */
  --radius-card: 18px; --radius-panel: 12px; --radius-control: 9px; --radius-tab: 7px; --radius-pill: 999px;
  --shadow-control: 0 1px 2px rgb(20 20 30 / 0.06);
  --shadow-primary: 0 7px 16px -7px rgb(0 0 0 / 0.55), 0 2px 4px -2px rgb(0 0 0 / 0.25), inset 0 1px 0 rgb(255 255 255 / 0.14);
  --shadow-popover: 0 16px 36px -12px rgb(20 20 30 / 0.22), 0 2px 6px rgb(20 20 30 / 0.06);
  --shadow-float: 0 1px 2px rgb(20 20 30 / 0.06), 0 0 0 1px rgb(20 20 30 / 0.05), 0 18px 40px -18px rgb(20 20 30 / 0.28);
  /* Page */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --lead-in: #8a8a8a;
  --caption: #767676;
  --sheet-max: 1320px;
  --page-gutter: 20px;
  --sheet-pad: clamp(20px, 5.2vw, 72px);
  --band-pad: clamp(64px, 8.4vw, 120px);
  --nav-height: 76px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-height) + 12px); }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.5;
  font-feature-settings: "cv11", "ss03"; font-optical-sizing: auto; font-synthesis: none;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--faint); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: rgb(122 79 255 / 0.18); }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: var(--radius-control); background: var(--ink); color: #fff; font-weight: 500; text-decoration: none; }
.skip-link:focus { top: 12px; }
.nowrap { white-space: nowrap; }

/* ——— Boutons (portail) ——— */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 17px;
  border: 1px solid var(--border-button); border-radius: var(--radius-pill); background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-control); font-size: 14.5px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 140ms ease-out, border-color 140ms ease-out, box-shadow 140ms ease-out, color 140ms ease-out;
}
.button:hover { background: var(--surface-subtle); border-color: var(--border-hover); }
.button:active { background: var(--surface-muted); }
.button-primary {
  border: 0; color: #fff; padding: 0 19px;
  background: linear-gradient(180deg, #5c5c5c 0%, #3b3b3b 52%, #262626 100%); box-shadow: var(--shadow-primary);
}
.button-primary:hover { background: linear-gradient(180deg, #4d4d4d 0%, #2f2f2f 52%, #1c1c1c 100%); }
.button-primary:active { background: #1c1c1c; }
.button-large { min-height: 48px; padding: 0 24px; font-size: 15.5px; }
.button .arrow { transition: transform 160ms ease-out; }
.button:hover .arrow { transform: translateX(2px); }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-decoration-color: var(--faint); }
.text-link svg { color: var(--muted); transition: transform 160ms ease-out; }
.text-link:hover svg { transform: translateX(2px); }

/* ——— Pastilles, tuiles d’application (portail) ——— */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 8px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 500; line-height: 1; white-space: nowrap; background: var(--gray-bg); color: var(--gray-text); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gray); flex-shrink: 0; }
.pill-green { background: var(--green-bg); color: var(--green-text); } .pill-green::before { background: var(--green); }
.pill-indigo { background: var(--indigo-bg); color: var(--indigo-text); } .pill-indigo::before { background: var(--indigo); }
.pill-amber { background: var(--amber-bg); color: var(--amber-text); } .pill-amber::before { background: var(--amber); }
.pill-violet { background: var(--violet-bg); color: var(--violet-text); } .pill-violet::before { background: var(--violet); }
.pill-red { background: var(--red-bg); color: var(--red-text); } .pill-red::before { background: var(--red); }

.app-tile { --tile-ink: #7959df; --tile-soft: #cebdfa; display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; background: var(--surface); box-shadow: 0 1px 2px rgb(20 20 30 / 0.08), 0 0 0 1px rgb(20 20 30 / 0.05); }
.app-tile svg { width: 21px; height: 21px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.app-tile-lg { width: 40px; height: 40px; border-radius: 11px; }
.app-tile-lg svg { width: 27px; height: 27px; }
.app-tile-sm { width: 26px; height: 26px; border-radius: 7px; }
.app-tile-sm svg { width: 18px; height: 18px; }
.app-tile[data-tone="1"] { --tile-ink: #4f8be0; --tile-soft: #bad9fd; }
.app-tile[data-tone="2"] { --tile-ink: #f08f1e; --tile-soft: #fbdaaa; }
.app-tile[data-tone="3"] { --tile-ink: #e89a3c; --tile-soft: #fbe2bd; }
.tile-soft { fill: var(--tile-soft); }
.tile-ink { stroke: var(--tile-ink); stroke-width: 1.6; }
.tile-thick { stroke-width: 2.2; }
.tile-dot { stroke-width: 2.2; }
.tile-fill { fill: var(--tile-ink); }

/* ——— Marque ——— */
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-strong); text-decoration: none; border-radius: 8px; }
/* The icon's tile spans 406.8 of its 552 units; the margin around it holds the drop shadow. */
.brand-tile { position: relative; display: inline-block; flex-shrink: 0; width: 27px; height: 27px; }
.brand-tile::before { content: ""; position: absolute; inset: -17.85%; background: url("images/toolify-icon.svg") center / contain no-repeat; }
.brand-name { font-size: 19px; font-weight: 600; letter-spacing: -0.025em; line-height: 1; }

/* ——— Navigation (sur le canevas, comme la barre du portail) ——— */
.site-nav { position: sticky; top: 0; z-index: 50; transition: background-color 200ms ease-out, box-shadow 200ms ease-out; }
.site-nav.is-scrolled { background: rgb(245 245 245 / 0.86); box-shadow: 0 1px 0 var(--border); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.nav-inner { display: flex; align-items: center; gap: 20px; width: min(var(--sheet-max), 100% - var(--page-gutter) * 2); height: var(--nav-height); margin: 0 auto; padding: 0 4px 2px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav-links a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 10px; color: var(--text-nav); font-size: 14.5px; font-weight: 450; text-decoration: none; transition: background-color 120ms ease-out, color 120ms ease-out; }
.nav-links a:hover { background: var(--nav-hover); color: var(--ink); }
.nav-links a[aria-current="true"] { color: var(--ink-strong); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-login { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: 10px; color: var(--ink); font-size: 14.5px; font-weight: 500; text-decoration: none; }
.nav-login:hover { background: var(--nav-hover); }
.nav-actions .button { min-height: 38px; font-size: 14px; }
.nav-menu-button { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--border-control); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-control); cursor: pointer; }
.nav-dialog { width: min(360px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: 18px 0 0 18px; background: var(--canvas); color: var(--ink); box-shadow: var(--shadow-popover); }
.nav-dialog::backdrop { background: rgb(20 20 25 / 0.32); }
.nav-dialog-inner { display: flex; flex-direction: column; gap: 6px; min-height: 100%; padding: 14px 16px 24px; }
.nav-dialog-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 18px 4px; }
.nav-dialog a.nav-dialog-link { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; color: var(--ink); font-size: 17px; font-weight: 500; text-decoration: none; }
.nav-dialog a.nav-dialog-link:hover { background: var(--nav-hover); }
.nav-dialog-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 24px; }
.nav-dialog-actions .button { min-height: 48px; font-size: 15.5px; }

/* ——— Feuille blanche découpée en bandes ——— */
.sheet { position: relative; width: min(var(--sheet-max), 100% - var(--page-gutter) * 2); margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: clip; }
.band { position: relative; padding: var(--band-pad) var(--sheet-pad); }
.band + .band { border-top: 1px solid var(--divider); }
.band-tight { padding-top: clamp(36px, 4.4vw, 56px); padding-bottom: clamp(36px, 4.4vw, 56px); }
.band-subtle { background: var(--surface-subtle); }

/* Repères en croix aux intersections des bandes et des bords de la feuille */
.band + .band::before, .band + .band::after {
  content: ""; position: absolute; top: -5.5px; width: 11px; height: 11px; pointer-events: none;
  background: linear-gradient(var(--ghost), var(--ghost)) center / 1px 100% no-repeat, linear-gradient(var(--ghost), var(--ghost)) center / 100% 1px no-repeat;
  opacity: 0.55;
}
.band + .band::before { left: 14px; }
.band + .band::after { right: 14px; }

/* ——— Typographie de la page ——— */
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--caption); font-size: 12.5px; font-weight: 450; letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow-index { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--caption); }
.display {
  font-family: var(--font-serif); font-weight: 400; font-variation-settings: "opsz" 72;
  color: var(--ink); letter-spacing: -0.03em; line-height: 1.02; text-wrap: balance;
}
.display .lead-in { color: var(--lead-in); }
.display-xl { font-size: clamp(42px, 5.6vw, 80px); line-height: 1; letter-spacing: -0.032em; }
.display-l { font-size: clamp(36px, 4.6vw, 64px); }
.display-m { font-size: clamp(30px, 3.3vw, 46px); line-height: 1.06; }
.lede { color: var(--text-secondary); font-size: clamp(16.5px, 1.35vw, 19px); line-height: 1.55; text-wrap: pretty; max-width: 34em; }
.body-text { color: var(--text-secondary); font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }

/* ——— Héros ——— */
.hero { padding: 0; overflow: clip; isolation: isolate; }
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='20'%3E%3Crect x='5' y='7.5' width='5' height='5' rx='1' fill='%23e4e4e4'/%3E%3C/svg%3E");
  background-size: 15px 20px; background-position: center top;
  -webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.5) 0, transparent 90px, transparent 58%, #000 100%);
  mask-image: linear-gradient(180deg, rgb(0 0 0 / 0.5) 0, transparent 90px, transparent 58%, #000 100%);
}
/* Avec le script, une toile dessine les pixels carrés (voir PixelField) et le motif ci-dessus ne sert plus que de secours. */
/* The canvas draws its own fade (see FIELD in main.js), so the mask of the pattern is dropped. */
.band .hero-grid.is-live { background-image: none; -webkit-mask-image: none; mask-image: none; }
.hero-grid canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero { display: flex; flex-direction: column; }
.hero-top { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px clamp(32px, 6vw, 120px); align-items: start; padding: clamp(52px, 6.6vw, 92px) var(--sheet-pad) 0; }
.hero-title { max-width: 9.6em; }
.hero-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; padding-top: clamp(4px, 1.1vw, 16px); max-width: 29em; justify-self: end; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.hero-note { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13.5px; }
.hero-note .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgb(0 168 124 / 0.14); }

.hero-stage { --stage-height: clamp(360px, 41vw, 600px); position: relative; height: var(--stage-height); margin-top: clamp(28px, 3.2vw, 44px); }
.hero-statue { position: absolute; left: 50%; bottom: 0; height: 100%; aspect-ratio: var(--statue-ratio, 0.86); transform: translateX(-50%); }
/* A soft white aura keeps the background grid away from the sculpture, as on a printed plate. */
.hero-statue::before { content: ""; position: absolute; inset: -6% -22% -2%; z-index: -1; background: radial-gradient(closest-side, rgb(255 255 255 / 0.96) 55%, rgb(255 255 255 / 0) 100%); }
.hero-statue canvas, .hero-statue img { width: 100%; height: 100%; }
/* Without script, the pre-rendered plates replace the empty canvases. */
.no-js [data-halftone] canvas { display: none; }
.hero-statue img, .security-statue img, .final-statue img { width: 100%; height: 100%; object-fit: contain; object-position: bottom; }

/* Légende de planche, comme sur une gravure de musée */
.plate-caption { display: flex; flex-direction: column; gap: 3px; color: var(--caption); font-size: 12px; line-height: 1.45; }
.plate-caption b { color: var(--slate); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
/* Citation de planche : quelques mots du personnage, en accord avec la section */
.plate-quote { gap: 9px; margin: 0; }
.plate-quote blockquote { margin: 0; }
.plate-quote blockquote p { margin: 0; color: var(--ink); font-family: var(--font-serif); font-size: 17px; font-variation-settings: "opsz" 72; letter-spacing: -0.008em; line-height: 1.32; text-wrap: pretty; }
.plate-quote .quote-source { color: var(--caption); font-size: 12px; line-height: 1.45; text-wrap: balance; }
.plate-quote cite { font-style: italic; font-synthesis: style; }
.plate-quote .ref { white-space: nowrap; }
.plate-caption-dark blockquote p { color: #e2e2e6; }
.hero-caption { position: absolute; left: var(--sheet-pad); bottom: 26px; max-width: 250px; }

/* Petites cartes d’interface posées autour de la statue : demande à l’agent, application en ligne, accès partagé */
.hero-chips { position: absolute; inset: 0; pointer-events: none; --statue-half: calc(var(--stage-height, 600px) * var(--statue-ratio, 0.86) / 2); }
.float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgb(255 255 255 / 0.95); box-shadow: var(--shadow-float); font-size: 13.5px; line-height: 1.35; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.float-card strong { display: block; color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap; }
.float-card small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.chip-prompt { flex-direction: column; align-items: flex-start; gap: 8px; width: 266px; padding: 13px 15px 14px; right: calc(50% + var(--statue-half) - 34px); top: 30%; }
.chip-prompt p { color: var(--ink); font-size: 14px; line-height: 1.45; text-wrap: pretty; }
.chip-agent { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.chip-agent svg { color: var(--icon-ink); }
.chip-app { left: calc(50% + var(--statue-half) - 52px); top: 16%; }
.chip-share { left: calc(50% + var(--statue-half) - 8px); top: 52%; }
.chip-role { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; padding: 0 9px 0 11px; height: 28px; border: 1px solid var(--border-control); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-control); }
.chip-role svg { color: var(--icon-control); }
.js .float-card { opacity: 0; transform: translateY(10px); transition: opacity 600ms ease-out, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .is-ready ~ .hero-chips .float-card, .js .is-static ~ .hero-chips .float-card { opacity: 1; transform: none; }
.js .is-ready ~ .hero-chips .chip-prompt { transition-delay: 900ms; }
.js .is-ready ~ .hero-chips .chip-app { transition-delay: 1500ms; }
.js .is-ready ~ .hero-chips .chip-share { transition-delay: 2000ms; }

/* ——— Éléments communs ——— */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.person-initial { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; background: var(--violet-bg); color: var(--violet-text); font-size: 13px; font-weight: 600; box-shadow: inset 0 0 0 1px rgb(122 79 255 / 0.12); }
.person-initial-ink { background: #f1f1f3; color: var(--ink); box-shadow: inset 0 0 0 1px rgb(20 20 30 / 0.06); }
.section-head { max-width: 780px; }
.section-head .lede { margin-top: 22px; }
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 700ms ease-out, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
/* Full-bleed rows inside a band: the cells touch the sheet edges and share hairlines. */
.bleed { margin-left: calc(var(--sheet-pad) * -1); margin-right: calc(var(--sheet-pad) * -1); }

/* ——— Bande des agents ——— */
.agents { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 56px; background: var(--surface-subtle); }
.agents-sentence { max-width: 29em; color: var(--text-secondary); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; text-wrap: pretty; }
.agents-list { display: flex; align-items: center; gap: 18px 34px; flex-wrap: wrap; }
.agents-label { color: var(--text-secondary); font-size: 12.5px; font-weight: 450; letter-spacing: 0.06em; text-transform: uppercase; }
.agents-list ul { display: flex; align-items: center; gap: 14px 34px; flex-wrap: wrap; }
.agents-list li { display: inline-flex; align-items: center; gap: 9px; color: #6a6a70; font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; letter-spacing: -0.03em; }
.agents-list li svg { color: #a5a5ab; }

/* ——— Le constat ——— */
.pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(44px, 5vw, 64px); border-top: 1px solid var(--divider); counter-reset: pain; }
.pain { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 30px clamp(20px, 2.6vw, 40px) 4px; }
.pain:first-child { padding-left: 0; }
.pain:last-child { padding-right: 0; }
.pain + .pain { border-left: 1px solid var(--divider); }
.pain h3 { margin-top: 12px; color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.pain p { color: var(--text-secondary); font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }
.pain-visual { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 30px; }
.file-chip { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--border-control); border-radius: 8px; background: var(--surface); color: var(--ink); font-family: var(--font-mono); font-size: 12px; box-shadow: var(--shadow-control); white-space: nowrap; }
.file-chip-ghost { border-style: dashed; background: transparent; color: var(--muted); box-shadow: none; font-family: var(--font-sans); font-size: 12.5px; }
.file-chip-red { border-color: var(--red-line); background: var(--red-bg); color: var(--red-text); }

/* ——— Fonctionnement ——— */
.how-layout { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(36px, 5vw, 80px); align-items: start; margin-top: clamp(44px, 5vw, 64px); }
.steps { border-top: 1px solid var(--divider); }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; padding: 24px 0 26px; border-bottom: 1px solid var(--divider); }
.step-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 46px; border: 1px solid var(--divider); border-radius: 8px; background: var(--surface); }
.step-label { color: var(--red-text); font-size: 10px; font-weight: 500; letter-spacing: 0.04em; line-height: 1.2; text-transform: uppercase; }
.step-number { color: var(--ink); font-size: 18.5px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.step-body h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-height: 46px; margin: -2px 0 2px; color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.step-body p { color: var(--text-secondary); font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }
.step-body p + p, .step-body .prompt-quote + p { margin-top: 10px; }
.prompt-quote { margin: 10px 0 0; padding: 11px 15px; border: 1px solid var(--divider); border-radius: 10px; background: var(--surface-subtle); color: var(--ink); font-size: 14.5px; line-height: 1.55; }

.demo { position: relative; display: flex; flex-direction: column; margin: 0; }
.agent-window { overflow: hidden; border-radius: 16px; background: linear-gradient(180deg, #232326 0%, #1b1b1e 100%); box-shadow: 0 1px 0 rgb(255 255 255 / 0.06) inset, 0 30px 60px -30px rgb(20 20 30 / 0.55), 0 0 0 1px rgb(20 20 30 / 0.08); }
.window-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-bottom: 1px solid rgb(255 255 255 / 0.06); }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3e; }
.window-bar b { margin-left: 8px; overflow: hidden; color: #8c8c93; font-family: var(--font-mono); font-size: 12px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.agent-log { display: flex; flex-direction: column; gap: 14px; min-height: 300px; padding: 20px 22px 104px; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.6; }
.agent-handoff { max-width: 46%; }
.agent-line { color: #c9c9cf; }
.agent-user { display: flex; gap: 10px; color: #f4f4f6; }
.agent-caret { color: #b8a6ff; }
.agent-reply { padding-left: 20px; border-left: 1px solid rgb(255 255 255 / 0.12); color: #a8a8b0; }
.agent-handoff { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; border-left: 1px solid rgb(122 79 255 / 0.6); }
.agent-handoff strong { color: #fff; font-family: var(--font-sans); font-size: 16px; font-weight: 600; }
.agent-link { white-space: nowrap; color: #c7b8ff; text-decoration: underline; text-decoration-color: rgb(199 184 255 / 0.5); text-underline-offset: 3px; }
.publish-card { position: relative; z-index: 1; align-self: flex-end; width: min(380px, 64%); margin: -96px -18px 0 0; padding: 16px 16px 14px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-float), 0 30px 60px -30px rgb(20 20 30 / 0.4); }
.publish-head { display: flex; align-items: center; gap: 11px; padding-bottom: 12px; border-bottom: 1px solid var(--divider); }
.publish-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.publish-title strong { color: var(--ink); font-size: 14.5px; font-weight: 500; }
.publish-title small { color: var(--muted); font-size: 12.5px; }
.publish-state { display: grid; }
.publish-state > * { grid-area: 1 / 1; justify-self: end; transition: opacity 300ms ease-out; }
.publish-state [data-state="checking"] { opacity: 0; }
.checks { display: flex; flex-direction: column; gap: 2px; padding: 10px 0 8px; }
.checks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 9px; padding: 3px 0; color: var(--slate); font-size: 13px; line-height: 19px; transition: color 200ms ease-out; }
.mark { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-top: 0.5px; border-radius: 50%; background: var(--green-bg); box-shadow: inset 0 0 0 1px rgb(0 172 126 / 0.18); }
.mark::after { content: ""; width: 8px; height: 4.5px; margin-top: -2px; border-left: 1.8px solid var(--green); border-bottom: 1.8px solid var(--green); transform: rotate(-45deg); }
.publish-summary { display: flex; align-items: center; gap: 9px; padding-top: 10px; border-top: 1px solid var(--divider); color: var(--ink); font-size: 13.5px; }
.publish-summary strong { font-weight: 500; }
.demo-replay { position: absolute; left: 0; bottom: 0; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border: 1px solid var(--border-button); border-radius: var(--radius-pill); background: var(--surface); box-shadow: var(--shadow-control); color: var(--ink); font-size: 13px; font-weight: 500; cursor: pointer; }
.demo-replay:hover { background: var(--surface-subtle); border-color: var(--border-hover); }
.demo-replay svg { color: var(--icon-control); }
/* Animated states (set by main.js); without script the demo shows its final state. */
.demo.is-playing [data-step] { opacity: 0; transform: translateY(6px); transition: opacity 420ms ease-out, transform 420ms ease-out; }
.demo.is-playing [data-step].is-shown { opacity: 1; transform: none; }
.demo.is-playing .checks li { color: var(--ghost); }
.demo.is-playing .checks li .mark { background: transparent; box-shadow: inset 0 0 0 1.5px var(--divider-soft); }
.demo.is-playing .checks li .mark::after { opacity: 0; }
.demo.is-playing .checks li.is-running { color: var(--ink); }
.demo.is-playing .checks li.is-running .mark { background: var(--amber-bg); box-shadow: inset 0 0 0 1px rgb(197 123 6 / 0.2); }
.demo.is-playing .checks li.is-running .mark::after { opacity: 1; width: 6px; height: 6px; margin: 0; border: 0; border-radius: 50%; background: var(--amber); transform: none; animation: running-dot 900ms ease-in-out infinite; }
.demo.is-playing .checks li.is-done { color: var(--slate); }
.demo.is-playing .checks li.is-done .mark { background: var(--green-bg); box-shadow: inset 0 0 0 1px rgb(0 172 126 / 0.18); }
.demo.is-playing .checks li.is-done .mark::after { opacity: 1; }
.demo.is-playing .publish-summary { opacity: 0; transition: opacity 400ms ease-out; }
.demo.is-playing.is-ready .publish-summary { opacity: 1; }
.demo.is-playing .publish-state [data-state="ready"] { opacity: 0; }
.demo.is-playing .publish-state [data-state="checking"] { opacity: 1; }
.demo.is-playing.is-ready .publish-state [data-state="ready"] { opacity: 1; }
.demo.is-playing.is-ready .publish-state [data-state="checking"] { opacity: 0; }
.demo [data-type].is-typing::after { content: ""; display: inline-block; width: 7px; height: 15px; margin-left: 2px; vertical-align: -2px; background: #b8a6ff; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
@keyframes running-dot { 50% { transform: scale(0.6); } }

/* ——— Partage ——— */
.sharing-layout { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(36px, 5vw, 80px); align-items: center; }
.points { display: flex; flex-direction: column; gap: 18px; margin-top: 34px; }
.points li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; }
.points svg { margin-top: 2px; color: var(--violet); }
.points h3 { color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.points p { margin-top: 2px; color: var(--text-secondary); font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.share-demo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding: 28px; border: 1px solid var(--divider); border-radius: 20px; background: var(--surface-subtle) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Crect x='10' y='10' width='4' height='4' rx='1' fill='%23e6e6e6'/%3E%3C/svg%3E") center / 24px 24px; }
.share-panel { position: relative; z-index: 2; width: min(330px, 100%); padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-float); }
.share-title { color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.share-note { display: flex; align-items: center; gap: 7px; margin-top: 4px; color: var(--caption); font-size: 12.5px; }
.share-person { display: flex; align-items: center; gap: 11px; margin-top: 16px; }
.share-who { display: flex; flex-direction: column; min-width: 0; }
.share-who strong { color: var(--ink); font-size: 14px; font-weight: 500; }
.share-who small { color: var(--muted); font-size: 12.5px; }
.segmented { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-muted); max-width: 100%; }
.segmented > button { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border: 1px solid transparent; border-radius: var(--radius-tab); background: transparent; color: #6a6a6a; font-size: 13px; font-weight: 450; white-space: nowrap; cursor: pointer; transition: background-color 120ms ease-out, color 120ms ease-out; }
.segmented > button:hover { background: rgb(255 255 255 / 0.6); color: var(--ink); }
.segmented > button[aria-checked="true"] { background: var(--surface); border-color: var(--border-control); color: var(--ink-strong); font-weight: 500; box-shadow: 0 1px 2px rgb(20 20 30 / 0.06); }
.segmented > button[data-role="revoked"][aria-checked="true"] { color: var(--red-text); }
.share-roles { display: flex; margin-top: 12px; }
.share-roles > button { flex: 1; justify-content: center; }
.share-list { display: flex; flex-direction: column; margin-top: 14px; border-top: 1px solid var(--divider); }
.share-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--divider); color: var(--ink); font-size: 13.5px; }
.share-list li > span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-list .person-initial { width: 26px; height: 26px; border-radius: 7px; font-size: 12px; }
.share-role-label { color: var(--slate); font-size: 13px; }
.share-view { position: relative; z-index: 1; width: min(430px, 100%); margin: -26px 0 0 auto; }
.share-view-label { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 4px 8px auto; width: max-content; color: var(--caption); font-size: 12px; font-weight: 450; letter-spacing: 0.06em; text-transform: uppercase; }
.share-view-label::before { content: ""; width: 26px; height: 1px; background: var(--border-hover); }
.mini-app { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-float); }
.mini-app-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--divider); }
.mini-app-bar strong { flex: 1; color: var(--ink); font-size: 14px; font-weight: 500; }
.mini-add { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: var(--radius-pill); background: linear-gradient(180deg, #5c5c5c 0%, #3b3b3b 52%, #262626 100%); color: #fff; font-size: 12.5px; font-weight: 500; box-shadow: var(--shadow-primary); transition: opacity 200ms ease-out, filter 200ms ease-out; }
.mini-access { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; background: var(--indigo-bg); color: var(--indigo-text); font-size: 12.5px; transition: background-color 200ms ease-out, color 200ms ease-out; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini-table th { height: 34px; padding: 0 14px; background: var(--surface-subtle); border-bottom: 1px solid var(--divider-soft); color: var(--text-header); font-weight: 400; text-align: left; }
.mini-table td { height: 42px; padding: 0 14px; border-bottom: 1px solid var(--divider); color: var(--slate); }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-table td:first-child { color: var(--ink); font-weight: 500; }
.mini-revoked { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px; background: rgb(255 255 255 / 0.92); color: var(--text-secondary); font-size: 13.5px; text-align: center; opacity: 0; pointer-events: none; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); transition: opacity 260ms ease-out; }
.mini-revoked svg { color: var(--red); }
.mini-revoked strong { color: var(--red-text); font-size: 15px; font-weight: 600; }
.share-view[data-state="reader"] .mini-add { opacity: 0.35; filter: grayscale(1); }
.share-view[data-state="editor"] .mini-access { background: var(--green-bg); color: var(--green-text); }
.share-view[data-state="revoked"] .mini-revoked { opacity: 1; }

/* ——— Fonctionnalités : mosaïque ——— */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(44px, 5vw, 64px); border-top: 1px solid var(--divider); }
.bento.bleed { margin-left: calc(var(--sheet-pad) * -1); margin-right: calc(var(--sheet-pad) * -1); }
.cell { display: flex; flex-direction: column; min-width: 0; padding: 28px clamp(20px, 2.4vw, 34px) 34px; border-bottom: 1px solid var(--divider); }
.cell:not(:nth-child(3n + 1)) { border-left: 1px solid var(--divider); }
.cell:nth-last-child(-n + 3) { border-bottom: 0; }
.cell h3 { margin-top: 22px; color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -0.015em; }
.cell p { margin-top: 6px; color: var(--text-secondary); font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.cell-visual { display: flex; align-items: center; justify-content: center; height: 212px; padding: 16px; border: 1px solid var(--divider); border-radius: 14px; background: var(--surface-subtle) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Crect x='7' y='7' width='2' height='2' rx='.5' fill='%23e3e3e3'/%3E%3C/svg%3E") center / 16px 16px; overflow: hidden; }
.mock { width: 100%; max-width: 300px; font-size: 12.5px; }
.mock b { font-weight: 500; }
.mock i { font-style: normal; }
.mock-label { color: var(--text-header); font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.mock-catalog { display: flex; flex-direction: column; gap: 5px; }
.mock-search { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 8px 0 10px; border: 1px solid var(--border-control); border-radius: 9px; background: var(--surface); color: #737373; box-shadow: var(--shadow-control); }
.mock-search span { flex: 1; }
.mock-search kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; border: 1px solid var(--border-control); border-radius: 5px; background: var(--surface-muted); color: #676767; font-family: var(--font-sans); font-size: 11px; }
.mock-row { display: flex; align-items: center; gap: 9px; padding: 6px 9px; border: 1px solid var(--divider-soft); border-radius: 10px; background: var(--surface); }
.mock-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mock-name b { color: var(--ink); font-size: 12.5px; }
.mock-name i { overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.mock-row .pill { height: 20px; font-size: 11px; }
.mock-versions { display: flex; flex-direction: column; gap: 10px; }
.mock-live { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label state" "release state"; align-items: center; column-gap: 12px; padding: 11px 13px; border: 1px solid var(--divider-soft); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-control); }
.mock-live .mock-label { grid-area: label; }
.mock-live b { grid-area: release; color: var(--ink); font-size: 17px; font-weight: 650; letter-spacing: -0.025em; }
.mock-live .pill { grid-area: state; }
.mock-version { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px; }
.mock-version > span:first-child { display: flex; flex-direction: column; }
.mock-version b { color: var(--ink); font-size: 13px; }
.mock-version i { color: var(--muted); font-size: 11.5px; }
.mock-button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--border-button); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 11.5px; font-weight: 500; box-shadow: var(--shadow-control); white-space: nowrap; }
.mock-button svg { color: var(--icon-control); }
.mock-comments { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.mock-target { position: relative; display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: var(--radius-pill); background: linear-gradient(180deg, #5c5c5c 0%, #3b3b3b 52%, #262626 100%); color: #fff; font-size: 12.5px; font-weight: 500; box-shadow: var(--shadow-primary), 0 0 0 2px var(--surface), 0 0 0 4px rgb(122 79 255 / 0.55); }
.annotation-pin { position: absolute; top: -10px; right: -12px; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: var(--violet); color: #fff; font-size: 11px; font-weight: 600; box-shadow: 0 2px 6px rgb(122 79 255 / 0.4), 0 0 0 2px var(--surface); }
.mock-thread { display: flex; align-items: flex-start; gap: 9px; width: 100%; padding: 10px 11px; border: 1px solid var(--divider-soft); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-control); }
.mock-thread .person-initial { width: 24px; height: 24px; border-radius: 7px; font-size: 11px; }
.mock-thread p { display: flex; flex-direction: column; color: var(--ink); font-size: 12.5px; line-height: 1.45; }
.mock-thread p b { font-size: 12px; }
.mock-thread-actions { display: flex; gap: 14px; padding-left: 4px; color: var(--text-secondary); font-size: 11.5px; font-weight: 500; }
.mock-thread-actions span { display: inline-flex; align-items: center; gap: 4px; }
.mock-data { display: flex; align-items: flex-end; justify-content: center; gap: 22px; }
.db { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 12px 10px; border: 1px solid var(--divider-soft); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-control); }
.db + .db::before { content: ""; position: absolute; left: -12px; top: 12px; bottom: 12px; border-left: 1px dashed #d5d5d8; }
.db-icon { color: #9a9aa2; }
.mock-mail { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 14px 14px; border: 1px solid var(--divider-soft); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-control); text-align: center; }
.mock-mail .mock-label { color: var(--ink); font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.mock-mail-button { display: inline-flex; align-items: center; height: 30px; padding: 0 16px; border-radius: var(--radius-pill); background: linear-gradient(180deg, #5c5c5c 0%, #3b3b3b 52%, #262626 100%); color: #fff; font-size: 12px; font-weight: 500; box-shadow: var(--shadow-primary); }
.mock-mail i { color: var(--muted); font-size: 11.5px; }
.mock-spaces { display: flex; flex-direction: column; gap: 6px; max-width: 220px; }
.mock-select { display: inline-flex; align-items: center; justify-content: space-between; height: 32px; padding: 0 10px 0 12px; border: 1px solid var(--border-control); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; box-shadow: var(--shadow-control); }
.mock-select svg { color: var(--icon-control); }
.mock-spaces ul { display: flex; flex-direction: column; gap: 2px; padding: 5px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-popover); }
.mock-spaces li { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 9px; border-radius: 8px; color: var(--ink); font-size: 12.5px; }
.mock-spaces li.is-current { background: var(--surface-muted); font-weight: 500; }
.mock-spaces .mock-create { color: var(--text-secondary); }

/* ——— Sécurité : bande sombre ——— */
.security { --lead-in: #8d8d94; background: radial-gradient(120% 90% at 85% 0%, #2a2a2e 0%, #1a1a1c 55%, #151517 100%); color: #f4f4f5; overflow: clip; }
.band + .security::before, .band + .security::after, .security + .band::before, .security + .band::after { opacity: 0.25; }
.security .display { color: #f6f6f7; }
.security .lede { color: #a9a9b0; }
.eyebrow-dark { color: #9a9aa1; }
.eyebrow-dark .eyebrow-index { color: #5c5c63; }
.security-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 40px; align-items: end; }
.security-statue { position: relative; justify-self: end; width: min(400px, 100%); aspect-ratio: 0.8499; margin: -24px -8px -36px 0; }
.security-statue .plate-caption { position: absolute; left: -12px; top: 8%; transform: translateX(-100%); width: clamp(160px, 15vw, 200px); text-align: right; }
.plate-caption-dark { color: #9a9aa1; }
.plate-caption-dark b { color: #a2a2a9; }
.security-statue canvas { width: 100%; height: 100%; }
.guarantees { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(44px, 5vw, 64px); border-top: 1px solid rgb(255 255 255 / 0.08); }
.guarantees li { padding: 28px clamp(18px, 2.4vw, 32px) 30px; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.guarantees li:not(:nth-child(3n + 1)) { border-left: 1px solid rgb(255 255 255 / 0.08); }
.guarantees li:nth-child(3n + 1) { padding-left: 0; }
.guarantees li:nth-child(3n) { padding-right: 0; }
.guarantees svg { color: #b8a6ff; }
.guarantees h3 { margin-top: 16px; color: #f6f6f7; font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.guarantees p { margin-top: 6px; color: #a2a2a9; font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.security-note { display: flex; align-items: flex-start; gap: 10px; max-width: 46em; margin-top: 30px; color: #a2a2a9; font-size: 14px; line-height: 1.55; }
.security-note svg { flex-shrink: 0; margin-top: 2px; }
.security :focus-visible { outline-color: #b8a6ff; }

/* ——— Exemples ——— */
.example-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(40px, 4.6vw, 56px); }
.example { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 18px 18px 16px; border: 1px solid var(--divider-soft); border-radius: var(--radius-panel); background: var(--surface); transition: border-color 140ms ease-out, box-shadow 140ms ease-out; }
.example:hover, .example:focus-within { border-color: #dcdcdc; box-shadow: 0 2px 10px -4px rgb(20 20 30 / 0.14); }
.example h3 { margin-top: 16px; color: var(--ink); font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.example-team { margin-top: 2px; color: var(--caption); font-size: 13px; }
.example p { margin: 12px 0 14px; color: var(--text-secondary); font-size: 14px; line-height: 1.55; text-wrap: pretty; }
.example-copy { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; margin-top: auto; padding: 0 10px; border: 1px solid var(--border-button); border-radius: 8px; background: var(--surface); box-shadow: var(--shadow-control); color: var(--ink); font-size: 12.5px; font-weight: 500; cursor: pointer; transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out; }
.example-copy:hover { background: var(--surface-subtle); border-color: var(--border-hover); }
.example-copy svg { color: var(--icon-control); }
.example-copy.is-copied { border-color: var(--green-line); background: var(--green-bg); color: var(--green-text); }
.example-copy.is-copied svg { color: var(--green); }
.examples-note { margin-top: 18px; color: var(--caption); font-size: 13.5px; }

/* ——— Questions ——— */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 5vw, 80px); align-items: start; }
.faq-layout .section-head { position: sticky; top: calc(var(--nav-height) + 28px); }
.faq-contact { margin-top: 22px; color: var(--text-secondary); font-size: 15px; }
.faq-contact a { color: var(--ink); font-weight: 500; }
.faq-list { border-top: 1px solid var(--divider); }
.faq-list details { border-bottom: 1px solid var(--divider); }
.faq-list summary { position: relative; display: block; padding: 22px 44px 22px 0; color: var(--ink); font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.6px; border-radius: 1px; background: var(--icon-control); transition: transform 200ms ease-out; }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list summary:hover { color: var(--ink-strong); }
.faq-list details p { max-width: 40em; padding: 0 44px 24px 0; color: var(--text-secondary); font-size: 15.5px; line-height: 1.65; text-wrap: pretty; }
.faq-list details p a { color: var(--ink); }

/* ——— Conclusion ——— */
.final { padding: 0; overflow: clip; isolation: isolate; }
.final-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding: var(--band-pad) var(--sheet-pad) 0; }
.final-text { display: flex; flex-direction: column; gap: 24px; align-self: center; padding-bottom: var(--band-pad); }
.final-text .display { max-width: 11em; }
/* La statue équestre se règle sur sa hauteur et s’avance dans la marge ; sa citation se tient en haut à gauche, devant la tête du cheval à qui elle s’adresse.
   Son image garde de chaque côté une marge vide (--bleed) pour que les morceaux décalés par les glitchs ne soient pas coupés. */
.final-statue { --statue-height: clamp(460px, 45vw, 650px); --bleed: calc(var(--statue-height) * var(--statue-ratio, 1) * 0.1154); position: relative; height: var(--statue-height); aspect-ratio: var(--statue-ratio, 1); justify-self: end; margin: 0 calc(var(--bleed) * -1); }
.final-statue::before { content: ""; position: absolute; inset: -4% 0 0; z-index: -1; background: radial-gradient(closest-side, rgb(255 255 255 / 0.96) 55%, rgb(255 255 255 / 0) 100%); }
.final-statue canvas { width: 100%; height: 100%; }
.final-statue .plate-caption { position: absolute; left: calc(var(--bleed) + 2px); bottom: calc(100% - var(--statue-height) * 0.12); width: calc(var(--statue-height) * var(--statue-ratio) * 0.33); }

/* ——— Pied de page ——— */
.site-footer { width: min(var(--sheet-max), 100% - var(--page-gutter) * 2); margin: 0 auto; padding: 48px 4px 40px; color: var(--text-secondary); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px 64px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.footer-brand p { margin-top: 12px; color: var(--text-secondary); }
.footer-links { display: flex; gap: 32px 72px; flex-wrap: wrap; }
.footer-links div { display: flex; flex-direction: column; gap: 9px; }
.footer-links p { color: var(--text-secondary); font-size: 12.5px; font-weight: 450; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-links a { color: var(--text-nav); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); }
.footer-bottom { display: flex; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; padding-top: 22px; color: var(--text-secondary); font-size: 13px; }

/* ——— Responsive ——— */
/* La statue équestre et sa citation ont besoin de toute la largeur : la conclusion passe sur une colonne plus tôt. */
@media (max-width: 1280px) {
  .final-layout { grid-template-columns: minmax(0, 1fr); }
  .final-text { padding-bottom: 8px; }
  /* Sur une colonne, la citation passe au-dessus de la statue. */
  .final-statue { display: flex; flex-direction: column; align-items: center; justify-self: center; width: 100%; height: auto; aspect-ratio: auto; margin: 0; }
  .final-statue canvas, .final-statue img { flex-shrink: 0; width: min(124%, 600px); max-width: none; height: auto; aspect-ratio: var(--statue-ratio, 1); }
  .final-statue .plate-caption { position: static; order: -1; width: auto; max-width: 21em; margin: 8px 0 28px; text-align: center; align-items: center; }
}
@media (max-width: 1180px) {
  .example-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chip-prompt { width: 236px; }
}
@media (max-width: 1100px) {
  .nav-links a { padding: 0 9px; font-size: 14px; }
  .how-layout, .sharing-layout { grid-template-columns: minmax(0, 1fr); }
  .demo { max-width: 640px; }
  .share-demo { max-width: 640px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell:not(:nth-child(3n + 1)) { border-left: 0; }
  .cell:nth-last-child(-n + 3) { border-bottom: 1px solid var(--divider); }
  .cell:nth-child(2n) { border-left: 1px solid var(--divider); }
  .cell:nth-last-child(-n + 2) { border-bottom: 0; }
  .guarantees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guarantees li:not(:nth-child(3n + 1)) { border-left: 0; }
  .guarantees li:nth-child(3n + 1), .guarantees li:nth-child(3n) { padding-left: clamp(18px, 2.4vw, 32px); padding-right: clamp(18px, 2.4vw, 32px); }
  .guarantees li:nth-child(2n + 1) { padding-left: 0; }
  .guarantees li:nth-child(2n) { border-left: 1px solid rgb(255 255 255 / 0.08); padding-right: 0; }
}
@media (max-width: 960px) {
  .nav-links, .nav-login, .nav-actions .button { display: none; }
  .nav-menu-button { display: inline-flex; }
  .nav-actions { margin-left: auto; }
  .hero-top { grid-template-columns: minmax(0, 1fr); }
  .hero-aside { justify-self: start; }
  .hero-caption { display: none; }
  .pains { grid-template-columns: minmax(0, 1fr); }
  .pain, .pain:first-child, .pain:last-child { padding: 26px 0; }
  .pain + .pain { border-left: 0; border-top: 1px solid var(--divider); }
  .faq-layout, .security-layout { grid-template-columns: minmax(0, 1fr); }
  .faq-layout .section-head { position: static; }
  .security-statue { display: none; }
}
@media (max-width: 760px) {
  :root { --page-gutter: 8px; --nav-height: 64px; }
  .sheet { border-radius: 16px; }
  .band + .band::before, .band + .band::after { display: none; }
  .hero-stage { --stage-height: clamp(340px, 92vw, 480px); }
  .chip-prompt { display: none; }
  .chip-app { left: auto; right: 12px; top: 6%; }
  .chip-share { left: 12px; right: auto; top: auto; bottom: 10%; }
  .agents { grid-template-columns: minmax(0, 1fr); }
  .agents-list { gap: 12px 24px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .cell, .cell:nth-child(2n) { border-left: 0; padding-left: 0; padding-right: 0; }
  .cell:nth-last-child(-n + 2) { border-bottom: 1px solid var(--divider); }
  .cell:last-child { border-bottom: 0; }
  .guarantees { grid-template-columns: minmax(0, 1fr); }
  .guarantees li, .guarantees li:nth-child(2n), .guarantees li:nth-child(2n + 1) { padding: 24px 0; border-left: 0; }
  .share-demo { padding: 16px; }
  .share-view { margin-top: 16px; }
  .publish-card { align-self: stretch; width: auto; margin: -72px 10px 0; }
  .agent-log { padding: 16px 16px 88px; font-size: 12.5px; }
  .agent-handoff { max-width: none; }
  .demo-replay { position: static; align-self: flex-start; margin-top: 14px; }
  .example-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 420px) {
  .float-card { padding: 10px 12px; gap: 10px; }
  .chip-share .chip-role { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
